Skip to content

Latest commit

 

History

History
88 lines (66 loc) · 2.32 KB

nc-dispmprt-dxgkddi_getresourceforbar.md

File metadata and controls

88 lines (66 loc) · 2.32 KB
UID title description tech.root ms.date keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos ms.custom f1_keywords topic_type api_type api_location api_name dev_langs
NC:dispmprt.DXGKDDI_GETRESOURCEFORBAR
DXGKDDI_GETRESOURCEFORBAR
If the driver does not support the GUID_DXGKDDI_FLEXIOV_DEVICE_INTERFACE interface, this routine returns the host partition base address of a single Virtual Function base address register.
display
04/04/2019
DXGKDDI_GETRESOURCEFORBAR callback function
dispmprt.h
Windows
19H1
DXGKDDI_GETRESOURCEFORBAR
dispmprt/DXGKDDI_GETRESOURCEFORBAR
apiref
UserDefined
dispmprt.h
DXGKDDI_GETRESOURCEFORBAR
c++

DXGKDDI_GETRESOURCEFORBAR callback function

-description

If the driver does not support the GUID_DXGKDDI_FLEXIOV_DEVICE_INTERFACE interface, this routine returns the host partition base address of a single Virtual Function base address register. This host physical address should be the beginning of the MMIO (Memory management input output) space that the driver wants to be mapped as the GPU partition’s MMIO bar.

When the driver report that it does support the GUID_DXGKDDI_FLEXIOV_DEVICE_INTERFACE interface, this function will not be called.

-parameters

-param Context [in]

The miniport context that is returned by the driver in the DXGKDDI_SRIOV_INTERFACE structure.

-param pArgs [in, out]

A pointer to the DXGKARG_GETRESOURCEFORBAR that contains arguments for this function.

-returns

If the VF has resources at this BarIndex and can return the information correct, the statement NT_SUCCESS(return value) will be true.

-prototype

//Declaration

DXGKDDI_GETRESOURCEFORBAR DxgkddiGetresourceforbar; 

// Definition

NTSTATUS DxgkddiGetresourceforbar 
(
	HANDLE Context
	DXGKARG_GETRESOURCEFORBAR * pArgs
)
{...}

-remarks

This routine can fail if the VF does not expose a BAR at BarIndex. This is expected and will not cause an immediate failure.

-see-also