VC_ReadIOMemoryUSHORT

VC_ReadIOMemoryUSHORT(p)

The VC_ReadIOMemoryUSHORT macro reads a single unsigned word value from a device’s mapped I/O memory space.

Parameters
p
Address of the mapped I/O memory location from which data is to be copied.
Return Value

Returns the unsigned word value read from the specified memory address.

Comments

Kernel-mode video capture drivers typically use the VC_ReadIOMemoryUSHORT macro to read a location within the frame buffer. Drivers can obtain the frame buffer’s base address by calling VC_GetFrameBuffer.

Using the VC_ReadIOMemoryUSHORT macro to read I/O space helps ensure driver portability across system platforms.