ReactOS 0.4.15-dev-7907-g95bf896
pl011.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: include/reactos/arm/peripherals/pl011.h
5 * PURPOSE: PL011 Registers and Constants
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9/* GLOBALS ********************************************************************/
10
11//
12// UART Registers
13//
14#define UART_BASE (ULONG_PTR)0x101F1000
15
16#define UART_PL01x_DR (UART_BASE + 0x00)
17#define UART_PL01x_RSR (UART_BASE + 0x04)
18#define UART_PL01x_ECR (UART_BASE + 0x04)
19#define UART_PL01x_FR (UART_BASE + 0x18)
20#define UART_PL011_IBRD (UART_BASE + 0x24)
21#define UART_PL011_FBRD (UART_BASE + 0x28)
22#define UART_PL011_LCRH (UART_BASE + 0x2C)
23#define UART_PL011_CR (UART_BASE + 0x30)
24#define UART_PL011_IMSC (UART_BASE + 0x38)
25
26//
27// LCR Values
28//
30{
33
34#define UART_PL011_LCRH_WLEN_8 0x60
35#define UART_PL011_LCRH_FEN 0x10
36
37//
38// FCR Values
39//
41{
44
45#define UART_PL011_CR_UARTEN 0x01
46#define UART_PL011_CR_TXE 0x100
47#define UART_PL011_CR_RXE 0x200
48
49//
50// LSR Values
51//
53{
56
57#define UART_PL01x_FR_RXFE 0x10
58#define UART_PL01x_FR_TXFF 0x20
union _PL011_FCR_REGISTER PL011_FCR_REGISTER
union _PL011_FCR_REGISTER * PPL011_FCR_REGISTER
union _PL011_LSR_REGISTER * PPL011_LSR_REGISTER
union _PL011_LCR_REGISTER * PPL011_LCR_REGISTER
union _PL011_LCR_REGISTER PL011_LCR_REGISTER
union _PL011_LSR_REGISTER PL011_LSR_REGISTER
uint32_t ULONG
Definition: typedefs.h:59