// ntddndis.h
typedef struct _NDIS_SRIOV_BAR_RESOURCES_INFO {
NDIS_OBJECT_HEADER Header;
NDIS_SRIOV_FUNCTION_ID VFId;
USHORT BarIndex;
ULONG BarResourcesOffset;
} NDIS_SRIOV_BAR_RESOURCES_INFO, *PNDIS_SRIOV_BAR_RESOURCES_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_SRIOV_BAR_RESOURCES_INFO structure specifies the PCI Express (PCIe) Base Address Register (BAR) of a network adapter's PCIe Virtual Function (VF).
HeaderThe type, revision, and size of the NDIS_SRIOV_BAR_RESOURCES_INFO structure. This member is formatted as an NDIS_OBJECT_HEADER structure.
The miniport driver must set the Type member of Header to NDIS_OBJECT_TYPE_DEFAULT. To specify the version of the NDIS_SRIOV_BAR_RESOURCES_INFO structure, the driver must set the Revision member of Header to the following value:
Original version for NDIS 6.30 and later.
Set the Size member to NDIS_SIZEOF_SRIOV_BAR_RESOURCES_INFO_REVISION_1.
VFIdAn NDIS_SRIOV_FUNCTION_ID value that specifies the unique identifier of the VF on the network adapter.
Note The VF with the specified NDIS_SRIOV_FUNCTION_ID value must have resources that were previously allocated through an OID set request of OID_NIC_SWITCH_ALLOCATE_VF.
BarIndexA USHORT value that specifies the BAR index on the VF. This value is the offset of the register within the table of BARs in the PCI configuration space.
BarResourcesOffsetA ULONG value that specifies the offset, in units of bytes, from the beginning of this structure to a CM_PARTIAL_RESOURCE_DESCRIPTOR structure.
The NDIS_SRIOV_BAR_RESOURCES_INFO structure is used in OID method requests of OID_SRIOV_BAR_RESOURCES.
CM_PARTIAL_RESOURCE_DESCRIPTOR