|
ReactOS 0.4.17-dev-1321-g5c122a9
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Variables | |
| ULONG | PortNumber = 0 |
| #define NDEBUG |
Definition at line 14 of file storport.c.
| NTSTATUS NTAPI DriverEntry | ( | _In_ PDRIVER_OBJECT | DriverObject, |
| _In_ PUNICODE_STRING | RegistryPath | ||
| ) |
Definition at line 529 of file storport.c.
|
static |
Definition at line 114 of file storport.c.
Referenced by StorPortNotification().
|
static |
Definition at line 198 of file storport.c.
Referenced by StorPortInitialize().
|
static |
Definition at line 28 of file storport.c.
Referenced by StorPortInitialize().
|
static |
Definition at line 61 of file storport.c.
Referenced by PortUnload().
Definition at line 362 of file storport.c.
Referenced by StorPortInitialize().
Definition at line 343 of file storport.c.
Referenced by StorPortInitialize().
|
static |
Definition at line 381 of file storport.c.
Referenced by StorPortInitialize().
Definition at line 472 of file storport.c.
Referenced by StorPortInitialize().
Definition at line 506 of file storport.c.
Referenced by StorPortInitialize().
Definition at line 417 of file storport.c.
Referenced by StorPortInitialize().
|
static |
Definition at line 453 of file storport.c.
Referenced by StorPortInitialize().
| PHW_INITIALIZATION_DATA PortGetDriverInitData | ( | PDRIVER_OBJECT_EXTENSION | DriverExtension, |
| INTERFACE_TYPE | InterfaceType | ||
| ) |
Definition at line 87 of file storport.c.
Referenced by PortFdoStartMiniport(), and StorPortGetUncachedExtension().
|
static |
Definition at line 158 of file storport.c.
Referenced by StorPortNotification().
|
static |
Definition at line 323 of file storport.c.
Referenced by StorPortInitialize().
| STORPORT_API PUCHAR NTAPI StorPortAllocateRegistryBuffer | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PULONG | Length | ||
| ) |
Definition at line 544 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortBusy | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ ULONG | RequestsToComplete | ||
| ) |
Definition at line 560 of file storport.c.
| STORPORT_API VOID NTAPI StorPortCompleteRequest | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun, | ||
| _In_ UCHAR | SrbStatus | ||
| ) |
Definition at line 576 of file storport.c.
| STORPORT_API ULONG NTAPI StorPortConvertPhysicalAddressToUlong | ( | _In_ STOR_PHYSICAL_ADDRESS | Address | ) |
| STORPORT_API STOR_PHYSICAL_ADDRESS NTAPI StorPortConvertUlongToPhysicalAddress | ( | _In_ ULONG_PTR | UlongAddress | ) |
Definition at line 609 of file storport.c.
Definition at line 626 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortDeviceBusy | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun, | ||
| _In_ ULONG | RequestsToComplete | ||
| ) |
Definition at line 649 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortDeviceReady | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun | ||
| ) |
Definition at line 683 of file storport.c.
| STORPORT_API ULONG StorPortExtendedFunction | ( | _In_ STORPORT_FUNCTION_CODE | FunctionCode, |
| _In_ PVOID | HwDeviceExtension, | ||
| ... | |||
| ) |
Definition at line 714 of file storport.c.
Referenced by StorPortAcquireMSISpinLock(), StorPortAllocateContiguousMemorySpecifyCacheNode(), StorPortAllocateDmaMemory(), StorPortAllocateHostMemoryBuffer(), StorPortAllocateMdl(), StorPortAllocatePool(), StorPortBuildMdlForNonPagedPool(), StorPortBuildScatterGatherList(), StorPortCancelDpc(), StorPortCancelHighResolutionTimer(), StorPortCaptureLiveDump(), StorPortCompleteServiceIrp(), StorPortCreateSystemThread(), StorPortCurrentOsInstallationUpgrade(), StorPortDelayExecution(), StorPortDeviceOperationAllowed(), StorPortEtwEvent2(), StorPortEtwEvent4(), StorPortFlushDataBufferMdl(), StorPortFreeContiguousMemorySpecifyCache(), StorPortFreeDmaMemory(), StorPortFreeHighResolutionTimer(), StorPortFreeHostMemoryBuffer(), StorPortFreeMdl(), StorPortFreePool(), StorPortFreeTimer(), StorPortFreeWorker(), StorPortGetActiveGroupCount(), StorPortGetActiveNodeCount(), StorPortGetActivityIdSrb(), StorPortGetCurrentIrql(), StorPortGetCurrentProcessorIndex(), StorPortGetCurrentProcessorNumber(), StorPortGetD3ColdSupport(), StorPortGetDataInBufferMdl(), StorPortGetDataInBufferScatterGatherList(), StorPortGetDataInBufferSystemAddress(), StorPortGetDeviceObjects(), StorPortGetGroupAffinity(), StorPortGetHighestNodeNumber(), StorPortGetMSIInfo(), StorPortGetNodeAffinity(), StorPortGetOriginalMdl(), StorPortGetPfns(), StorPortGetProcessorCount(), StorPortGetProcessorIndexFromNumber(), StorPortGetRequestCryptoInfo(), StorPortGetRequestInfo(), StorPortGetStartIoPerfParams(), StorPortGetSystemAddress(), StorPortGetSystemPortNumber(), StorPortHardwareReset(), StorPortInitializeCryptoEngine(), StorPortInitializeEvent(), StorPortInitializeHighResolutionTimer(), StorPortInitializePerfOpts(), StorPortInitializePoFxPower(), StorPortInitializeRpmb(), StorPortInitializeSListHead(), StorPortInitializeSpinLock(), StorPortInitializeTimer(), StorPortInitializeWorker(), StorPortInterlockedFlushSList(), StorPortInterlockedInsertHeadList(), StorPortInterlockedInsertTailList(), StorPortInterlockedPopEntrySList(), StorPortInterlockedPushEntrySList(), StorPortInterlockedRemoveHeadList(), StorPortInvokeAcpiMethod(), StorPortLogSystemEvent(), StorPortLogTelemetry(), StorPortLogTelemetryEx(), StorPortMarkDumpMemory(), StorPortMaskPciMsixEntry(), StorPortMiniportReportInternalData(), StorPortPoFxActivateComponent(), StorPortPoFxIdleComponent(), StorPortPoFxPowerControl(), StorPortPoFxRegisterPerfStates(), StorPortPoFxSetComponentLatency(), StorPortPoFxSetComponentResidency(), StorPortPoFxSetIdleTimeout(), StorPortPoFxSetPerfState(), StorPortPropagateIrpExtension(), StorPortPutScatterGatherList(), StorPortQueryConfiguration(), StorPortQueryDepthSList(), StorPortQueryDpcWatchdogInformation(), StorPortQueryPerformanceCounter(), StorPortQueryTimerMinInterval(), StorPortQueueWorkItem(), StorPortRegistryReadAdapterKey(), StorPortRegistryWriteAdapterKey(), StorPortReleaseMSISpinLock(), StorPortRequestHighResolutionTimer(), StorPortRequestTimer(), StorPortRevertToUserGroupAffinityThread(), StorPortSetAdapterBusType(), StorPortSetEvent(), StorPortSetFeatureList(), StorPortSetPriorityThread(), StorPortSetSystemGroupAffinityThread(), StorPortSetUnitAttributes(), StorPortUpdateAdapterMaxIO(), and StorPortWaitForEvent().
| STORPORT_API VOID NTAPI StorPortFreeDeviceBase | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PVOID | MappedAddress | ||
| ) |
Definition at line 1030 of file storport.c.
| STORPORT_API VOID NTAPI StorPortFreeRegistryBuffer | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PUCHAR | Buffer | ||
| ) |
Definition at line 1045 of file storport.c.
| STORPORT_API ULONG NTAPI StorPortGetBusData | ( | _In_ PVOID | DeviceExtension, |
| _In_ ULONG | BusDataType, | ||
| _In_ ULONG | SystemIoBusNumber, | ||
| _In_ ULONG | SlotNumber, | ||
| _Out_ _When_(Length !=0, _Out_writes_bytes_(Length)) PVOID | Buffer, | ||
| _In_ ULONG | Length | ||
| ) |
Definition at line 1060 of file storport.c.
Referenced by AhciHwFindAdapter().
| STORPORT_API PVOID NTAPI StorPortGetDeviceBase | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ INTERFACE_TYPE | BusType, | ||
| _In_ ULONG | SystemIoBusNumber, | ||
| _In_ STOR_PHYSICAL_ADDRESS | IoAddress, | ||
| _In_ ULONG | NumberOfBytes, | ||
| _In_ BOOLEAN | InIoSpace | ||
| ) |
Definition at line 1101 of file storport.c.
Referenced by AhciHwFindAdapter().
| STORPORT_API PVOID NTAPI StorPortGetLogicalUnit | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun | ||
| ) |
Definition at line 1173 of file storport.c.
| STORPORT_API STOR_PHYSICAL_ADDRESS NTAPI StorPortGetPhysicalAddress | ( | _In_ PVOID | HwDeviceExtension, |
| _In_opt_ PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ PVOID | VirtualAddress, | ||
| _Out_ ULONG * | Length | ||
| ) |
Definition at line 1214 of file storport.c.
Referenced by AhciPortInitialize(), and AhciProcessSrb().
| STORPORT_API PSTOR_SCATTER_GATHER_LIST NTAPI StorPortGetScatterGatherList | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 1269 of file storport.c.
Referenced by AhciATAPICommand(), and DeviceRequestReadWrite().
| STORPORT_API PSCSI_REQUEST_BLOCK NTAPI StorPortGetSrb | ( | _In_ PVOID | DeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun, | ||
| _In_ LONG | QueueTag | ||
| ) |
Definition at line 1289 of file storport.c.
| STORPORT_API PVOID NTAPI StorPortGetUncachedExtension | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PPORT_CONFIGURATION_INFORMATION | ConfigInfo, | ||
| _In_ ULONG | NumberOfBytes | ||
| ) |
Definition at line 1307 of file storport.c.
Referenced by AhciAllocateResourceForAdapter().
| STORPORT_API PVOID NTAPI StorPortGetVirtualAddress | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ STOR_PHYSICAL_ADDRESS | PhysicalAddress | ||
| ) |
Definition at line 1384 of file storport.c.
| STORPORT_API ULONG NTAPI StorPortInitialize | ( | _In_ PVOID | Argument1, |
| _In_ PVOID | Argument2, | ||
| _In_ struct _HW_INITIALIZATION_DATA * | HwInitializationData, | ||
| _In_opt_ PVOID | HwContext | ||
| ) |
Definition at line 1401 of file storport.c.
Referenced by DriverEntry().
| STORPORT_API VOID NTAPI StorPortLogError | ( | _In_ PVOID | HwDeviceExtension, |
| _In_opt_ PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun, | ||
| _In_ ULONG | ErrorCode, | ||
| _In_ ULONG | UniqueId | ||
| ) |
Definition at line 1513 of file storport.c.
| STORPORT_API VOID NTAPI StorPortMoveMemory | ( | _Out_writes_bytes_(Length) PVOID | Destination, |
| _In_reads_bytes_(Length) PVOID | Source, | ||
| _In_ ULONG | Length | ||
| ) |
Definition at line 1536 of file storport.c.
| STORPORT_API VOID StorPortNotification | ( | _In_ SCSI_NOTIFICATION_TYPE | NotificationType, |
| _In_ PVOID | HwDeviceExtension, | ||
| ... | |||
| ) |
Definition at line 1550 of file storport.c.
Referenced by AhciCommandCompletionDpcRoutine(), AhciCompleteIssuedSrb(), AhciHwStartIo(), StorPortAcquireSpinLock(), StorPortEnablePassiveInitialization(), StorPortInitializeDpc(), StorPortIssueDpc(), StorPortReleaseSpinLock(), and StorPortTerminateSystemThread().
Definition at line 1747 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortPauseDevice | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun, | ||
| _In_ ULONG | TimeOut | ||
| ) |
Definition at line 1763 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortReady | ( | _In_ PVOID | HwDeviceExtension | ) |
Definition at line 1801 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortRegistryRead | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PUCHAR | ValueName, | ||
| _In_ ULONG | Global, | ||
| _In_ ULONG | Type, | ||
| _In_ PUCHAR | Buffer, | ||
| _In_ PULONG | BufferLength | ||
| ) |
Definition at line 1816 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortRegistryWrite | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PUCHAR | ValueName, | ||
| _In_ ULONG | Global, | ||
| _In_ ULONG | Type, | ||
| _In_ PUCHAR | Buffer, | ||
| _In_ ULONG | BufferLength | ||
| ) |
Definition at line 1836 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortResume | ( | _In_ PVOID | HwDeviceExtension | ) |
Definition at line 1856 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortResumeDevice | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun | ||
| ) |
Definition at line 1871 of file storport.c.
| STORPORT_API ULONG NTAPI StorPortSetBusDataByOffset | ( | _In_ PVOID | DeviceExtension, |
| _In_ ULONG | BusDataType, | ||
| _In_ ULONG | SystemIoBusNumber, | ||
| _In_ ULONG | SlotNumber, | ||
| _In_reads_bytes_(Length) PVOID | Buffer, | ||
| _In_ ULONG | Offset, | ||
| _In_ ULONG | Length | ||
| ) |
Definition at line 1889 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortSetDeviceQueueDepth | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ UCHAR | PathId, | ||
| _In_ UCHAR | TargetId, | ||
| _In_ UCHAR | Lun, | ||
| _In_ ULONG | Depth | ||
| ) |
Definition at line 1930 of file storport.c.
Referenced by AtapiInquiryCompletion(), and InquiryCompletion().
| STORPORT_API VOID NTAPI StorPortStallExecution | ( | _In_ ULONG | Delay | ) |
Definition at line 1969 of file storport.c.
Referenced by AhciAdapterReset(), AhciPortInitialize(), and AhciStartPort().
| STORPORT_API VOID NTAPI StorPortSynchronizeAccess | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ PSTOR_SYNCHRONIZED_ACCESS | SynchronizedAccessRoutine, | ||
| _In_opt_ PVOID | Context | ||
| ) |
Definition at line 1982 of file storport.c.
| STORPORT_API BOOLEAN NTAPI StorPortValidateRange | ( | _In_ PVOID | HwDeviceExtension, |
| _In_ INTERFACE_TYPE | BusType, | ||
| _In_ ULONG | SystemIoBusNumber, | ||
| _In_ STOR_PHYSICAL_ADDRESS | IoAddress, | ||
| _In_ ULONG | NumberOfBytes, | ||
| _In_ BOOLEAN | InIoSpace | ||
| ) |
Definition at line 1998 of file storport.c.
| ULONG PortNumber = 0 |
Definition at line 21 of file storport.c.