ReactOS 0.4.15-dev-5666-gc548b97
|
#include <freeldr.h>
#include <debug.h>
#include <srb.h>
#include <scsi.h>
#include <ntddscsi.h>
#include <ntddstor.h>
#include <ntdddisk.h>
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Classes | |
struct | SCSI_PORT_DEVICE_EXTENSION |
struct | tagDISKCONTEXT |
Macros | |
#define | _SCSIPORT_ |
#define | SCSI_PORT_NEXT_REQUEST_READY 0x0008 |
#define | TAG_SCSI_DEVEXT 'DscS' |
#define | TAG_SCSI_ACCESS_RANGES 'AscS' |
Typedefs | |
typedef struct SCSI_PORT_DEVICE_EXTENSION * | PSCSI_PORT_DEVICE_EXTENSION |
typedef struct tagDISKCONTEXT | DISKCONTEXT |
Variables | |
PSCSI_PORT_DEVICE_EXTENSION | ScsiDeviceExtensions [SCSI_MAXIMUM_BUSES] |
static const DEVVTBL | DiskVtbl |
char | __ImageBase |
#define _SCSIPORT_ |
Definition at line 16 of file scsiport.c.
#define SCSI_PORT_NEXT_REQUEST_READY 0x0008 |
Definition at line 53 of file scsiport.c.
#define TAG_SCSI_ACCESS_RANGES 'AscS' |
Definition at line 56 of file scsiport.c.
#define TAG_SCSI_DEVEXT 'DscS' |
Definition at line 55 of file scsiport.c.
typedef struct tagDISKCONTEXT DISKCONTEXT |
DBG_DEFAULT_CHANNEL | ( | SCSIPORT | ) |
|
static |
Definition at line 176 of file scsiport.c.
|
static |
Definition at line 183 of file scsiport.c.
|
static |
Definition at line 202 of file scsiport.c.
|
static |
Definition at line 272 of file scsiport.c.
|
static |
Definition at line 382 of file scsiport.c.
Definition at line 1626 of file scsiport.c.
Referenced by RunLoader().
Definition at line 113 of file scsiport.c.
Definition at line 469 of file scsiport.c.
VOID NTAPI ScsiPortCompleteRequest | ( | IN PVOID | HwDeviceExtension, |
IN UCHAR | PathId, | ||
IN UCHAR | TargetId, | ||
IN UCHAR | Lun, | ||
IN UCHAR | SrbStatus | ||
) |
Definition at line 505 of file scsiport.c.
Referenced by AtapiResetController(), BT958HwResetBus(), and BusLogic_ProcessCompletedCCBs().
ULONG NTAPI ScsiPortConvertPhysicalAddressToUlong | ( | IN SCSI_PHYSICAL_ADDRESS | Address | ) |
Definition at line 519 of file scsiport.c.
SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortConvertUlongToPhysicalAddress | ( | IN ULONG_PTR | UlongAddress | ) |
Definition at line 527 of file scsiport.c.
Referenced by AtapiDmaPioSync(), AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiGetIoRange(), BusLogic_ScanIncomingMailboxes(), and UniataFindBusMasterController().
Definition at line 538 of file scsiport.c.
Definition at line 547 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), and UniataChipDetect().
ULONG NTAPI ScsiPortGetBusData | ( | IN PVOID | DeviceExtension, |
IN ULONG | BusDataType, | ||
IN ULONG | SystemIoBusNumber, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length | ||
) |
Definition at line 556 of file scsiport.c.
Referenced by AtapiAliSouthBridgeFixup(), AtapiFindController(), AtapiFindNativeModeController(), AtapiRosbSouthBridgeFixup(), AtapiViaSouthBridgeFixup(), and FindBrokenController().
PVOID NTAPI ScsiPortGetDeviceBase | ( | IN PVOID | HwDeviceExtension, |
IN INTERFACE_TYPE | BusType, | ||
IN ULONG | SystemIoBusNumber, | ||
IN SCSI_PHYSICAL_ADDRESS | IoAddress, | ||
IN ULONG | NumberOfBytes, | ||
IN BOOLEAN | InIoSpace | ||
) |
Definition at line 569 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiGetIoRange(), BT958HwFindAdapter(), and UniataFindBusMasterController().
PVOID NTAPI ScsiPortGetLogicalUnit | ( | IN PVOID | HwDeviceExtension, |
IN UCHAR | PathId, | ||
IN UCHAR | TargetId, | ||
IN UCHAR | Lun | ||
) |
Definition at line 601 of file scsiport.c.
SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortGetPhysicalAddress | ( | IN PVOID | HwDeviceExtension, |
IN PSCSI_REQUEST_BLOCK Srb | OPTIONAL, | ||
IN PVOID | VirtualAddress, | ||
OUT ULONG * | Length | ||
) |
Definition at line 614 of file scsiport.c.
Referenced by BusLogic_InitializeHostAdapter(), BusLogic_QueueCommand(), and BusLogic_WriteOutgoingMailbox().
PSCSI_REQUEST_BLOCK NTAPI ScsiPortGetSrb | ( | IN PVOID | DeviceExtension, |
IN UCHAR | PathId, | ||
IN UCHAR | TargetId, | ||
IN UCHAR | Lun, | ||
IN LONG | QueueTag | ||
) |
Definition at line 650 of file scsiport.c.
Referenced by AtapiStartIo__(), and BT958HwStartIO().
PVOID NTAPI ScsiPortGetUncachedExtension | ( | IN PVOID | HwDeviceExtension, |
IN PPORT_CONFIGURATION_INFORMATION | ConfigInfo, | ||
IN ULONG | NumberOfBytes | ||
) |
Definition at line 728 of file scsiport.c.
Referenced by Buslogic_InitBT958().
PVOID NTAPI ScsiPortGetVirtualAddress | ( | IN PVOID | HwDeviceExtension, |
IN SCSI_PHYSICAL_ADDRESS | PhysicalAddress | ||
) |
Definition at line 813 of file scsiport.c.
Referenced by AtapiDmaPioSync(), and BusLogic_ScanIncomingMailboxes().
ULONG NTAPI ScsiPortInitialize | ( | IN PVOID | Argument1, |
IN PVOID | Argument2, | ||
IN PHW_INITIALIZATION_DATA | HwInitializationData, | ||
IN PVOID HwContext | OPTIONAL | ||
) |
Definition at line 1124 of file scsiport.c.
Referenced by DriverEntry().
VOID NTAPI ScsiPortIoMapTransfer | ( | IN PVOID | HwDeviceExtension, |
IN PSCSI_REQUEST_BLOCK | Srb, | ||
IN PVOID | LogicalAddress, | ||
IN ULONG | Length | ||
) |
Definition at line 1278 of file scsiport.c.
VOID NTAPI ScsiPortLogError | ( | IN PVOID | HwDeviceExtension, |
IN PSCSI_REQUEST_BLOCK Srb | OPTIONAL, | ||
IN UCHAR | PathId, | ||
IN UCHAR | TargetId, | ||
IN UCHAR | Lun, | ||
IN ULONG | ErrorCode, | ||
IN ULONG | UniqueId | ||
) |
Definition at line 1290 of file scsiport.c.
Referenced by AtapiStartIo(), AtapiStartIo__(), BT958HwFindAdapter(), Buslogic_InitBT958(), BusLogic_ProcessCompletedCCBs(), and MapError().
Definition at line 1305 of file scsiport.c.
Referenced by Atapi2Scsi(), AtapiStartIo(), AtapiStartIo__(), BusLogic_QueueCommand(), and IssueIdentify().
VOID __cdecl ScsiPortNotification | ( | IN SCSI_NOTIFICATION_TYPE | NotificationType, |
IN PVOID | HwDeviceExtension, | ||
IN ... | |||
) |
Definition at line 1315 of file scsiport.c.
Referenced by AtapiCallBack(), AtapiCallBack__(), AtapiInterrupt(), AtapiInterrupt__(), AtapiQueueTimerDpc(), AtapiResetController(), AtapiResetController__(), AtapiSendCommand(), AtapiStartIo(), AtapiStartIo__(), AtapiTimerDpc(), BT958HwStartIO(), BT958WmiSrb(), BusLogic_ProcessCompletedCCBs(), ScsiPortCompleteRequest(), ScsiPortStartIo(), ScsiPortStartPacket(), and SpiCompleteRequest().
Definition at line 1351 of file scsiport.c.
Definition at line 1361 of file scsiport.c.
Definition at line 1371 of file scsiport.c.
Definition at line 1381 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiHwInitialize(), AtapiInterrupt(), FindDevices(), IdeMediaStatus(), IdeSendCommand(), IssueIdentify(), MapError(), ReadBusLogicPort(), and SetDriveParameters().
Definition at line 1391 of file scsiport.c.
Definition at line 1399 of file scsiport.c.
Referenced by AtapiSendCommand(), and IssueIdentify().
Definition at line 1407 of file scsiport.c.
Definition at line 1418 of file scsiport.c.
VOID NTAPI ScsiPortReadRegisterBufferUshort | ( | IN PUSHORT | Register, |
IN PUSHORT | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1429 of file scsiport.c.
Definition at line 1440 of file scsiport.c.
Definition at line 1448 of file scsiport.c.
Definition at line 1456 of file scsiport.c.
ULONG NTAPI ScsiPortSetBusDataByOffset | ( | IN PVOID | DeviceExtension, |
IN ULONG | BusDataType, | ||
IN ULONG | SystemIoBusNumber, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 1464 of file scsiport.c.
Definition at line 1480 of file scsiport.c.
Referenced by AtapiFindController(), AtapiHwInitialize(), AtapiInterrupt(), AtapiSendCommand(), BT958HwAdapterControl(), BT958HwResetBus(), BT958HwStartIO(), BusLogic_Command(), BusLogic_HardwareResetHostAdapter(), BusLogic_TargetDeviceInquiry(), FindDevices(), IdeReadWrite(), IdeSendCommand(), IssueIdentify(), and SetDriveParameters().
BOOLEAN NTAPI ScsiPortValidateRange | ( | IN PVOID | HwDeviceExtension, |
IN INTERFACE_TYPE | BusType, | ||
IN ULONG | SystemIoBusNumber, | ||
IN SCSI_PHYSICAL_ADDRESS | IoAddress, | ||
IN ULONG | NumberOfBytes, | ||
IN BOOLEAN | InIoSpace | ||
) |
Definition at line 1488 of file scsiport.c.
Referenced by BT958HwFindAdapter(), and UniataFindBusMasterController().
Definition at line 1508 of file scsiport.c.
Definition at line 1518 of file scsiport.c.
Definition at line 1528 of file scsiport.c.
Definition at line 1538 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiHwInitialize(), AtapiSendCommand(), FindDevices(), IdeMediaStatus(), IdeReadWrite(), IdeSendCommand(), IdeSendSmartCommand(), IdeVerify(), IssueIdentify(), MapError(), SetDriveParameters(), and WriteBusLogicPort().
Definition at line 1547 of file scsiport.c.
Definition at line 1556 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUchar | ( | IN PUCHAR | Register, |
IN PUCHAR | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1565 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUlong | ( | IN PULONG | Register, |
IN PULONG | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1576 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUshort | ( | IN PUSHORT | Register, |
IN PUSHORT | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1587 of file scsiport.c.
Definition at line 1598 of file scsiport.c.
Definition at line 1607 of file scsiport.c.
Definition at line 1616 of file scsiport.c.
|
static |
Definition at line 664 of file scsiport.c.
Referenced by ScsiPortGetUncachedExtension(), and ScsiPortInitialize().
|
static |
Definition at line 422 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 1024 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 943 of file scsiport.c.
Referenced by SpiGetPciConfigData().
|
static |
Definition at line 868 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 824 of file scsiport.c.
Referenced by SpiScanAdapter().
|
static |
Definition at line 129 of file scsiport.c.
Referenced by DiskOpen(), DiskRead(), and SpiScanAdapter().
|
extern |
Referenced by LoadBootDeviceDriver().
Definition at line 411 of file scsiport.c.
Referenced by SpiScanAdapter(), and SpiScanDevice().
PSCSI_PORT_DEVICE_EXTENSION ScsiDeviceExtensions[SCSI_MAXIMUM_BUSES] |
Definition at line 108 of file scsiport.c.
Referenced by DiskOpen(), and SpiScanAdapter().