|
ReactOS 0.4.16-dev-1946-g52006dd
|
#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 177 of file scsiport.c.
|
static |
Definition at line 184 of file scsiport.c.
|
static |
Definition at line 205 of file scsiport.c.
|
static |
Definition at line 276 of file scsiport.c.
|
static |
Definition at line 386 of file scsiport.c.
Definition at line 1656 of file scsiport.c.
Referenced by RunLoader().
Definition at line 114 of file scsiport.c.
Definition at line 475 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 511 of file scsiport.c.
Referenced by AtapiResetController(), BT958HwResetBus(), and BusLogic_ProcessCompletedCCBs().
| ULONG NTAPI ScsiPortConvertPhysicalAddressToUlong | ( | IN SCSI_PHYSICAL_ADDRESS | Address | ) |
Definition at line 525 of file scsiport.c.
| SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortConvertUlongToPhysicalAddress | ( | IN ULONG_PTR | UlongAddress | ) |
Definition at line 533 of file scsiport.c.
Referenced by AtapiDmaPioSync(), AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiGetIoRange(), BusLogic_ScanIncomingMailboxes(), and UniataFindBusMasterController().
Definition at line 544 of file scsiport.c.
Definition at line 553 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 562 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 575 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 613 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 626 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 662 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 740 of file scsiport.c.
Referenced by Buslogic_InitBT958().
| PVOID NTAPI ScsiPortGetVirtualAddress | ( | IN PVOID | HwDeviceExtension, |
| IN SCSI_PHYSICAL_ADDRESS | PhysicalAddress | ||
| ) |
Definition at line 825 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 1154 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 1308 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 1320 of file scsiport.c.
Referenced by AtapiStartIo(), AtapiStartIo__(), BT958HwFindAdapter(), Buslogic_InitBT958(), BusLogic_ProcessCompletedCCBs(), and MapError().
Definition at line 1335 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 1345 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 1381 of file scsiport.c.
Definition at line 1391 of file scsiport.c.
Definition at line 1401 of file scsiport.c.
Definition at line 1411 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiHwInitialize(), AtapiInterrupt(), FindDevices(), IdeMediaStatus(), IdeSendCommand(), IssueIdentify(), MapError(), ReadBusLogicPort(), and SetDriveParameters().
Definition at line 1421 of file scsiport.c.
Definition at line 1429 of file scsiport.c.
Referenced by AtapiSendCommand(), and IssueIdentify().
Definition at line 1437 of file scsiport.c.
Definition at line 1448 of file scsiport.c.
| VOID NTAPI ScsiPortReadRegisterBufferUshort | ( | IN PUSHORT | Register, |
| IN PUSHORT | Buffer, | ||
| IN ULONG | Count | ||
| ) |
Definition at line 1459 of file scsiport.c.
Definition at line 1470 of file scsiport.c.
Definition at line 1478 of file scsiport.c.
Definition at line 1486 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 1494 of file scsiport.c.
Definition at line 1510 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 1518 of file scsiport.c.
Referenced by BT958HwFindAdapter(), and UniataFindBusMasterController().
Definition at line 1538 of file scsiport.c.
Definition at line 1548 of file scsiport.c.
Definition at line 1558 of file scsiport.c.
Definition at line 1568 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 1577 of file scsiport.c.
Definition at line 1586 of file scsiport.c.
| VOID NTAPI ScsiPortWriteRegisterBufferUchar | ( | IN PUCHAR | Register, |
| IN PUCHAR | Buffer, | ||
| IN ULONG | Count | ||
| ) |
Definition at line 1595 of file scsiport.c.
| VOID NTAPI ScsiPortWriteRegisterBufferUlong | ( | IN PULONG | Register, |
| IN PULONG | Buffer, | ||
| IN ULONG | Count | ||
| ) |
Definition at line 1606 of file scsiport.c.
| VOID NTAPI ScsiPortWriteRegisterBufferUshort | ( | IN PUSHORT | Register, |
| IN PUSHORT | Buffer, | ||
| IN ULONG | Count | ||
| ) |
Definition at line 1617 of file scsiport.c.
Definition at line 1628 of file scsiport.c.
Definition at line 1637 of file scsiport.c.
Definition at line 1646 of file scsiport.c.
|
static |
Definition at line 676 of file scsiport.c.
Referenced by ScsiPortGetUncachedExtension(), and ScsiPortInitialize().
|
static |
Definition at line 426 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 1054 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 973 of file scsiport.c.
Referenced by SpiGetPciConfigData().
|
static |
Definition at line 881 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 836 of file scsiport.c.
Referenced by SpiScanAdapter().
|
static |
Definition at line 130 of file scsiport.c.
Referenced by DiskOpen(), DiskRead(), and SpiScanAdapter().
|
extern |
Definition at line 415 of file scsiport.c.
Referenced by SpiScanAdapter(), and SpiScanDevice().
| PSCSI_PORT_DEVICE_EXTENSION ScsiDeviceExtensions[SCSI_MAXIMUM_BUSES] |
Definition at line 109 of file scsiport.c.
Referenced by DiskOpen(), and SpiScanAdapter().