// uart.h
typedef struct _UART_HARDWARE_ACCESS {
UART_HARDWARE_READ_UCHAR ReadPort8;
UART_HARDWARE_WRITE_UCHAR WritePort8;
UART_HARDWARE_READ_USHORT ReadPort16;
UART_HARDWARE_WRITE_USHORT WritePort16;
UART_HARDWARE_READ_ULONG ReadPort32;
UART_HARDWARE_WRITE_ULONG WritePort32;
UART_HARDWARE_READ_UCHAR ReadRegister8;
UART_HARDWARE_WRITE_UCHAR WriteRegister8;
UART_HARDWARE_READ_USHORT ReadRegister16;
UART_HARDWARE_WRITE_USHORT WriteRegister16;
UART_HARDWARE_READ_ULONG ReadRegister32;
UART_HARDWARE_WRITE_ULONG WriteRegister32;
UART_HARDWARE_READ_ULONG64 ReadRegister64;
UART_HARDWARE_WRITE_ULONG64 WriteRegister64;
} UART_HARDWARE_ACCESS, *PUART_HARDWARE_ACCESS;
View the official Windows Driver Kit DDI referenceNo description available.
I/O functions and the function pointers used by the serial drivers to access the device hardware.
ReadPort8A pointer to a UART_HARDWARE_READ_UCHAR callback function that reads from a port.
WritePort8A pointer to a UART_HARDWARE_WRITE_UCHAR callback function that writes to a port.
ReadPort16A pointer to a UART_HARDWARE_READ_USHORT callback function that reads from a port.
WritePort16A pointer to a UART_HARDWARE_WRITE_USHORT callback function that writes to a port.
ReadPort32A pointer to a UART_HARDWARE_READ_ULONG callback function that reads from a port.
WritePort32A pointer to a UART_HARDWARE_WRITE_ULONG callback function that writers to a port.
ReadRegister8A pointer to a UART_HARDWARE_READ_UCHAR callback function that reads from a register.
WriteRegister8A pointer to a UART_HARDWARE_READ_UCHAR callback function that writes to a register.
ReadRegister16A pointer to a UART_HARDWARE_READ_USHORT callback function that reads from a register.
WriteRegister16A pointer to a UART_HARDWARE_WRITE_USHORT callback function that writes to a register.
ReadRegister32A pointer to a UART_HARDWARE_READ_ULONG callback function that reads from a register.
WriteRegister32A pointer to a UART_HARDWARE_WRITE_ULONG callback function that writes to a register.
ReadRegister64A pointer to a UART_HARDWARE_READ_ULONG64 callback function that reads from the specified register.
WriteRegister64A pointer to a UART_HARDWARE_WRITE_ULONG64 callback function that writes to the specified register.