ULONG VideoPortGetBusData(
PVOID HwDeviceExtension, | |
BUS_DATA_TYPE BusDataType, | |
ULONG SlotNumber, | |
PVOID Buffer, | |
ULONG Offset, | |
ULONG Length | |
); |
VideoPortGetBusData returns bus-type-specific configuration information.
Cmos
EisaConfiguration
Pos
PCIConfiguration
However, additional types of bus configuration will be supported in the
future. The upper bound on the types supported is always MaximumBusDataType.
If PCIConfiguration is specified as the BusDataType, this
parameter must be specified as a PCI_SLOT_NUMBER-type
value.
VideoPortGetBusData returns the number of bytes of configuration information it has written in Buffer. If the given BusDataType is not valid for the current platform, this function usually returns zero.
When the BusDataType parameter is PCIConfiguration, VideoPortGetBusData can return either of the following values to indicate an error:
Value |
Meaning |
0 |
The PCI bus does not exist. |
2 |
The PCI bus exists, but there is no device at the given PCI SlotNumber. The Buffer contains the value PCI_INVALID_VENDOR_ID at the PCI_COMMON_CONFIG VendorId member. |
VideoPortGetBusData can be called only from a miniport’s HwVidFindAdapter function.
Drivers of PCI video adapters usually call VideoPortGetAccessRanges rather than VideoPortGetBusData.
CM_EISA_FUNCTION_INFORMATION, CM_EISA_SLOT_INFORMATION, CM_MCA_POS_DATA, HwVidFindAdapter, HwVidQueryDeviceCallback, PCI_COMMON_CONFIG, PCI_SLOT_NUMBER, VIDEO_PORT_CONFIG_INFO, VideoPortGetAccessRanges, VideoPortGetDeviceBase, VideoPortGetDeviceData, VideoPortGetRegistryParameters