Skip to content

Latest commit

 

History

History
121 lines (74 loc) · 3.29 KB

nc-dispmprt-dxgkcb_write_device_space.md

File metadata and controls

121 lines (74 loc) · 3.29 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:dispmprt.DXGKCB_WRITE_DEVICE_SPACE
DXGKCB_WRITE_DEVICE_SPACE (dispmprt.h)
The DxgkCbWriteDeviceSpace function writes to a device configuration space or the expansion ROM of a display adapter.
display\dxgkcbwritedevicespace.htm
display
05/10/2018
DXGKCB_WRITE_DEVICE_SPACE callback function
DXGKCB_WRITE_DEVICE_SPACE, DXGKCB_WRITE_DEVICE_SPACE callback, DpFunctions_947b42ba-4121-4f21-b361-29a63278feb0.xml, DxgkCbWriteDeviceSpace, DxgkCbWriteDeviceSpace callback function [Display Devices], display.dxgkcbwritedevicespace, dispmprt/DxgkCbWriteDeviceSpace
dispmprt.h
Dispmprt.h
Desktop
Windows Vista
PASSIVE_LEVEL
Windows
DXGKCB_WRITE_DEVICE_SPACE
dispmprt/DXGKCB_WRITE_DEVICE_SPACE
APIRef
kbSyntax
UserDefined
dispmprt.h
DXGKCB_WRITE_DEVICE_SPACE

DXGKCB_WRITE_DEVICE_SPACE callback function

-description

The DxgkCbWriteDeviceSpace function writes to a device configuration space or the expansion ROM of a display adapter.

-parameters

-param DeviceHandle [in]

A handle that represents a display adapter. The display miniport driver previously obtained this handle in the DeviceHandle member of the DXGKRNL_INTERFACE structure that was passed to DxgkDdiStartDevice.

-param DataType [in]

The type of write transaction to be performed. This parameter must be one of the following values, which are defined in Dispmprt.h:

DXGK_WHICHSPACE_BRIDGE

Write to the parent bus device's configuration space.

DXGK_WHICHSPACE_CONFIG

Write to the display adapter's configuration space.

DXGK_WHICHSPACE_MCH

Write to the configuration space of a memory controller hub that is a peer to the adapter's parent bus.

DXGK_WHICHSPACE_ROM

Write to the display adapter's expansion ROM.

-param Buffer [in]

A pointer to a buffer that supplies the data to be written to the configuration space.

-param Offset [in]

The offset, in bytes, into the configuration space, at which the write transaction begins.

-param Length [in]

The number of bytes to be written.

-param BytesWritten [out]

A pointer to a ULONG-typed variable that receives the number of bytes actually written.

-returns

DxgkCbWriteDeviceSpace returns one of the following values:

Return code Description
STATUS_SUCCESS The function succeeded.
STATUS_INVALID_PARAMETER The DeviceHandle, DataType, or Buffer parameter is invalid.
STATUS_UNSUCCESSFUL The function was unable to write the data.

-see-also

DxgkCbReadDeviceSpace