HyperDbg Debugger
|
#include "common.h"
Macros | |
#define | UART_DR 0x00 |
#define | UART_RSR 0x04 |
#define | UART_ECR 0x04 |
#define | UART_FR 0x18 |
#define | UART_ILPR 0x20 |
#define | UART_IBRD 0x24 |
#define | UART_FBRD 0x28 |
#define | UART_LCRH 0x2C |
#define | UART_CR 0x30 |
#define | UART_IFLS 0x34 |
#define | UART_IMSC 0x38 |
#define | UART_RIS 0x3C |
#define | UART_MIS 0x40 |
#define | UART_ICR 0x44 |
#define | UART_DMACR 0x48 |
#define | TOTAL_UART_REGISTER_SIZE 0x4C |
#define | UART_FR_TXFE 0x80 |
#define | UART_FR_RXFF 0x40 |
#define | UART_FR_TXFF 0x20 |
#define | UART_FR_RXFE 0x10 |
#define | UART_FR_BUSY 0x08 |
#define | UART_LCRH_SPS 0x80 |
#define | UART_LCRH_WLEN_8 0x60 |
#define | UART_LCRH_WLEN_7 0x40 |
#define | UART_LCRH_WLEN_6 0x20 |
#define | UART_LCRH_WLEN_5 0x00 |
#define | UART_LCRH_FEN 0x10 |
#define | UART_LCRH_STP2 0x08 |
#define | UART_LCRH_EPS 0x04 |
#define | UART_LCRH_PEN 0x02 |
#define | UART_LCRH_BRK 0x01 |
#define | UART_CR_CTSEn 0x8000 |
#define | UART_CR_RTSEn 0x4000 |
#define | UART_CR_OUT2 0x2000 |
#define | UART_CR_OUT1 0x1000 |
#define | UART_CR_RTS 0x0800 |
#define | UART_CR_DTR 0x0400 |
#define | UART_CR_RXE 0x0200 |
#define | UART_CR_TXE 0x0100 |
#define | UART_CR_LBE 0x0080 |
#define | UART_CR_SIRLP 0x0004 |
#define | UART_CR_SIREN 0x0002 |
#define | UART_CR_UARTEN 0x0001 |
#define | UART_DR_OE 0x800 |
#define | UART_DR_BE 0x400 |
#define | UART_DR_PE 0x200 |
#define | UART_DR_FE 0x100 |
#define | PL011_READ_REGISTER_UCHAR(a, f) (UCHAR)((f) ? READ_REGISTER_ULONG((PULONG)(a)) : READ_REGISTER_UCHAR(a)) |
#define | PL011_READ_REGISTER_USHORT(a, f) (USHORT)((f) ? READ_REGISTER_ULONG((PULONG)(a)) : READ_REGISTER_USHORT(a)) |
#define | PL011_WRITE_REGISTER_UCHAR(a, d, f) ((f) ? WRITE_REGISTER_ULONG((PULONG)(a), d) : WRITE_REGISTER_UCHAR(a, d)) |
#define | PL011_WRITE_REGISTER_USHORT(a, d, f) ((f) ? WRITE_REGISTER_ULONG((PULONG)(a), d) : WRITE_REGISTER_USHORT(a, d)) |
Functions | |
BOOLEAN | PL011InitializePort (_In_opt_ _Null_terminated_ PCHAR LoadOptions, _Inout_ PCPPORT Port, BOOLEAN MemoryMapped, UCHAR AccessSize, UCHAR BitWidth) |
BOOLEAN | SBSAInitializePort (_In_opt_ _Null_terminated_ PCHAR LoadOptions, _Inout_ PCPPORT Port, BOOLEAN MemoryMapped, UCHAR AccessSize, UCHAR BitWidth) |
BOOLEAN | SBSA32InitializePort (_In_opt_ _Null_terminated_ PCHAR LoadOptions, _Inout_ PCPPORT Port, BOOLEAN MemoryMapped, UCHAR AccessSize, UCHAR BitWidth) |
BOOLEAN | PL011SetBaud (_Inout_ PCPPORT Port, ULONG Rate) |
UART_STATUS | PL011GetByte (_Inout_ PCPPORT Port, _Out_ PUCHAR Byte) |
UART_STATUS | PL011PutByte (_Inout_ PCPPORT Port, UCHAR Byte, BOOLEAN BusyWait) |
BOOLEAN | PL011RxReady (_Inout_ PCPPORT Port) |
Variables | |
UART_HARDWARE_DRIVER | PL011HardwareDriver |
UART_HARDWARE_DRIVER | SBSAHardwareDriver |
UART_HARDWARE_DRIVER | SBSA32HardwareDriver |
#define PL011_READ_REGISTER_UCHAR | ( | a, | |
f ) (UCHAR)((f) ? READ_REGISTER_ULONG((PULONG)(a)) : READ_REGISTER_UCHAR(a)) |
#define PL011_READ_REGISTER_USHORT | ( | a, | |
f ) (USHORT)((f) ? READ_REGISTER_ULONG((PULONG)(a)) : READ_REGISTER_USHORT(a)) |
#define PL011_WRITE_REGISTER_UCHAR | ( | a, | |
d, | |||
f ) ((f) ? WRITE_REGISTER_ULONG((PULONG)(a), d) : WRITE_REGISTER_UCHAR(a, d)) |
#define PL011_WRITE_REGISTER_USHORT | ( | a, | |
d, | |||
f ) ((f) ? WRITE_REGISTER_ULONG((PULONG)(a), d) : WRITE_REGISTER_USHORT(a, d)) |
#define TOTAL_UART_REGISTER_SIZE 0x4C |
#define UART_CR 0x30 |
#define UART_CR_CTSEn 0x8000 |
#define UART_CR_DTR 0x0400 |
#define UART_CR_LBE 0x0080 |
#define UART_CR_OUT1 0x1000 |
#define UART_CR_OUT2 0x2000 |
#define UART_CR_RTS 0x0800 |
#define UART_CR_RTSEn 0x4000 |
#define UART_CR_RXE 0x0200 |
#define UART_CR_SIREN 0x0002 |
#define UART_CR_SIRLP 0x0004 |
#define UART_CR_TXE 0x0100 |
#define UART_CR_UARTEN 0x0001 |
#define UART_DMACR 0x48 |
#define UART_DR 0x00 |
#define UART_DR_BE 0x400 |
#define UART_DR_FE 0x100 |
#define UART_DR_OE 0x800 |
#define UART_DR_PE 0x200 |
#define UART_ECR 0x04 |
#define UART_FBRD 0x28 |
#define UART_FR 0x18 |
#define UART_FR_BUSY 0x08 |
#define UART_FR_RXFE 0x10 |
#define UART_FR_RXFF 0x40 |
#define UART_FR_TXFE 0x80 |
#define UART_FR_TXFF 0x20 |
#define UART_IBRD 0x24 |
#define UART_ICR 0x44 |
#define UART_IFLS 0x34 |
#define UART_ILPR 0x20 |
#define UART_IMSC 0x38 |
#define UART_LCRH 0x2C |
#define UART_LCRH_BRK 0x01 |
#define UART_LCRH_EPS 0x04 |
#define UART_LCRH_FEN 0x10 |
#define UART_LCRH_PEN 0x02 |
#define UART_LCRH_SPS 0x80 |
#define UART_LCRH_STP2 0x08 |
#define UART_LCRH_WLEN_5 0x00 |
#define UART_LCRH_WLEN_6 0x20 |
#define UART_LCRH_WLEN_7 0x40 |
#define UART_LCRH_WLEN_8 0x60 |
#define UART_MIS 0x40 |
#define UART_RIS 0x3C |
#define UART_RSR 0x04 |
UART_STATUS PL011GetByte | ( | _Inout_ PCPPORT | Port, |
_Out_ PUCHAR | Byte ) |
BOOLEAN PL011InitializePort | ( | _In_opt_ _Null_terminated_ PCHAR | LoadOptions, |
_Inout_ PCPPORT | Port, | ||
BOOLEAN | MemoryMapped, | ||
UCHAR | AccessSize, | ||
UCHAR | BitWidth ) |
BOOLEAN PL011RxReady | ( | _Inout_ PCPPORT | Port | ) |
BOOLEAN SBSA32InitializePort | ( | _In_opt_ _Null_terminated_ PCHAR | LoadOptions, |
_Inout_ PCPPORT | Port, | ||
BOOLEAN | MemoryMapped, | ||
UCHAR | AccessSize, | ||
UCHAR | BitWidth ) |
BOOLEAN SBSAInitializePort | ( | _In_opt_ _Null_terminated_ PCHAR | LoadOptions, |
_Inout_ PCPPORT | Port, | ||
BOOLEAN | MemoryMapped, | ||
UCHAR | AccessSize, | ||
UCHAR | BitWidth ) |
UART_HARDWARE_DRIVER PL011HardwareDriver |
UART_HARDWARE_DRIVER SBSA32HardwareDriver |
UART_HARDWARE_DRIVER SBSAHardwareDriver |