xref: /xnu-8020.121.3/pexpert/pexpert/arm/apple_uart_regs.h (revision fdd8201d7b966f0c3ea610489d29bd841d358941)
1 /*
2  * Copyright (c) 2000-2020 Apple Inc. All rights reserved.
3  */
4 #ifndef _PEXPERT_ARM_APPLE_UART_REGS_H
5 #define _PEXPERT_ARM_APPLE_UART_REGS_H
6 
7 #define APPLE_UART
8 
9 // UART
10 #define rULCON0     (*(volatile unsigned *)(uart_base + 0x00)) // UART 0 Line control
11 #define rUCON0      (*(volatile unsigned *)(uart_base + 0x04)) // UART 0 Control
12 #define rUFCON0     (*(volatile unsigned *)(uart_base + 0x08)) // UART 0 FIFO control
13 #define rUMCON0     (*(volatile unsigned *)(uart_base + 0x0c)) // UART 0 Modem control
14 #define rUTRSTAT0   (*(volatile unsigned *)(uart_base + 0x10)) // UART 0 Tx/Rx status
15 #define rUERSTAT0   (*(volatile unsigned *)(uart_base + 0x14)) // UART 0 Rx error status
16 #define rUFSTAT0    (*(volatile unsigned *)(uart_base + 0x18)) // UART 0 FIFO status
17 #define rUMSTAT0    (*(volatile unsigned *)(uart_base + 0x1c)) // UART 0 Modem status
18 #define rUTXH0      (*(volatile unsigned *)(uart_base + 0x20)) // UART 0 Transmission Hold
19 #define rURXH0      (*(volatile unsigned *)(uart_base + 0x24)) // UART 0 Receive buffer
20 #define rUBRDIV0    (*(volatile unsigned *)(uart_base + 0x28)) // UART 0 Baud rate divisor
21 #define rUDIVSLOT0  (*(volatile unsigned *)(uart_base + 0x2C)) // UART 0 Baud rate divisor
22 
23 #define rULCON1     (*(volatile unsigned *)(uart1_base + 0x00)) // UART 1 Line control
24 #define rUCON1      (*(volatile unsigned *)(uart1_base + 0x04)) // UART 1 Control
25 #define rUFCON1     (*(volatile unsigned *)(uart1_base + 0x08)) // UART 1 FIFO control
26 #define rUMCON1     (*(volatile unsigned *)(uart1_base + 0x0c)) // UART 1 Modem control
27 #define rUTRSTAT1   (*(volatile unsigned *)(uart1_base + 0x10)) // UART 1 Tx/Rx status
28 #define rUERSTAT1   (*(volatile unsigned *)(uart1_base + 0x14)) // UART 1 Rx error status
29 #define rUFSTAT1    (*(volatile unsigned *)(uart1_base + 0x18)) // UART 1 FIFO status
30 #define rUMSTAT1    (*(volatile unsigned *)(uart1_base + 0x1c)) // UART 1 Modem status
31 #define rUTXH1      (*(volatile unsigned *)(uart1_base + 0x20)) // UART 1 Transmission Hold
32 #define rURXH1      (*(volatile unsigned *)(uart1_base + 0x24)) // UART 1 Receive buffer
33 #define rUBRDIV1    (*(volatile unsigned *)(uart1_base + 0x28)) // UART 1 Baud rate divisor
34 
35 #define rULCON2     (*(volatile unsigned *)(uart2_base + 0x00)) // UART 2 Line control
36 #define rUCON2      (*(volatile unsigned *)(uart2_base + 0x04)) // UART 2 Control
37 #define rUFCON2     (*(volatile unsigned *)(uart2_base + 0x08)) // UART 2 FIFO control
38 #define rUMCON2     (*(volatile unsigned *)(uart2_base + 0x0c)) // UART 2 Modem control
39 #define rUTRSTAT2   (*(volatile unsigned *)(uart2_base + 0x10)) // UART 2 Tx/Rx status
40 #define rUERSTAT2   (*(volatile unsigned *)(uart2_base + 0x14)) // UART 2 Rx error status
41 #define rUFSTAT2    (*(volatile unsigned *)(uart2_base + 0x18)) // UART 2 FIFO status
42 #define rUMSTAT2    (*(volatile unsigned *)(uart2_base + 0x1c)) // UART 2 Modem status
43 #define rUTXH2      (*(volatile unsigned *)(uart2_base + 0x20)) // UART 2 Transmission Hold
44 #define rURXH2      (*(volatile unsigned *)(uart2_base + 0x24)) // UART 2 Receive buffer
45 #define rUBRDIV2    (*(volatile unsigned *)(uart2_base + 0x28)) // UART 2 Baud rate divisor
46 
47 #endif /* _PEXPERT_ARM_APPLE_UART_REGS_H */
48