HyperDbg Debugger
|
#include "common.h"
Functions | |
BOOLEAN | MSM8974SetBaud (_Inout_ PCPPORT Port, ULONG Rate) |
BOOLEAN | MSM8974InitializePort (_In_opt_ _Null_terminated_ PCHAR LoadOptions, _Inout_ PCPPORT Port, BOOLEAN MemoryMapped, UCHAR AccessSize, UCHAR BitWidth) |
UART_STATUS | MSM8974GetByte (_Inout_ PCPPORT Port, _Out_ PUCHAR Byte) |
UART_STATUS | MSM8974PutByte (_Inout_ PCPPORT Port, UCHAR Byte, BOOLEAN BusyWait) |
BOOLEAN | MSM8974RxReady (_Inout_ PCPPORT Port) |
Variables | |
UART_HARDWARE_DRIVER | MSM8974HardwareDriver |
#define RX_FIFO_WIDTH sizeof(UINT32) |
#define UART_DM_BADR_ADDR 0x00000044 |
#define UART_DM_BADR_DEFAULT 0x70 |
#define UART_DM_CH_CMD | ( | a, | |
v ) |
#define UART_DM_CH_CMD_CLEAR_TX_DONE 0x11 |
#define UART_DM_CH_CMD_MODE_RESET 0x0C |
#define UART_DM_CH_CMD_PACKET_MODE 0x09 |
#define UART_DM_CH_CMD_RESET_BREAK_CHANGE_IRQ 0x04 |
#define UART_DM_CH_CMD_RESET_BRK_END_IRQ 0x13 |
#define UART_DM_CH_CMD_RESET_BRK_START_IRQ 0x12 |
#define UART_DM_CH_CMD_RESET_CTS_N 0x07 |
#define UART_DM_CH_CMD_RESET_ERROR_STATUS 0x03 |
#define UART_DM_CH_CMD_RESET_PAR_FRAME_ERR_IRQ 0x14 |
#define UART_DM_CH_CMD_RESET_RECEIVER 0x01 |
#define UART_DM_CH_CMD_RESET_RFR_N 0x0E |
#define UART_DM_CH_CMD_RESET_STALE_IRQ 0x08 |
#define UART_DM_CH_CMD_RESET_TRANSMITTER 0x02 |
#define UART_DM_CH_CMD_RESET_TX_ERROR 0x10 |
#define UART_DM_CH_CMD_SET_RFR_N 0x0D |
#define UART_DM_CH_CMD_START_BREAK 0x05 |
#define UART_DM_CH_CMD_STOP_BREAK 0x06 |
#define UART_DM_CH_CMD_TEST_FRAME_ON 0x0B |
#define UART_DM_CH_CMD_TEST_PARITY_ON 0x0A |
#define UART_DM_CH_CMD_UART_RESET_INT 0x0F |
#define UART_DM_CR_ADDR 0x000000A8 |
#define UART_DM_CR_CLR_DCTS 0x0070 |
#define UART_DM_CR_DIS_CR_PROT 0x0200 |
#define UART_DM_CR_DIS_RX 0x02 |
#define UART_DM_CR_DIS_STALE_EVT 0x0600 |
#define UART_DM_CR_DIS_TX 0x08 |
#define UART_DM_CR_ENA_CR_PROT 0x0100 |
#define UART_DM_CR_ENA_RX 0x01 |
#define UART_DM_CR_ENA_STALE_EVT 0x0500 |
#define UART_DM_CR_ENA_TX 0x04 |
#define UART_DM_CR_FORCE_STALE 0x0400 |
#define UART_DM_CR_NULL_CMD 0x0000 |
#define UART_DM_CR_RESET_BRK_INT 0x0040 |
#define UART_DM_CR_RESET_ERR 0x0030 |
#define UART_DM_CR_RESET_RFR 0x00E0 |
#define UART_DM_CR_RESET_RX 0x0010 |
#define UART_DM_CR_RESET_SAMPLE 0x00C0 |
#define UART_DM_CR_RESET_STALE 0x0080 |
#define UART_DM_CR_RESET_TX 0x0020 |
#define UART_DM_CR_RESET_TX_DONE 0x0810 |
#define UART_DM_CR_RESET_TX_ERR 0x0800 |
#define UART_DM_CR_RESET_TX_RDY 0x0300 |
#define UART_DM_CR_SAMP_MODE 0x0090 |
#define UART_DM_CR_SET_RFR 0x00D0 |
#define UART_DM_CR_STA_BRK 0x0050 |
#define UART_DM_CR_STO_BRK 0x0060 |
#define UART_DM_CR_TEST_FRAME 0x00B0 |
#define UART_DM_CR_TEST_PARITY 0x00A0 |
#define UART_DM_CSR_ADDR 0x000000A0 |
#define UART_DM_DMA_EN_RXTX_DM_DIS 0x00 |
#define UART_DM_DMEN_ADDR 0x0000003c |
#define UART_DM_DMRX_ADDR 0x00000034 |
#define UART_DM_GENERAL_CMD | ( | a, | |
v ) UART_DM_WRITE_REG((a), UART_DM_CR_ADDR, ((v) & 0x7) << 8) |
#define UART_DM_GENERAL_CMD_CR_PROTECTION_DISABLE 0x02 |
#define UART_DM_GENERAL_CMD_CR_PROTECTION_ENABLE 0x01 |
#define UART_DM_GENERAL_CMD_DISABLE_STALE_EVENT 0x06 |
#define UART_DM_GENERAL_CMD_ENABLE_STALE_EVENT 0x05 |
#define UART_DM_GENERAL_CMD_RESET_TX_READY_IRQ 0x03 |
#define UART_DM_GENERAL_CMD_SW_FORCE_STALE 0x04 |
#define UART_DM_HCR_ADDR 0x00000024 |
#define UART_DM_IMR_ADDR 0x000000B0 |
#define UART_DM_IMR_CUR_CTS 0x040 |
#define UART_DM_IMR_DEFAULT 0 |
#define UART_DM_IMR_DELTA_CTS 0x020 |
#define UART_DM_IMR_NONE 0x000 |
#define UART_DM_IMR_RXBREAK 0x004 |
#define UART_DM_IMR_RXHUNT 0x002 |
#define UART_DM_IMR_RXLEV 0x010 |
#define UART_DM_IMR_RXSTALE 0x008 |
#define UART_DM_IMR_TX_DONE 0x200 |
#define UART_DM_IMR_TX_ERROR 0x100 |
#define UART_DM_IMR_TX_READY 0x080 |
#define UART_DM_IMR_TXLEV 0x001 |
#define UART_DM_IPR_ADDR 0x00000018 |
#define UART_DM_IPR_DEFAULT 0x2 |
#define UART_DM_IRDA_ADDR 0x00000038 |
#define UART_DM_IRDA_DISABLE 0x00 |
#define UART_DM_ISR_ADDR 0x000000B4 |
#define UART_DM_ISR_RXSTALE_BMSK 0x8 |
#define UART_DM_ISR_TX_READY_BMSK 0x80 |
#define UART_DM_MR1_ADDR 0x00000000 |
#define UART_DM_MR1_CTSC 0x40 |
#define UART_DM_MR1_DEFAULT 0 |
#define UART_DM_MR1_RFRC 0x80 |
#define UART_DM_MR2_05SB 0x00 |
#define UART_DM_MR2_15SB 0x08 |
#define UART_DM_MR2_1SB 0x04 |
#define UART_DM_MR2_2SB 0x0C |
#define UART_DM_MR2_5BPC 0x00 |
#define UART_DM_MR2_6BPC 0x10 |
#define UART_DM_MR2_7BPC 0x20 |
#define UART_DM_MR2_8BPC 0x30 |
#define UART_DM_MR2_ADDR 0x00000004 |
#define UART_DM_MR2_DEFAULT |
#define UART_DM_MR2_EPAR 0x02 |
#define UART_DM_MR2_ERRMODE 0x40 |
#define UART_DM_MR2_LOOPBACK 0x80 |
#define UART_DM_MR2_NOPAR 0x00 |
#define UART_DM_MR2_OPAR 0x01 |
#define UART_DM_MR2_SPAR 0x03 |
#define UART_DM_NO_CHARS_FOR_TX_ADDR 0x00000040 |
#define UART_DM_READ_REG | ( | addr, | |
offset ) READ_REGISTER_ULONG((ULONG *)((PUCHAR)addr + offset)) |
#define UART_DM_RF_ADDR 0x00000140 |
#define UART_DM_RFWR_ADDR 0x00000020 |
#define UART_DM_RX_TOTAL_SNAP_ADDR 0x000000BC |
#define UART_DM_RXFS_ADDR 0x00000050 |
#define UART_DM_RXFS_RX_FIFO_STATE_LSB_BMSK 0x7f |
#define UART_DM_SR_ADDR 0x000000A4 |
#define UART_DM_SR_ERROR_BMSK |
#define UART_DM_SR_HUNT_CHAR_BMSK 0x80 |
#define UART_DM_SR_PAR_FRAME_ERR_BMSK 0x20 |
#define UART_DM_SR_RX_BREAK_BMSK 0x40 |
#define UART_DM_SR_RXRDY_BMSK 0x1 |
#define UART_DM_SR_TXEMT_BMSK 0x8 |
#define UART_DM_SR_TXRDY_BMSK 0x4 |
#define UART_DM_SR_UART_OVERRUN_BMSK 0x10 |
#define UART_DM_TF_ADDR 0x00000100 |
#define UART_DM_TFWR_ADDR 0x0000001c |
#define UART_DM_TXFS_ADDR 0x0000004c |
#define UART_DM_WRITE_REG | ( | addr, | |
offset, | |||
val ) WRITE_REGISTER_ULONG((ULONG *)((PUCHAR)addr + offset), val) |
#define UART_RX_BYTES_TO_RECEIVE 0x2000 |
UART_STATUS MSM8974GetByte | ( | _Inout_ PCPPORT | Port, |
_Out_ PUCHAR | Byte ) |
BOOLEAN MSM8974InitializePort | ( | _In_opt_ _Null_terminated_ PCHAR | LoadOptions, |
_Inout_ PCPPORT | Port, | ||
BOOLEAN | MemoryMapped, | ||
UCHAR | AccessSize, | ||
UCHAR | BitWidth ) |
BOOLEAN MSM8974RxReady | ( | _Inout_ PCPPORT | Port | ) |
UART_HARDWARE_DRIVER MSM8974HardwareDriver |