|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#include <ntifs.h>#include <wdmguid.h>#include <wchar.h>#include <acpiioct.h>#include <drivers/pci/pci.h>#include <drivers/acpi/acpi.h>#include <ndk/halfuncs.h>#include <ndk/rtlfuncs.h>#include <ndk/vffuncs.h>#include <arbiter.h>#include <cmreslist.h>

Go to the source code of this file.
Classes | |
| struct | _PCI_HACK_ENTRY |
| struct | _PCI_RESIZABLE_BAR_STATE |
| struct | _PCI_POWER_STATE |
| struct | _PCI_LOCK |
| struct | _PCI_FDO_EXTENSION |
| struct | _PCI_FUNCTION_RESOURCES |
| struct | _PCI_DEBUGGING_DEVICE |
| union | _PCI_HEADER_TYPE_DEPENDENT |
| struct | _PCI_PDO_EXTENSION |
| struct | _PCI_MN_DISPATCH_TABLE |
| struct | _PCI_MJ_DISPATCH_TABLE |
| struct | _PCI_INTERFACE |
| struct | PCI_SECONDARY_EXTENSION |
| struct | PCI_ARBITER_INSTANCE |
| struct | _PCI_VERIFIER_DATA |
| struct | _PCI_ID_BUFFER |
| struct | _PCI_CONFIGURATOR |
| struct | _PCI_CONFIGURATOR_CONTEXT |
| struct | _PCI_IPI_CONTEXT |
| struct | _PCI_LEGACY_DEVICE |
Enumerations | |
| enum | _PCI_SIGNATURE { PciPdoExtensionType = 'icP0' , PciFdoExtensionType = 'icP1' , PciArb_Io = 'icP2' , PciArb_Memory = 'icP3' , PciArb_Interrupt = 'icP4' , PciArb_BusNumber = 'icP5' , PciTrans_Interrupt = 'icP6' , PciInterface_BusHandler = 'icP7' , PciInterface_IntRouteHandler = 'icP8' , PciInterface_PciCb = 'icP9' , PciInterface_LegacyDeviceDetection = 'icP:' , PciInterface_PmeHandler = 'icP;' , PciInterface_DevicePresent = 'icP<' , PciInterface_NativeIde = 'icP=' , PciInterface_AgpTarget = 'icP>' , PciInterface_Location = 'icP?' } |
| enum | _PCI_DEVICE_TYPES { PciTypeInvalid , PciTypeHostBridge , PciTypePciBridge , PciTypeCardbusBridge , PciTypeDevice } |
| enum | _PCI_STATE { PciNotStarted , PciStarted , PciDeleted , PciStopped , PciSurpriseRemoved , PciSynchronizedOperation , PciMaxObjectState } |
| enum | _PCI_DISPATCH_STYLE { IRP_COMPLETE , IRP_DOWNWARD , IRP_UPWARD , IRP_DISPATCH } |
| #define ASSERT_FDO | ( | x | ) | ASSERT((x)->ExtensionType == PciFdoExtensionType); |
| #define ASSERT_PDO | ( | x | ) | ASSERT((x)->ExtensionType == PciPdoExtensionType); |
| #define PCI_HACK_ENTRY_FULL_SIZE sizeof(L"VVVVddddssssIIIIRR") - sizeof(UNICODE_NULL) |
| #define PCI_HACK_ENTRY_REV_SIZE sizeof(L"VVVVddddRR") - sizeof(UNICODE_NULL) |
| #define PCI_HACK_ENTRY_SIZE sizeof(L"VVVVdddd") - sizeof(UNICODE_NULL) |
| #define PCI_HACK_ENTRY_SUBSYS_SIZE sizeof(L"VVVVddddssssIIII") - sizeof(UNICODE_NULL) |
| typedef struct _PCI_CONFIGURATOR PCI_CONFIGURATOR |
| typedef NTSTATUS(NTAPI * PCI_CONFIGURATOR_CHANGE_RESOURCE_SETTINGS) (_In_ PPCI_PDO_EXTENSION PdoExtension, _Inout_ PPCI_COMMON_HEADER PciData) |
| typedef VOID(NTAPI * PCI_CONFIGURATOR_GET_ADDITIONAL_RESOURCE_DESCRIPTORS) (IN struct _PCI_CONFIGURATOR_CONTEXT *Context, IN PPCI_COMMON_HEADER PciData, IN PIO_RESOURCE_DESCRIPTOR IoDescriptor) |
| typedef VOID(NTAPI * PCI_CONFIGURATOR_RESET_DEVICE) (IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData) |
| typedef enum _PCI_DEVICE_TYPES PCI_DEVICE_TYPES |
| typedef NTSTATUS(NTAPI * PCI_DISPATCH_FUNCTION) (IN PIRP Irp, IN PIO_STACK_LOCATION IoStackLocation, IN PVOID DeviceExtension) |
| typedef struct _PCI_HACK_ENTRY PCI_HACK_ENTRY |
| typedef union _PCI_HEADER_TYPE_DEPENDENT PCI_HEADER_TYPE_DEPENDENT |
| typedef struct _PCI_ID_BUFFER PCI_ID_BUFFER |
| typedef struct _PCI_INTERFACE PCI_INTERFACE |
| typedef struct _PCI_IPI_CONTEXT PCI_IPI_CONTEXT |
| typedef struct _PCI_POWER_STATE PCI_POWER_STATE |
| typedef enum _PCI_SIGNATURE PCI_SIGNATURE |
| typedef enum _PCI_STATE PCI_STATE |
| typedef struct PCI_ARBITER_INSTANCE * PPCI_ARBITER_INSTANCE |
| typedef struct _PCI_CONFIGURATOR * PPCI_CONFIGURATOR |
| typedef struct _PCI_DEBUGGING_DEVICE * PPCI_DEBUGGING_DEVICE |
| typedef struct _PCI_FDO_EXTENSION * PPCI_FDO_EXTENSION |
| typedef struct _PCI_HACK_ENTRY * PPCI_HACK_ENTRY |
| typedef union _PCI_HEADER_TYPE_DEPENDENT * PPCI_HEADER_TYPE_DEPENDENT |
| typedef struct _PCI_ID_BUFFER * PPCI_ID_BUFFER |
| typedef struct _PCI_INTERFACE * PPCI_INTERFACE |
| typedef struct _PCI_IPI_CONTEXT * PPCI_IPI_CONTEXT |
| typedef struct _PCI_LEGACY_DEVICE * PPCI_LEGACY_DEVICE |
| typedef struct _PCI_PDO_EXTENSION * PPCI_PDO_EXTENSION |
| typedef struct _PCI_POWER_STATE * PPCI_POWER_STATE |
| typedef enum _PCI_SIGNATURE * PPCI_SIGNATURE |
| typedef struct _PCI_VERIFIER_DATA * PPCI_VERIFIER_DATA |
| Enumerator | |
|---|---|
| PciTypeInvalid | |
| PciTypeHostBridge | |
| PciTypePciBridge | |
| PciTypeCardbusBridge | |
| PciTypeDevice | |
Definition at line 154 of file pci.h.
| Enumerator | |
|---|---|
| IRP_COMPLETE | |
| IRP_DOWNWARD | |
| IRP_UPWARD | |
| IRP_DISPATCH | |
Definition at line 180 of file pci.h.
Definition at line 131 of file pci.h.
| Enumerator | |
|---|---|
| PciNotStarted | |
| PciStarted | |
| PciDeleted | |
| PciStopped | |
| PciSurpriseRemoved | |
| PciSynchronizedOperation | |
| PciMaxObjectState | |
Definition at line 166 of file pci.h.
| NTSTATUS NTAPI agpintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 117 of file agpintrf.c.
Definition at line 107 of file agpintrf.c.
| NTSTATUS NTAPI arbusno_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 144 of file ar_busno.c.
Definition at line 110 of file ar_busno.c.
| NTSTATUS NTAPI arbusno_PackResource | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor, |
| _In_ ULONGLONG | Start, | ||
| _Out_ PCM_PARTIAL_RESOURCE_DESCRIPTOR | Resource | ||
| ) |
Definition at line 54 of file ar_busno.c.
Referenced by arbusno_Initializer().
| INT32 NTAPI arbusno_ScoreRequirement | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor | ) |
Definition at line 85 of file ar_busno.c.
Referenced by arbusno_Initializer().
| NTSTATUS NTAPI arbusno_UnpackRequirement | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor, |
| _Out_ PULONGLONG | Minimum, | ||
| _Out_ PULONGLONG | Maximum, | ||
| _Out_ PULONGLONG | Length, | ||
| _Out_ PULONGLONG | Alignment | ||
| ) |
Definition at line 35 of file ar_busno.c.
Referenced by arbusno_Initializer(), and arbusno_ScoreRequirement().
| NTSTATUS NTAPI arbusno_UnpackResource | ( | _In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR | Resource, |
| _Out_ PULONGLONG | Start, | ||
| _Out_ PULONGLONG | Length | ||
| ) |
Definition at line 71 of file ar_busno.c.
Referenced by arbusno_Initializer().
| VOID NTAPI ario_ApplyBrokenVideoHack | ( | IN PPCI_FDO_EXTENSION | FdoExtension | ) |
Definition at line 184 of file ar_memio.c.
Referenced by PciApplyHacks().
| NTSTATUS NTAPI ario_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 156 of file ar_memio.c.
Definition at line 119 of file ar_memio.c.
| NTSTATUS NTAPI ario_PackResource | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor, |
| _In_ ULONGLONG | Start, | ||
| _Out_ PCM_PARTIAL_RESOURCE_DESCRIPTOR | Resource | ||
| ) |
Definition at line 67 of file ar_memio.c.
Referenced by ario_Initializer().
| INT32 NTAPI ario_ScoreRequirement | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor | ) |
Definition at line 98 of file ar_memio.c.
Referenced by ario_Initializer().
| NTSTATUS NTAPI ario_UnpackRequirement | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor, |
| _Out_ PULONGLONG | Minimum, | ||
| _Out_ PULONGLONG | Maximum, | ||
| _Out_ PULONGLONG | Length, | ||
| _Out_ PULONGLONG | Alignment | ||
| ) |
Definition at line 48 of file ar_memio.c.
Referenced by ario_Initializer(), and ario_ScoreRequirement().
| NTSTATUS NTAPI ario_UnpackResource | ( | _In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR | Resource, |
| _Out_ PULONGLONG | Start, | ||
| _Out_ PULONGLONG | Length | ||
| ) |
Definition at line 84 of file ar_memio.c.
Referenced by ario_Initializer().
| NTSTATUS NTAPI armem_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 345 of file ar_memio.c.
Definition at line 308 of file ar_memio.c.
| NTSTATUS NTAPI armem_PackResource | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor, |
| _In_ ULONGLONG | Start, | ||
| _Out_ PCM_PARTIAL_RESOURCE_DESCRIPTOR | Resource | ||
| ) |
Definition at line 248 of file ar_memio.c.
Referenced by armem_Initializer().
| INT32 NTAPI armem_ScoreRequirement | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor | ) |
Definition at line 287 of file ar_memio.c.
Referenced by armem_Initializer().
| NTSTATUS NTAPI armem_UnpackRequirement | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Descriptor, |
| _Out_ PULONGLONG | Minimum, | ||
| _Out_ PULONGLONG | Maximum, | ||
| _Out_ PULONGLONG | Length, | ||
| _Out_ PULONGLONG | Alignment | ||
| ) |
Definition at line 225 of file ar_memio.c.
Referenced by armem_Initializer(), and armem_ScoreRequirement().
| NTSTATUS NTAPI armem_UnpackResource | ( | _In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR | Resource, |
| _Out_ PULONGLONG | Start, | ||
| _Out_ PULONGLONG | Length | ||
| ) |
Definition at line 270 of file ar_memio.c.
Referenced by armem_Initializer().
| NTSTATUS NTAPI busintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 142 of file busintrf.c.
Definition at line 132 of file busintrf.c.
| NTSTATUS NTAPI Cardbus_ChangeResourceSettings | ( | _In_ PPCI_PDO_EXTENSION | PdoExtension, |
| _Inout_ PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 149 of file cardbus.c.
| VOID NTAPI Cardbus_GetAdditionalResourceDescriptors | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context, |
| IN PPCI_COMMON_HEADER | PciData, | ||
| IN PIO_RESOURCE_DESCRIPTOR | IoDescriptor | ||
| ) |
Definition at line 128 of file cardbus.c.
| VOID NTAPI Cardbus_MassageHeaderForLimitsDetermination | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 102 of file cardbus.c.
| VOID NTAPI Cardbus_ResetDevice | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 138 of file cardbus.c.
| VOID NTAPI Cardbus_RestoreCurrent | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
| VOID NTAPI Cardbus_SaveCurrentSettings | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 39 of file cardbus.c.
| VOID NTAPI Cardbus_SaveLimits | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 91 of file cardbus.c.
| NTSTATUS NTAPI Device_ChangeResourceSettings | ( | _In_ PPCI_PDO_EXTENSION | PdoExtension, |
| _Inout_ PPCI_COMMON_HEADER | PciData | ||
| ) |
Puts the ranges assigned to a function into its BARs and ROM BAR.
| [in] | PdoExtension | The PDO extension of the function. |
| [in,out] | PciData | The header that will be written to the function. |
Definition at line 308 of file device.c.
| VOID NTAPI Device_GetAdditionalResourceDescriptors | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context, |
| IN PPCI_COMMON_HEADER | PciData, | ||
| IN PIO_RESOURCE_DESCRIPTOR | IoDescriptor | ||
| ) |
Definition at line 271 of file device.c.
| VOID NTAPI Device_MassageHeaderForLimitsDetermination | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 230 of file device.c.
| VOID NTAPI Device_ResetDevice | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 284 of file device.c.
| VOID NTAPI Device_RestoreCurrent | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
| VOID NTAPI Device_SaveCurrentSettings | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 20 of file device.c.
| VOID NTAPI Device_SaveLimits | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 120 of file device.c.
| NTSTATUS NTAPI devpresent_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 270 of file devhere.c.
| NTSTATUS NTAPI lddintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 45 of file lddintrf.c.
Definition at line 35 of file lddintrf.c.
| NTSTATUS NTAPI locintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 116 of file locintrf.c.
Definition at line 35 of file locintrf.c.
| NTSTATUS NTAPI PciAddDevice | ( | IN PDRIVER_OBJECT | DriverObject, |
| IN PDEVICE_OBJECT | PhysicalDeviceObject | ||
| ) |
Definition at line 707 of file fdo.c.
| ULONG NTAPI PciAddResizableBarRequirements | ( | _In_ PPCI_PDO_EXTENSION | PdoExtension, |
| _In_ ULONG | BarIndex, | ||
| _In_ PIO_RESOURCE_DESCRIPTOR | Limit, | ||
| _Out_writes_opt_(2) PIO_RESOURCE_DESCRIPTOR | Descriptors | ||
| ) |
Writes the requirements for the sizes a resizable BAR can grow to. They go ahead of the default requirement, which the caller then lists as the alternative. The largest size is preferred, and the smallest supported size follows it when that is also bigger than the default.
| [in] | PdoExtension | The PDO extension of the function. |
| [in] | BarIndex | The BAR the default requirement describes. |
| [in] | Limit | The default requirement of the BAR. |
| [out] | Descriptors | Receives up to two descriptors, or NULL to only count them. |
Definition at line 142 of file rbar.c.
Referenced by PciBuildRequirementsList().
| VOID NTAPI PciApplyResizableBarSizes | ( | _In_ PPCI_PDO_EXTENSION | PdoExtension | ) |
Sets every resizable BAR to the length it was assigned. The memory decode has to be off, since the size field changes what the BAR decodes. Critical devices call this from the IPI that updates their hardware.
| [in] | PdoExtension | The PDO extension of the function whose resources are being set. |
Definition at line 229 of file rbar.c.
Referenced by PcipUpdateHardware().
| BOOLEAN NTAPI PciArbiter_FindSuitableRange | ( | _In_ PARBITER_INSTANCE | Arbiter, |
| _Inout_ PARBITER_ALLOCATION_STATE | State | ||
| ) |
Searches for a placement, remembering on the range whether it came from a fixed alternative.
| [in] | Arbiter | The arbiter instance placing the entry. |
| [in,out] | State | The allocation state of the entry. |
Definition at line 97 of file arb_comn.c.
Referenced by ario_Initializer(), and armem_Initializer().
| BOOLEAN NTAPI PciArbiter_OverrideConflict | ( | _In_ PARBITER_INSTANCE | Arbiter, |
| _Inout_ PARBITER_ALLOCATION_STATE | State | ||
| ) |
Lets a fixed requirement overlap ranges its own device was given by other fixed requirements.
| [in] | Arbiter | The arbiter instance placing the entry. |
| [in,out] | State | The allocation state of the entry. On success Start and End receive the requested window. |
Definition at line 136 of file arb_comn.c.
Referenced by ario_Initializer(), and armem_Initializer().
| NTSTATUS NTAPI PciArbiter_PreprocessEntry | ( | _In_ PARBITER_INSTANCE | Arbiter, |
| _Inout_ PARBITER_ALLOCATION_STATE | State | ||
| ) |
Sets the range attributes of one arbitration entry before the engine looks for a placement for it.
| [in] | Arbiter | The arbiter instance placing the entry. |
| [in,out] | State | The allocation state of the entry. |
Definition at line 51 of file arb_comn.c.
Referenced by arbusno_Initializer(), ario_Initializer(), and armem_Initializer().
| NTSTATUS NTAPI PciArbiterConstructor | ( | _In_ PPCI_FDO_EXTENSION | FdoExtension, |
| _In_ PCI_SIGNATURE | ArbiterType, | ||
| _Out_ PARBITER_INTERFACE | Interface | ||
| ) |
Definition at line 200 of file arb_comn.c.
Referenced by arbusno_Constructor(), ario_Constructor(), and armem_Constructor().
| BOOLEAN NTAPI PciAreBusNumbersConfigured | ( | IN PPCI_PDO_EXTENSION | PdoExtension | ) |
Definition at line 20 of file busno.c.
Referenced by PciAddDevice(), and PciProcessBus().
| NTSTATUS NTAPI PciBeginStateTransition | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCI_STATE | NewState | ||
| ) |
Definition at line 97 of file state.c.
Referenced by PciFdoIrpQueryRemoveDevice(), PciFdoIrpQueryStopDevice(), PciFdoIrpRemoveDevice(), PciFdoIrpStartDevice(), PciFdoIrpSurpriseRemoval(), PciPdoIrpQueryRemoveDevice(), PciPdoIrpQueryStopDevice(), PciPdoIrpRemoveDevice(), PciPdoIrpStartDevice(), PciPdoIrpSurpriseRemoval(), and PciQueryDeviceRelations().
Definition at line 276 of file utils.c.
Referenced by DriverEntry().
| NTSTATUS NTAPI PciBuildRequirementsList | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN PPCI_COMMON_HEADER | PciData, | ||
| OUT PIO_RESOURCE_REQUIREMENTS_LIST * | Buffer | ||
| ) |
Definition at line 756 of file enum.c.
Referenced by PciAssignAndProgramLegacy(), and PciQueryRequirements().
| ULONG NTAPI PciBusInterface_GetBusData | ( | _In_ PVOID | Context, |
| _In_ ULONG | WhichSpace, | ||
| _Out_writes_bytes_(Length) PVOID | Buffer, | ||
| _In_ ULONG | Offset, | ||
| _In_ ULONG | Length | ||
| ) |
| ULONG NTAPI PciBusInterface_SetBusData | ( | _In_ PVOID | Context, |
| _In_ ULONG | WhichSpace, | ||
| _In_reads_bytes_(Length) PVOID | Buffer, | ||
| _In_ ULONG | Offset, | ||
| _In_ ULONG | Length | ||
| ) |
| NTSTATUS NTAPI PciCacheLegacyDeviceRouting | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | BusNumber, | ||
| IN ULONG | SlotNumber, | ||
| IN UCHAR | InterruptLine, | ||
| IN UCHAR | InterruptPin, | ||
| IN UCHAR | BaseClass, | ||
| IN UCHAR | SubClass, | ||
| IN PDEVICE_OBJECT | PhysicalDeviceObject, | ||
| IN PPCI_PDO_EXTENSION | PdoExtension, | ||
| OUT PDEVICE_OBJECT * | pFoundDeviceObject | ||
| ) |
Definition at line 266 of file routintf.c.
Referenced by PciAssignSlotResources().
Definition at line 39 of file dispatch.c.
Referenced by PciDispatchIrp(), and PciFdoIrpQueryInterface().
| NTSTATUS NTAPI PciCancelStateTransition | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCI_STATE | NewState | ||
| ) |
Definition at line 145 of file state.c.
Referenced by PciFdoIrpCancelRemoveDevice(), PciFdoIrpCancelStopDevice(), PciFdoIrpStartDevice(), PciPdoIrpCancelRemoveDevice(), PciPdoIrpCancelStopDevice(), PciPdoIrpStartDevice(), and PciQueryDeviceRelations().
| BOOLEAN NTAPI PciCanDisableDecodes | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| IN PPCI_COMMON_HEADER | Config, | ||
| IN ULONGLONG | HackFlags, | ||
| IN BOOLEAN | ForPowerDown | ||
| ) |
Definition at line 1027 of file utils.c.
Referenced by PciDecodeEnable(), PciPdoCanPowerDown(), PciPdoCanTurnOff(), PciPdoTurnOff(), and PciSetPowerManagedDevicePowerState().
| NTSTATUS NTAPI pcicbintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 200 of file cardbus.c.
| PCI_DEVICE_TYPES NTAPI PciClassifyDeviceType | ( | IN PPCI_PDO_EXTENSION | PdoExtension | ) |
Definition at line 1126 of file utils.c.
Referenced by PciProcessBus().
| VOID NTAPI PciCommitStateTransition | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCI_STATE | NewState | ||
| ) |
Definition at line 181 of file state.c.
Referenced by PciFdoIrpRemoveDevice(), PciFdoIrpStartDevice(), PciFdoIrpStopDevice(), PciFdoIrpSurpriseRemoval(), PciPdoIrpRemoveDevice(), PciPdoIrpStartDevice(), PciPdoIrpStopDevice(), and PciPdoIrpSurpriseRemoval().
| BOOLEAN NTAPI PciComputeNewCurrentSettings | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN PCM_RESOURCE_LIST | ResourceList | ||
| ) |
Definition at line 55 of file enum.c.
Referenced by PciAssignAndProgramLegacy(), and PciPdoIrpStartDevice().
| BOOLEAN NTAPI PciCreateIoDescriptorFromBarLimit | ( | _Out_ PIO_RESOURCE_DESCRIPTOR | ResourceDescriptor, |
| _In_ ULONG | Bar, | ||
| _In_ ULONG | NextBar, | ||
| _In_ BOOLEAN | Rom | ||
| ) |
Builds the requirement of a BAR from the value it reads back after all ones were written to it.
| [out] | ResourceDescriptor | Receives the requirement, or a null descriptor when the BAR is not implemented. |
| [in] | Bar | The probed BAR. |
| [in] | NextBar | The probed BAR after it, which holds the high half of a 64-bit BAR. 0 when there is none. |
| [in] | Rom | TRUE when Bar is an expansion ROM BAR. |
Definition at line 1252 of file utils.c.
Referenced by Cardbus_SaveLimits(), Device_SaveLimits(), and PPBridge_SaveLimits().
| VOID NTAPI PciDebugDumpCommonConfig | ( | IN PPCI_COMMON_HEADER | PciData | ) |
Definition at line 207 of file debug.c.
Referenced by PcipGetFunctionLimits(), and PciScanBus().
| VOID NTAPI PciDebugDumpQueryCapabilities | ( | IN PDEVICE_CAPABILITIES | DeviceCaps | ) |
Definition at line 221 of file debug.c.
Referenced by PciFdoIrpQueryCapabilities(), and PciQueryCapabilities().
| BOOLEAN NTAPI PciDebugIrpDispatchDisplay | ( | IN PIO_STACK_LOCATION | IoStackLocation, |
| IN PPCI_FDO_EXTENSION | DeviceExtension, | ||
| IN USHORT | MaxMinor | ||
| ) |
Definition at line 124 of file debug.c.
Referenced by PciDispatchIrp().
| VOID NTAPI PciDebugPrintCmResList | ( | IN PCM_RESOURCE_LIST | ResourceList | ) |
Definition at line 365 of file debug.c.
Referenced by PciComputeNewCurrentSettings().
| VOID NTAPI PciDebugPrintIoResReqList | ( | IN PIO_RESOURCE_REQUIREMENTS_LIST | Requirements | ) |
Definition at line 303 of file debug.c.
Referenced by PciQueryRequirements().
| VOID NTAPI PciDebugPrintPartialResource | ( | IN PCM_PARTIAL_RESOURCE_DESCRIPTOR | PartialResource | ) |
Definition at line 349 of file debug.c.
Referenced by PciComputeNewCurrentSettings(), and PciDebugPrintCmResList().
| VOID NTAPI PciDecodeEnable | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN BOOLEAN | Enable, | ||
| OUT PUSHORT | Command | ||
| ) |
Definition at line 1359 of file utils.c.
Referenced by PciApplyHacks(), PciConfigureIdeController(), PciPdoTurnOff(), and PcipUpdateHardware().
Definition at line 99 of file dispatch.c.
| BOOLEAN NTAPI PciEcamReadWriteConfig | ( | _In_ ULONG | Bus, |
| _In_ PCI_SLOT_NUMBER | Slot, | ||
| _Inout_updates_bytes_(Length) PVOID | Buffer, | ||
| _In_ ULONG | Offset, | ||
| _In_ ULONG | Length, | ||
| _In_ BOOLEAN | Read | ||
| ) |
Performs a configuration space access through the ECAM window.
Definition at line 401 of file ecam.c.
Referenced by PciReadWriteConfigSpace().
Definition at line 1144 of file utils.c.
| NTSTATUS NTAPI PciFdoIrpCancelRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 322 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpCancelStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
| NTSTATUS NTAPI PciFdoIrpDeviceUsageNotification | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 527 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpQueryCapabilities | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 500 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpQueryDeviceRelations | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 398 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpQueryInterface | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 425 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpQueryLegacyBusInformation | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 567 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpQueryPower | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 351 of file power.c.
| NTSTATUS NTAPI PciFdoIrpQueryRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 236 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpQueryStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 356 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 259 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpStartDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 202 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 338 of file fdo.c.
| NTSTATUS NTAPI PciFdoIrpSurpriseRemoval | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 545 of file fdo.c.
| NTSTATUS NTAPI PciFdoSetPowerState | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 318 of file power.c.
| NTSTATUS NTAPI PciFdoWaitWake | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
| PPCI_SECONDARY_EXTENSION NTAPI PciFindNextSecondaryExtension | ( | IN PSINGLE_LIST_ENTRY | ListHead, |
| IN PCI_SIGNATURE | ExtensionType | ||
| ) |
Definition at line 584 of file utils.c.
Referenced by ario_ApplyBrokenVideoHack(), PciArbiterConstructor(), and PciInitializeArbiterRanges().
| PPCI_FDO_EXTENSION NTAPI PciFindParentPciFdoExtension | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PKEVENT | Lock | ||
| ) |
Definition at line 340 of file utils.c.
Referenced by PciAddDevice().
| PPCI_PDO_EXTENSION NTAPI PciFindPdoByFunction | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN ULONG | FunctionNumber, | ||
| IN PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 695 of file utils.c.
Referenced by PciScanBus().
Frees the routing cached for slots claimed by legacy drivers.
Definition at line 357 of file routintf.c.
Referenced by PciDriverUnload().
| UCHAR NTAPI PciGetAdjustedInterruptLine | ( | IN PPCI_PDO_EXTENSION | PdoExtension | ) |
Definition at line 24 of file config.c.
Referenced by PciScanBus().
| NTSTATUS NTAPI PciGetBiosConfig | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| OUT PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 840 of file utils.c.
Referenced by PciGetBiosBusRange(), PciScanBus(), PPBridge_SaveCurrentSettings(), and routeintrf_UpdateInterruptLine().
| NTSTATUS NTAPI PciGetConfigHandlers | ( | IN PPCI_FDO_EXTENSION | FdoExtension | ) |
Definition at line 266 of file config.c.
Referenced by PciAddDevice().
Definition at line 105 of file id.c.
Referenced by PciQueryDeviceText(), and PciScanBus().
| NTSTATUS NTAPI PciGetDeviceProperty | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN DEVICE_REGISTRY_PROPERTY | DeviceProperty, | ||
| OUT PVOID * | OutputBuffer | ||
| ) |
Definition at line 475 of file utils.c.
Referenced by PciAddDevice().
| VOID NTAPI PciGetExpressCapabilities | ( | _Inout_ PPCI_PDO_EXTENSION | PdoExtension | ) |
Records the Express capability of a new function and whether its extended configuration space can be reached.
| [in,out] | PdoExtension | The PDO extension of the function being enumerated. |
Definition at line 99 of file express.c.
Referenced by PciGetEnhancedCapabilities().
| ULONGLONG NTAPI PciGetHackFlags | ( | IN USHORT | VendorId, |
| IN USHORT | DeviceId, | ||
| IN USHORT | SubVendorId, | ||
| IN USHORT | SubSystemId, | ||
| IN UCHAR | RevisionId | ||
| ) |
Definition at line 604 of file utils.c.
Referenced by PciScanBus().
| NTSTATUS NTAPI PciGetRegistryValue | ( | IN PWCHAR | ValueName, |
| IN PWCHAR | KeyName, | ||
| IN HANDLE | RootHandle, | ||
| IN ULONG | Type, | ||
| OUT PVOID * | OutputBuffer, | ||
| OUT PULONG | OutputLength | ||
| ) |
Definition at line 193 of file utils.c.
Referenced by DriverEntry(), PciAcpiFindRsdt(), PciGetDebugPorts(), PciGetIrqRoutingTableFromRegistry(), and PciIsDatacenter().
| VOID NTAPI PciGetResizableBarCapability | ( | _Inout_ PPCI_PDO_EXTENSION | PdoExtension | ) |
Records which BARs of a new function can be resized and the sizes each of them supports.
| [in,out] | PdoExtension | The PDO extension of the function being enumerated. |
Definition at line 31 of file rbar.c.
Referenced by PciGetEnhancedCapabilities().
Definition at line 319 of file hookhal.c.
Referenced by DriverEntry().
| NTSTATUS NTAPI PciInitializeArbiterRanges | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCM_RESOURCE_LIST | Resources | ||
| ) |
Definition at line 447 of file arb_comn.c.
Referenced by PciFdoIrpStartDevice().
| NTSTATUS NTAPI PciInitializeArbiters | ( | IN PPCI_FDO_EXTENSION | FdoExtension | ) |
Definition at line 242 of file arb_comn.c.
Referenced by PciAddDevice().
| VOID NTAPI PciInitializeEcam | ( | _In_ PPCI_FDO_EXTENSION | FdoExtension | ) |
Maps the bus an FDO decodes into the ECAM window and verifies the window the first time a bus with devices on it is seen.
| [in] | FdoExtension | The FDO extension of the bus being started. |
Definition at line 336 of file ecam.c.
Referenced by PciAddDevice().
| VOID NTAPI PciInitializeState | ( | IN PPCI_FDO_EXTENSION | DeviceExtension | ) |
Definition at line 88 of file state.c.
Referenced by PciInitializeFdoExtensionCommonFields(), and PciPdoCreate().
| VOID NTAPI PciInsertEntryAtTail | ( | IN PSINGLE_LIST_ENTRY | ListHead, |
| IN PPCI_FDO_EXTENSION | DeviceExtension, | ||
| IN PKEVENT | Lock | ||
| ) |
Definition at line 400 of file utils.c.
Referenced by PciAddDevice(), and PciPdoCreate().
| NTSTATUS NTAPI PciIrpInvalidDeviceRequest | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 277 of file dispatch.c.
| NTSTATUS NTAPI PciIrpNotSupported | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_FDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 261 of file dispatch.c.
Definition at line 672 of file utils.c.
Referenced by PciScanBus().
Definition at line 132 of file utils.c.
Referenced by DriverEntry().
| BOOLEAN NTAPI PciIsDeviceOnDebugPath | ( | IN PPCI_PDO_EXTENSION | DeviceExtension | ) |
Referenced by PciScanBus().
| BOOLEAN NTAPI PciIsRequirementDescriptor | ( | _In_ PIO_RESOURCE_DESCRIPTOR | Limit | ) |
Tells whether a discovered limit asks the arbiter for a range.
| [in] | Limit | The limit of one BAR or bridge window. |
Definition at line 671 of file enum.c.
Referenced by Device_ChangeResourceSettings(), PciBuildRequirementsList(), and PciComputeNewCurrentSettings().
| BOOLEAN NTAPI PciIsSlotPresentInParentMethod | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN ULONG | Method | ||
| ) |
Definition at line 1169 of file utils.c.
Referenced by PciApplyHacks(), and PciBridgeIsPositiveDecode().
| BOOLEAN NTAPI PciOpenKey | ( | IN PWCHAR | KeyName, |
| IN HANDLE | RootKey, | ||
| IN ACCESS_MASK | DesiredAccess, | ||
| OUT PHANDLE | KeyHandle, | ||
| OUT PNTSTATUS | KeyStatus | ||
| ) |
Definition at line 166 of file utils.c.
Referenced by DriverEntry(), PciAcpiFindRsdt(), PciEcamQueryWindow(), PciGetIrqRoutingTableFromRegistry(), and PciGetRegistryValue().
Definition at line 70 of file dispatch.c.
Referenced by PciDispatchIrp(), PciFdoIrpQueryInterface(), PciFdoIrpRemoveDevice(), and PciFdoWaitWake().
| NTSTATUS NTAPI PciPdoCreate | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCI_SLOT_NUMBER | Slot, | ||
| OUT PDEVICE_OBJECT * | PdoDeviceObject | ||
| ) |
Definition at line 1022 of file pdo.c.
Referenced by PciScanBus().
| NTSTATUS NTAPI PciPdoIrpCancelRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
| NTSTATUS NTAPI PciPdoIrpCancelStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
| NTSTATUS NTAPI PciPdoIrpDeviceUsageNotification | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 956 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryBusInformation | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 809 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryCapabilities | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 731 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryDeviceRelations | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 697 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryDeviceState | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 930 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryDeviceText | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 778 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryId | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 795 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryInterface | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 671 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryLegacyBusInformation | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 1006 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryPower | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 144 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 534 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryResourceRequirements | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 762 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryResources | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 747 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 632 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpReadConfig | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 908 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 560 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpStartDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 158 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 613 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpSurpriseRemoval | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 976 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpWriteConfig | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
| NTSTATUS NTAPI PciPdoSetPowerState | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 104 of file pdo.c.
| NTSTATUS NTAPI PciPdoWaitWake | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 88 of file pdo.c.
| BOOLEAN NTAPI PcipIsSameDevice | ( | _In_ PPCI_PDO_EXTENSION | DeviceExtension, |
| _In_ PPCI_COMMON_HEADER | PciData | ||
| ) |
| VOID NTAPI PcipLinkSecondaryExtension | ( | IN PSINGLE_LIST_ENTRY | List, |
| IN PVOID | Lock, | ||
| IN PPCI_SECONDARY_EXTENSION | SecondaryExtension, | ||
| IN PCI_SIGNATURE | ExtensionType, | ||
| IN PVOID | Destructor | ||
| ) |
Definition at line 459 of file utils.c.
Referenced by PciInitializeArbiters().
| NTSTATUS NTAPI PciPmeInterfaceConstructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 74 of file pmeintf.c.
| NTSTATUS NTAPI PciQueryBusInformation | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| OUT PPNP_BUS_INFORMATION * | Buffer | ||
| ) |
Definition at line 1408 of file utils.c.
Referenced by PciPdoIrpQueryBusInformation().
| NTSTATUS NTAPI PciQueryCapabilities | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN OUT PDEVICE_CAPABILITIES | DeviceCapability | ||
| ) |
Definition at line 1820 of file utils.c.
Referenced by PciPdoIrpQueryCapabilities().
| NTSTATUS NTAPI PciQueryDeviceRelations | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN OUT PDEVICE_RELATIONS * | pDeviceRelations | ||
| ) |
Definition at line 2366 of file enum.c.
Referenced by PciFdoIrpQueryDeviceRelations().
| NTSTATUS NTAPI PciQueryDeviceText | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN DEVICE_TEXT_TYPE | QueryType, | ||
| IN ULONG | Locale, | ||
| OUT PWCHAR * | Buffer | ||
| ) |
Definition at line 422 of file id.c.
Referenced by PciPdoIrpQueryDeviceText().
| NTSTATUS NTAPI PciQueryEjectionRelations | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN OUT PDEVICE_RELATIONS * | pDeviceRelations | ||
| ) |
Definition at line 614 of file enum.c.
Referenced by PciPdoIrpQueryDeviceRelations().
| NTSTATUS NTAPI PciQueryId | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| IN BUS_QUERY_ID_TYPE | QueryType, | ||
| OUT PWCHAR * | Buffer | ||
| ) |
Definition at line 217 of file id.c.
Referenced by PciPdoIrpQueryId().
| NTSTATUS NTAPI PciQueryInterface | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN CONST GUID * | InterfaceType, | ||
| IN ULONG | Size, | ||
| IN ULONG | Version, | ||
| IN PVOID | InterfaceData, | ||
| IN PINTERFACE | Interface, | ||
| IN BOOLEAN | LastChance | ||
| ) |
Definition at line 45 of file intrface.c.
Referenced by PciFdoIrpQueryInterface(), and PciPdoIrpQueryInterface().
| NTSTATUS NTAPI PciQueryRequirements | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN OUT PIO_RESOURCE_REQUIREMENTS_LIST * | RequirementsList | ||
| ) |
Definition at line 882 of file enum.c.
Referenced by PciPdoIrpQueryResourceRequirements().
| NTSTATUS NTAPI PciQueryResources | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| OUT PCM_RESOURCE_LIST * | Buffer | ||
| ) |
Definition at line 389 of file enum.c.
Referenced by PciPdoIrpQueryResources().
| NTSTATUS NTAPI PciQueryTargetDeviceRelations | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN OUT PDEVICE_RELATIONS * | pDeviceRelations | ||
| ) |
Definition at line 552 of file enum.c.
Referenced by PciPdoIrpQueryDeviceRelations().
| UCHAR NTAPI PciReadDeviceCapability | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| IN UCHAR | Offset, | ||
| IN ULONG | CapabilityId, | ||
| OUT PPCI_CAPABILITIES_HEADER | Buffer, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 958 of file utils.c.
Referenced by PciGetEnhancedCapabilities(), PciGetExpressCapabilities(), PciScanBus(), and PciSetPowerManagedDevicePowerState().
| VOID NTAPI PciReadDeviceConfig | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| IN PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 149 of file config.c.
Referenced by PciApplyHacks(), PciApplyResizableBarSizes(), PciAssignSlotResources(), PciConfigureIdeController(), PciDecodeEnable(), PciGetResizableBarCapability(), PciPdoIsPresent(), PciPdoReadWriteConfig(), PciPdoTurnOff(), PcipGetFunctionLimits(), PciQueryRequirements(), PciQueryResources(), PciReadDeviceCapability(), PciReadDeviceExtendedCapability(), PciScanBus(), PciSelectResizableBarSize(), PciSetResources(), PciStallForPowerChange(), PciVerifierCheckBridgeBusNumbers(), and PciWriteLimitsAndRestoreCurrent().
| ULONG NTAPI PciReadDeviceExtendedCapability | ( | _In_ PPCI_PDO_EXTENSION | DeviceExtension, |
| _In_ ULONG | CapabilityId, | ||
| _Out_writes_bytes_(Length) PPCI_EXPRESS_ENHANCED_CAPABILITY_HEADER | Buffer, | ||
| _In_ ULONG | Length | ||
| ) |
Finds an extended capability and reads it into the caller's buffer.
Definition at line 39 of file express.c.
Referenced by PciGetResizableBarCapability().
| VOID NTAPI PciReadSlotConfig | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCI_SLOT_NUMBER | Slot, | ||
| IN PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 165 of file config.c.
Referenced by PciEcamVerifyBus(), and PciScanBus().
Unmaps every bus mapped through the ECAM window.
Definition at line 381 of file ecam.c.
Referenced by PciDriverUnload().
Gives the HAL back the routines PciHookHal replaced.
Definition at line 337 of file hookhal.c.
Referenced by PciDriverUnload().
| NTSTATUS NTAPI PciSaveBiosConfig | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| OUT PPCI_COMMON_HEADER | PciData | ||
| ) |
Referenced by PciScanBus(), and routeintrf_UpdateInterruptLine().
| NTSTATUS NTAPI PciSendDeviceUsageToParent | ( | _In_ PPCI_FDO_EXTENSION | ParentFdoExtension, |
| _In_ PIO_STACK_LOCATION | IoStackLocation | ||
| ) |
Sends a device usage notification to the top of the stack of a parent bus.
| [in] | ParentFdoExtension | The FDO extension of the bus the function is on. |
| [in] | IoStackLocation | The stack location of the notification the function received. |
Definition at line 94 of file usage.c.
Referenced by PciPdoIrpDeviceUsageNotification().
| NTSTATUS NTAPI PciSendIoctl | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | IoControlCode, | ||
| IN PVOID | InputBuffer, | ||
| IN ULONG | InputBufferLength, | ||
| IN PVOID | OutputBuffer, | ||
| IN ULONG | OutputBufferLength | ||
| ) |
Definition at line 531 of file utils.c.
Referenced by PciGetHotPlugParameters(), and PciIsSlotPresentInParentMethod().
| NTSTATUS NTAPI PciSetPowerManagedDevicePowerState | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| IN DEVICE_POWER_STATE | DeviceState, | ||
| IN BOOLEAN | IrpSet | ||
| ) |
Definition at line 123 of file power.c.
Referenced by PciPdoEnterDevicePowerState(), PciPdoIrpStartDevice(), PciPdoTurnOff(), and PciScanBus().
| NTSTATUS NTAPI PciSetResources | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN BOOLEAN | DoReset, | ||
| IN BOOLEAN | SomethingSomethingDarkSide | ||
| ) |
Definition at line 2490 of file enum.c.
Referenced by PciAssignAndProgramLegacy(), PciPdoIrpStartDevice(), and PciSetPowerManagedDevicePowerState().
Definition at line 62 of file utils.c.
Referenced by PciBuildHackTable().
| BOOLEAN NTAPI PciUnicodeStringStrStr | ( | IN PUNICODE_STRING | InputString, |
| IN PCUNICODE_STRING | EqualString, | ||
| IN BOOLEAN | CaseInSensitive | ||
| ) |
Definition at line 28 of file utils.c.
Referenced by DriverEntry().
| NTSTATUS NTAPI PciUpdateDeviceUsage | ( | _Inout_ PPCI_POWER_STATE | PowerState, |
| _In_ PIO_STACK_LOCATION | IoStackLocation | ||
| ) |
Counts a paging, hibernation or dump file arriving on or leaving a device.
| [in,out] | PowerState | The power state of the extension that holds the counts. |
| [in] | IoStackLocation | The stack location of the device usage notification. |
Definition at line 35 of file usage.c.
Referenced by PciFdoIrpDeviceUsageNotification(), and PciPdoIrpDeviceUsageNotification().
| VOID NTAPI PciVerifierInit | ( | IN PDRIVER_OBJECT | DriverObject | ) |
Definition at line 182 of file pcivrify.c.
Referenced by DriverEntry().
Drops the hardware profile notification taken by PciVerifierInit.
Definition at line 206 of file pcivrify.c.
Referenced by PciDriverUnload().
| PPCI_VERIFIER_DATA NTAPI PciVerifierRetrieveFailureData | ( | IN ULONG | FailureCode | ) |
Definition at line 60 of file pcivrify.c.
Referenced by PciStallForPowerChange(), and PciVerifierCheckBridgeBusNumbers().
| VOID NTAPI PciWriteDeviceConfig | ( | IN PPCI_PDO_EXTENSION | DeviceExtension, |
| IN PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 133 of file config.c.
Referenced by PciApplyHacks(), PciConfigureIdeController(), PciDecodeEnable(), PciPdoReadWriteConfig(), PcipUpdateHardware(), PciScanBus(), PciSelectResizableBarSize(), PciSetPowerManagedDevicePowerState(), PciSetResources(), PciWriteLimitsAndRestoreCurrent(), and routeintrf_UpdateInterruptLine().
| NTSTATUS NTAPI PPBridge_ChangeResourceSettings | ( | _In_ PPCI_PDO_EXTENSION | PdoExtension, |
| _Inout_ PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 831 of file ppbridge.c.
| VOID NTAPI PPBridge_GetAdditionalResourceDescriptors | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context, |
| IN PPCI_COMMON_HEADER | PciData, | ||
| IN PIO_RESOURCE_DESCRIPTOR | IoDescriptor | ||
| ) |
Definition at line 657 of file ppbridge.c.
Referenced by Cardbus_GetAdditionalResourceDescriptors().
| VOID NTAPI PPBridge_MassageHeaderForLimitsDetermination | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 611 of file ppbridge.c.
| VOID NTAPI PPBridge_ResetDevice | ( | IN PPCI_PDO_EXTENSION | PdoExtension, |
| IN PPCI_COMMON_HEADER | PciData | ||
| ) |
Definition at line 702 of file ppbridge.c.
| VOID NTAPI PPBridge_RestoreCurrent | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 649 of file ppbridge.c.
| VOID NTAPI PPBridge_SaveCurrentSettings | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 227 of file ppbridge.c.
| VOID NTAPI PPBridge_SaveLimits | ( | IN PPCI_CONFIGURATOR_CONTEXT | Context | ) |
Definition at line 494 of file ppbridge.c.
| NTSTATUS NTAPI routeintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 236 of file routintf.c.
Definition at line 37 of file routintf.c.
| NTSTATUS NTAPI tranirq_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 45 of file tr_irq.c.
|
extern |
Definition at line 20 of file agpintrf.c.
|
extern |
Definition at line 18 of file ar_busno.c.
|
extern |
Definition at line 31 of file ar_memio.c.
|
extern |
Definition at line 18 of file ar_memio.c.
|
extern |
Definition at line 18 of file busintrf.c.
|
extern |
Definition at line 18 of file config.c.
Referenced by PciGetConfigHandlers(), PciProcessBus(), and PciReadWriteConfigSpace().
|
extern |
|
extern |
Definition at line 18 of file utils.c.
Referenced by PciGetDebugPorts(), and PciIsDeviceOnDebugPath().
|
extern |
Definition at line 19 of file utils.c.
Referenced by PciGetDebugPorts(), and PciIsDeviceOnDebugPath().
|
extern |
Definition at line 18 of file devhere.c.
Referenced by PdoQueryInterface(), and VideoPortCheckForDeviceExistence().
| DRIVER_DISPATCH PciDispatchIrp |
Definition at line 605 of file pci.h.
Referenced by DriverEntry().
|
extern |
Definition at line 19 of file init.c.
Referenced by DriverEntry(), PciGetDescriptionMessage(), and routeintrf_FindDevice().
|
extern |
Definition at line 20 of file ecam.c.
Referenced by PciEcamReadWriteConfig(), PciGetExpressCapabilities(), PciInitializeEcam(), and PciReleaseEcam().
|
extern |
Definition at line 24 of file init.c.
Referenced by DriverEntry(), and PciApplyHacks().
| KIPI_BROADCAST_WORKER PciExecuteCriticalSystemRoutine |
Definition at line 1204 of file pci.h.
Referenced by PcipGetFunctionLimits(), and PciUpdateHardware().
|
extern |
Definition at line 18 of file fdo.c.
Referenced by _Requires_lock_held_(), devpresent_SearchAllBuses(), PciAddDevice(), PciDriverUnload(), PciFdoIrpRemoveDevice(), PciFindParentPciFdoExtension(), and PciVerifierCheckAllBridges().
|
extern |
Definition at line 20 of file init.c.
Referenced by devpresent_SearchAllBuses(), DriverEntry(), PciAddDevice(), PciAssignSlotResources(), PciFdoIrpRemoveDevice(), and PciVerifierCheckAllBridges().
|
extern |
Definition at line 28 of file init.c.
Referenced by PciBuildHackTable(), PciDriverUnload(), and PciGetHackFlags().
|
extern |
Definition at line 18 of file intrface.c.
Referenced by PciInitializeArbiters(), and PciQueryInterface().
|
extern |
Definition at line 26 of file init.c.
Referenced by DriverEntry(), PciDetermineSlotNumber(), and PciDriverUnload().
|
extern |
Definition at line 21 of file utils.c.
Referenced by PciBuildDefaultExclusionLists(), and PciDriverUnload().
|
extern |
Definition at line 18 of file lddintrf.c.
|
extern |
Definition at line 18 of file locintrf.c.
|
extern |
|
extern |
Definition at line 20 of file routintf.c.
|
extern |
Definition at line 18 of file init.c.
Referenced by DriverEntry().
|
extern |
Definition at line 22 of file utils.c.
Referenced by PciBuildDefaultExclusionLists(), and PciDriverUnload().
|
extern |
Definition at line 18 of file enum.c.
Referenced by PciAssignAndProgramLegacy(), PciBuildRequirementsList(), PciDriverUnload(), and PciQueryRequirements().
|
extern |
|
extern |
Definition at line 27 of file init.c.
Referenced by PciDriverUnload(), and PciScanBus().