// uart.h
UART_HARDWARE_READ_ULONG UartHardwareReadUlong;
ULONG UartHardwareReadUlong(
PULONG Address
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Reads a ULONG value from the specified port or register.
AddressA pointer to a variable that contains the port or register address.
Returns the ULONG value that is read from the specified port or register.
//Declaration
UART_HARDWARE_READ_ULONG UartHardwareReadUlong;
// Definition
ULONG UartHardwareReadUlong
(
PULONG Address
)
{...}
Register your implementation of this callback function by setting the ReadPort32 or ReadRegister32 member of the _UART_HARDWARE_ACCESS structure.