NdisReadPciSlotInformation obtains bus-specific PCI configuration information from the PCI configuration space for a device.
ULONG
NdisReadPciSlotInformation(
IN NDIS_HANDLE NdisAdapterHandle,
IN ULONG SlotNumber,
IN ULONG Offset,
IN PVOID Buffer,
IN ULONG Length
);
NdisReadPciSlotInformation returns how many bytes of configuration information it returned at Buffer.
Declared in Ndis.h. Include Ndis.h.
Miniport drivers call this function from their MiniportInitialize functions. When a driver has consumed the configuration information, it is responsible for releasing the memory at Buffer with NdisFreeMemory.
Callers of NdisReadPciSlotInformation can run at IRQL <= DISPATCH_LEVEL. Usually, callers are running at IRQL = PASSIVE_LEVEL.
MiniportInitialize, NdisFreeMemory, NdisMMapIoSpace, NdisMQueryAdapterResources, NdisMRegisterInterrupt, NdisMRegisterIoPortRange, NdisMSetAttributes, NdisMSetAttributesEx, NdisOpenConfiguration