ReactOS 0.4.16-dev-329-g9223134
|
#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 1635 of file scsiport.c.
Referenced by RunLoader().
Definition at line 113 of file scsiport.c.
Definition at line 471 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 507 of file scsiport.c.
Referenced by AtapiResetController(), BT958HwResetBus(), and BusLogic_ProcessCompletedCCBs().
ULONG NTAPI ScsiPortConvertPhysicalAddressToUlong | ( | IN SCSI_PHYSICAL_ADDRESS | Address | ) |
Definition at line 521 of file scsiport.c.
SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortConvertUlongToPhysicalAddress | ( | IN ULONG_PTR | UlongAddress | ) |
Definition at line 529 of file scsiport.c.
Referenced by AtapiDmaPioSync(), AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiGetIoRange(), BusLogic_ScanIncomingMailboxes(), and UniataFindBusMasterController().
Definition at line 540 of file scsiport.c.
Definition at line 549 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 558 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 571 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 609 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 622 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 658 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 736 of file scsiport.c.
Referenced by Buslogic_InitBT958().
PVOID NTAPI ScsiPortGetVirtualAddress | ( | IN PVOID | HwDeviceExtension, |
IN SCSI_PHYSICAL_ADDRESS | PhysicalAddress | ||
) |
Definition at line 821 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 1133 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 1287 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 1299 of file scsiport.c.
Referenced by AtapiStartIo(), AtapiStartIo__(), BT958HwFindAdapter(), Buslogic_InitBT958(), BusLogic_ProcessCompletedCCBs(), and MapError().
Definition at line 1314 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 1324 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 1360 of file scsiport.c.
Definition at line 1370 of file scsiport.c.
Definition at line 1380 of file scsiport.c.
Definition at line 1390 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiHwInitialize(), AtapiInterrupt(), FindDevices(), IdeMediaStatus(), IdeSendCommand(), IssueIdentify(), MapError(), ReadBusLogicPort(), and SetDriveParameters().
Definition at line 1400 of file scsiport.c.
Definition at line 1408 of file scsiport.c.
Referenced by AtapiSendCommand(), and IssueIdentify().
Definition at line 1416 of file scsiport.c.
Definition at line 1427 of file scsiport.c.
VOID NTAPI ScsiPortReadRegisterBufferUshort | ( | IN PUSHORT | Register, |
IN PUSHORT | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1438 of file scsiport.c.
Definition at line 1449 of file scsiport.c.
Definition at line 1457 of file scsiport.c.
Definition at line 1465 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 1473 of file scsiport.c.
Definition at line 1489 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 1497 of file scsiport.c.
Referenced by BT958HwFindAdapter(), and UniataFindBusMasterController().
Definition at line 1517 of file scsiport.c.
Definition at line 1527 of file scsiport.c.
Definition at line 1537 of file scsiport.c.
Definition at line 1547 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 1556 of file scsiport.c.
Definition at line 1565 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUchar | ( | IN PUCHAR | Register, |
IN PUCHAR | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1574 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUlong | ( | IN PULONG | Register, |
IN PULONG | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1585 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUshort | ( | IN PUSHORT | Register, |
IN PUSHORT | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1596 of file scsiport.c.
Definition at line 1607 of file scsiport.c.
Definition at line 1616 of file scsiport.c.
Definition at line 1625 of file scsiport.c.
|
static |
Definition at line 672 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 1033 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 952 of file scsiport.c.
Referenced by SpiGetPciConfigData().
|
static |
Definition at line 877 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 832 of file scsiport.c.
Referenced by SpiScanAdapter().
|
static |
Definition at line 129 of file scsiport.c.
Referenced by DiskOpen(), DiskRead(), and SpiScanAdapter().
|
extern |
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().