ReactOS
0.4.15-dev-1636-gf634010
|
#include <freeldr.h>
#include <debug.h>
#include <ntddk.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 54 of file scsiport.c.
#define TAG_SCSI_ACCESS_RANGES 'AscS' |
Definition at line 57 of file scsiport.c.
#define TAG_SCSI_DEVEXT 'DscS' |
Definition at line 56 of file scsiport.c.
typedef struct tagDISKCONTEXT DISKCONTEXT |
DBG_DEFAULT_CHANNEL | ( | SCSIPORT | ) |
|
static |
Definition at line 169 of file scsiport.c.
|
static |
Definition at line 176 of file scsiport.c.
|
static |
Definition at line 195 of file scsiport.c.
|
static |
Definition at line 265 of file scsiport.c.
|
static |
Definition at line 375 of file scsiport.c.
Definition at line 1619 of file scsiport.c.
Referenced by RunLoader().
Definition at line 114 of file scsiport.c.
Referenced by DiskOpen().
Definition at line 462 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 498 of file scsiport.c.
Referenced by AtapiResetController(), BT958HwResetBus(), and BusLogic_ProcessCompletedCCBs().
ULONG NTAPI ScsiPortConvertPhysicalAddressToUlong | ( | IN SCSI_PHYSICAL_ADDRESS | Address | ) |
Definition at line 512 of file scsiport.c.
SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortConvertUlongToPhysicalAddress | ( | IN ULONG_PTR | UlongAddress | ) |
Definition at line 520 of file scsiport.c.
Referenced by AtapiDmaPioSync(), AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiGetIoRange(), BusLogic_ScanIncomingMailboxes(), and UniataFindBusMasterController().
Definition at line 531 of file scsiport.c.
Definition at line 540 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 549 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 562 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 594 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 607 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 | ||
) |
PVOID NTAPI ScsiPortGetUncachedExtension | ( | IN PVOID | HwDeviceExtension, |
IN PPORT_CONFIGURATION_INFORMATION | ConfigInfo, | ||
IN ULONG | NumberOfBytes | ||
) |
Definition at line 721 of file scsiport.c.
Referenced by Buslogic_InitBT958().
PVOID NTAPI ScsiPortGetVirtualAddress | ( | IN PVOID | HwDeviceExtension, |
IN SCSI_PHYSICAL_ADDRESS | PhysicalAddress | ||
) |
Definition at line 806 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 1117 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 1271 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 1283 of file scsiport.c.
Referenced by AtapiStartIo(), AtapiStartIo__(), BT958HwFindAdapter(), Buslogic_InitBT958(), BusLogic_ProcessCompletedCCBs(), and MapError().
Definition at line 1298 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 1308 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 1344 of file scsiport.c.
Definition at line 1354 of file scsiport.c.
Definition at line 1364 of file scsiport.c.
Definition at line 1374 of file scsiport.c.
Referenced by AtapiFindController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiHwInitialize(), AtapiInterrupt(), FindDevices(), IdeMediaStatus(), IdeSendCommand(), IssueIdentify(), MapError(), ReadBusLogicPort(), and SetDriveParameters().
Definition at line 1384 of file scsiport.c.
Definition at line 1400 of file scsiport.c.
Definition at line 1411 of file scsiport.c.
VOID NTAPI ScsiPortReadRegisterBufferUshort | ( | IN PUSHORT | Register, |
IN PUSHORT | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1422 of file scsiport.c.
Definition at line 1433 of file scsiport.c.
Definition at line 1441 of file scsiport.c.
Definition at line 1449 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 1457 of file scsiport.c.
Definition at line 1473 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 1481 of file scsiport.c.
Referenced by BT958HwFindAdapter(), and UniataFindBusMasterController().
Definition at line 1501 of file scsiport.c.
Definition at line 1511 of file scsiport.c.
Definition at line 1521 of file scsiport.c.
Definition at line 1531 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 1540 of file scsiport.c.
Definition at line 1549 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUchar | ( | IN PUCHAR | Register, |
IN PUCHAR | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1558 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUlong | ( | IN PULONG | Register, |
IN PULONG | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1569 of file scsiport.c.
VOID NTAPI ScsiPortWriteRegisterBufferUshort | ( | IN PUSHORT | Register, |
IN PUSHORT | Buffer, | ||
IN ULONG | Count | ||
) |
Definition at line 1580 of file scsiport.c.
Definition at line 1591 of file scsiport.c.
Definition at line 1600 of file scsiport.c.
Definition at line 1609 of file scsiport.c.
|
static |
Definition at line 657 of file scsiport.c.
Referenced by ScsiPortGetUncachedExtension().
|
static |
Definition at line 415 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 1017 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 936 of file scsiport.c.
Referenced by SpiGetPciConfigData().
|
static |
Definition at line 861 of file scsiport.c.
Referenced by ScsiPortInitialize().
|
static |
Definition at line 817 of file scsiport.c.
Referenced by SpiScanAdapter().
|
static |
Definition at line 130 of file scsiport.c.
Referenced by DiskOpen(), DiskRead(), and SpiScanAdapter().
char __ImageBase |
Definition at line 17 of file mstscax.cpp.
Referenced by LoadBootDeviceDriver().
Definition at line 404 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().