// uart.h
UART_HARDWARE_WRITE_ULONG UartHardwareWriteUlong;
VOID UartHardwareWriteUlong(
PULONG Address,
ULONG Value
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Writes a ULONG value to the specified port or register.
AddressA pointer to a variable that contains the port or register address.
ValueA ULONG value to be written to the port or register.
//Declaration
UART_HARDWARE_WRITE_ULONG UartHardwareWriteUlong;
// Definition
VOID UartHardwareWriteUlong
(
PULONG Address
ULONG Value
)
{...}
Register your implementation of this callback function by setting the WritePort32 or WriteRegister32 member of the _UART_HARDWARE_ACCESS structure.