diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2006-10-04 10:02:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 13:25:05 -0400 |
commit | 7192f92c799e4bf4943e3e233d6e4d786ac4d8a4 (patch) | |
tree | 73f090ab61fc46c2d13bf67bc40e1b02d9583058 /drivers/serial/atmel_serial.h | |
parent | 73e2798b0f3f4fa8ff7d3e8138027a8352359bb5 (diff) |
[PATCH] at91_serial -> atmel_serial: Internal names
Prefix all internal functions and variables with atmel_ instead of
at91_.
The at91_register_uart_fns() stuff is left as is since I can't find
any actual users of it.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/serial/atmel_serial.h')
-rw-r--r-- | drivers/serial/atmel_serial.h | 196 |
1 files changed, 98 insertions, 98 deletions
diff --git a/drivers/serial/atmel_serial.h b/drivers/serial/atmel_serial.h index d38b24a53375..eced2ad1a8d9 100644 --- a/drivers/serial/atmel_serial.h +++ b/drivers/serial/atmel_serial.h | |||
@@ -13,111 +13,111 @@ | |||
13 | * (at your option) any later version. | 13 | * (at your option) any later version. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef AT91RM9200_USART_H | 16 | #ifndef ATMEL_SERIAL_H |
17 | #define AT91RM9200_USART_H | 17 | #define ATMEL_SERIAL_H |
18 | 18 | ||
19 | #define AT91_US_CR 0x00 /* Control Register */ | 19 | #define ATMEL_US_CR 0x00 /* Control Register */ |
20 | #define AT91_US_RSTRX (1 << 2) /* Reset Receiver */ | 20 | #define ATMEL_US_RSTRX (1 << 2) /* Reset Receiver */ |
21 | #define AT91_US_RSTTX (1 << 3) /* Reset Transmitter */ | 21 | #define ATMEL_US_RSTTX (1 << 3) /* Reset Transmitter */ |
22 | #define AT91_US_RXEN (1 << 4) /* Receiver Enable */ | 22 | #define ATMEL_US_RXEN (1 << 4) /* Receiver Enable */ |
23 | #define AT91_US_RXDIS (1 << 5) /* Receiver Disable */ | 23 | #define ATMEL_US_RXDIS (1 << 5) /* Receiver Disable */ |
24 | #define AT91_US_TXEN (1 << 6) /* Transmitter Enable */ | 24 | #define ATMEL_US_TXEN (1 << 6) /* Transmitter Enable */ |
25 | #define AT91_US_TXDIS (1 << 7) /* Transmitter Disable */ | 25 | #define ATMEL_US_TXDIS (1 << 7) /* Transmitter Disable */ |
26 | #define AT91_US_RSTSTA (1 << 8) /* Reset Status Bits */ | 26 | #define ATMEL_US_RSTSTA (1 << 8) /* Reset Status Bits */ |
27 | #define AT91_US_STTBRK (1 << 9) /* Start Break */ | 27 | #define ATMEL_US_STTBRK (1 << 9) /* Start Break */ |
28 | #define AT91_US_STPBRK (1 << 10) /* Stop Break */ | 28 | #define ATMEL_US_STPBRK (1 << 10) /* Stop Break */ |
29 | #define AT91_US_STTTO (1 << 11) /* Start Time-out */ | 29 | #define ATMEL_US_STTTO (1 << 11) /* Start Time-out */ |
30 | #define AT91_US_SENDA (1 << 12) /* Send Address */ | 30 | #define ATMEL_US_SENDA (1 << 12) /* Send Address */ |
31 | #define AT91_US_RSTIT (1 << 13) /* Reset Iterations */ | 31 | #define ATMEL_US_RSTIT (1 << 13) /* Reset Iterations */ |
32 | #define AT91_US_RSTNACK (1 << 14) /* Reset Non Acknowledge */ | 32 | #define ATMEL_US_RSTNACK (1 << 14) /* Reset Non Acknowledge */ |
33 | #define AT91_US_RETTO (1 << 15) /* Rearm Time-out */ | 33 | #define ATMEL_US_RETTO (1 << 15) /* Rearm Time-out */ |
34 | #define AT91_US_DTREN (1 << 16) /* Data Terminal Ready Enable */ | 34 | #define ATMEL_US_DTREN (1 << 16) /* Data Terminal Ready Enable */ |
35 | #define AT91_US_DTRDIS (1 << 17) /* Data Terminal Ready Disable */ | 35 | #define ATMEL_US_DTRDIS (1 << 17) /* Data Terminal Ready Disable */ |
36 | #define AT91_US_RTSEN (1 << 18) /* Request To Send Enable */ | 36 | #define ATMEL_US_RTSEN (1 << 18) /* Request To Send Enable */ |
37 | #define AT91_US_RTSDIS (1 << 19) /* Request To Send Disable */ | 37 | #define ATMEL_US_RTSDIS (1 << 19) /* Request To Send Disable */ |
38 | 38 | ||
39 | #define AT91_US_MR 0x04 /* Mode Register */ | 39 | #define ATMEL_US_MR 0x04 /* Mode Register */ |
40 | #define AT91_US_USMODE (0xf << 0) /* Mode of the USART */ | 40 | #define ATMEL_US_USMODE (0xf << 0) /* Mode of the USART */ |
41 | #define AT91_US_USMODE_NORMAL 0 | 41 | #define ATMEL_US_USMODE_NORMAL 0 |
42 | #define AT91_US_USMODE_RS485 1 | 42 | #define ATMEL_US_USMODE_RS485 1 |
43 | #define AT91_US_USMODE_HWHS 2 | 43 | #define ATMEL_US_USMODE_HWHS 2 |
44 | #define AT91_US_USMODE_MODEM 3 | 44 | #define ATMEL_US_USMODE_MODEM 3 |
45 | #define AT91_US_USMODE_ISO7816_T0 4 | 45 | #define ATMEL_US_USMODE_ISO7816_T0 4 |
46 | #define AT91_US_USMODE_ISO7816_T1 6 | 46 | #define ATMEL_US_USMODE_ISO7816_T1 6 |
47 | #define AT91_US_USMODE_IRDA 8 | 47 | #define ATMEL_US_USMODE_IRDA 8 |
48 | #define AT91_US_USCLKS (3 << 4) /* Clock Selection */ | 48 | #define ATMEL_US_USCLKS (3 << 4) /* Clock Selection */ |
49 | #define AT91_US_CHRL (3 << 6) /* Character Length */ | 49 | #define ATMEL_US_CHRL (3 << 6) /* Character Length */ |
50 | #define AT91_US_CHRL_5 (0 << 6) | 50 | #define ATMEL_US_CHRL_5 (0 << 6) |
51 | #define AT91_US_CHRL_6 (1 << 6) | 51 | #define ATMEL_US_CHRL_6 (1 << 6) |
52 | #define AT91_US_CHRL_7 (2 << 6) | 52 | #define ATMEL_US_CHRL_7 (2 << 6) |
53 | #define AT91_US_CHRL_8 (3 << 6) | 53 | #define ATMEL_US_CHRL_8 (3 << 6) |
54 | #define AT91_US_SYNC (1 << 8) /* Synchronous Mode Select */ | 54 | #define ATMEL_US_SYNC (1 << 8) /* Synchronous Mode Select */ |
55 | #define AT91_US_PAR (7 << 9) /* Parity Type */ | 55 | #define ATMEL_US_PAR (7 << 9) /* Parity Type */ |
56 | #define AT91_US_PAR_EVEN (0 << 9) | 56 | #define ATMEL_US_PAR_EVEN (0 << 9) |
57 | #define AT91_US_PAR_ODD (1 << 9) | 57 | #define ATMEL_US_PAR_ODD (1 << 9) |
58 | #define AT91_US_PAR_SPACE (2 << 9) | 58 | #define ATMEL_US_PAR_SPACE (2 << 9) |
59 | #define AT91_US_PAR_MARK (3 << 9) | 59 | #define ATMEL_US_PAR_MARK (3 << 9) |
60 | #define AT91_US_PAR_NONE (4 << 9) | 60 | #define ATMEL_US_PAR_NONE (4 << 9) |
61 | #define AT91_US_PAR_MULTI_DROP (6 << 9) | 61 | #define ATMEL_US_PAR_MULTI_DROP (6 << 9) |
62 | #define AT91_US_NBSTOP (3 << 12) /* Number of Stop Bits */ | 62 | #define ATMEL_US_NBSTOP (3 << 12) /* Number of Stop Bits */ |
63 | #define AT91_US_NBSTOP_1 (0 << 12) | 63 | #define ATMEL_US_NBSTOP_1 (0 << 12) |
64 | #define AT91_US_NBSTOP_1_5 (1 << 12) | 64 | #define ATMEL_US_NBSTOP_1_5 (1 << 12) |
65 | #define AT91_US_NBSTOP_2 (2 << 12) | 65 | #define ATMEL_US_NBSTOP_2 (2 << 12) |
66 | #define AT91_US_CHMODE (3 << 14) /* Channel Mode */ | 66 | #define ATMEL_US_CHMODE (3 << 14) /* Channel Mode */ |
67 | #define AT91_US_CHMODE_NORMAL (0 << 14) | 67 | #define ATMEL_US_CHMODE_NORMAL (0 << 14) |
68 | #define AT91_US_CHMODE_ECHO (1 << 14) | 68 | #define ATMEL_US_CHMODE_ECHO (1 << 14) |
69 | #define AT91_US_CHMODE_LOC_LOOP (2 << 14) | 69 | #define ATMEL_US_CHMODE_LOC_LOOP (2 << 14) |
70 | #define AT91_US_CHMODE_REM_LOOP (3 << 14) | 70 | #define ATMEL_US_CHMODE_REM_LOOP (3 << 14) |
71 | #define AT91_US_MSBF (1 << 16) /* Bit Order */ | 71 | #define ATMEL_US_MSBF (1 << 16) /* Bit Order */ |
72 | #define AT91_US_MODE9 (1 << 17) /* 9-bit Character Length */ | 72 | #define ATMEL_US_MODE9 (1 << 17) /* 9-bit Character Length */ |
73 | #define AT91_US_CLKO (1 << 18) /* Clock Output Select */ | 73 | #define ATMEL_US_CLKO (1 << 18) /* Clock Output Select */ |
74 | #define AT91_US_OVER (1 << 19) /* Oversampling Mode */ | 74 | #define ATMEL_US_OVER (1 << 19) /* Oversampling Mode */ |
75 | #define AT91_US_INACK (1 << 20) /* Inhibit Non Acknowledge */ | 75 | #define ATMEL_US_INACK (1 << 20) /* Inhibit Non Acknowledge */ |
76 | #define AT91_US_DSNACK (1 << 21) /* Disable Successive NACK */ | 76 | #define ATMEL_US_DSNACK (1 << 21) /* Disable Successive NACK */ |
77 | #define AT91_US_MAX_ITER (7 << 24) /* Max Iterations */ | 77 | #define ATMEL_US_MAX_ITER (7 << 24) /* Max Iterations */ |
78 | #define AT91_US_FILTER (1 << 28) /* Infrared Receive Line Filter */ | 78 | #define ATMEL_US_FILTER (1 << 28) /* Infrared Receive Line Filter */ |
79 | 79 | ||
80 | #define AT91_US_IER 0x08 /* Interrupt Enable Register */ | 80 | #define ATMEL_US_IER 0x08 /* Interrupt Enable Register */ |
81 | #define AT91_US_RXRDY (1 << 0) /* Receiver Ready */ | 81 | #define ATMEL_US_RXRDY (1 << 0) /* Receiver Ready */ |
82 | #define AT91_US_TXRDY (1 << 1) /* Transmitter Ready */ | 82 | #define ATMEL_US_TXRDY (1 << 1) /* Transmitter Ready */ |
83 | #define AT91_US_RXBRK (1 << 2) /* Break Received / End of Break */ | 83 | #define ATMEL_US_RXBRK (1 << 2) /* Break Received / End of Break */ |
84 | #define AT91_US_ENDRX (1 << 3) /* End of Receiver Transfer */ | 84 | #define ATMEL_US_ENDRX (1 << 3) /* End of Receiver Transfer */ |
85 | #define AT91_US_ENDTX (1 << 4) /* End of Transmitter Transfer */ | 85 | #define ATMEL_US_ENDTX (1 << 4) /* End of Transmitter Transfer */ |
86 | #define AT91_US_OVRE (1 << 5) /* Overrun Error */ | 86 | #define ATMEL_US_OVRE (1 << 5) /* Overrun Error */ |
87 | #define AT91_US_FRAME (1 << 6) /* Framing Error */ | 87 | #define ATMEL_US_FRAME (1 << 6) /* Framing Error */ |
88 | #define AT91_US_PARE (1 << 7) /* Parity Error */ | 88 | #define ATMEL_US_PARE (1 << 7) /* Parity Error */ |
89 | #define AT91_US_TIMEOUT (1 << 8) /* Receiver Time-out */ | 89 | #define ATMEL_US_TIMEOUT (1 << 8) /* Receiver Time-out */ |
90 | #define AT91_US_TXEMPTY (1 << 9) /* Transmitter Empty */ | 90 | #define ATMEL_US_TXEMPTY (1 << 9) /* Transmitter Empty */ |
91 | #define AT91_US_ITERATION (1 << 10) /* Max number of Repetitions Reached */ | 91 | #define ATMEL_US_ITERATION (1 << 10) /* Max number of Repetitions Reached */ |
92 | #define AT91_US_TXBUFE (1 << 11) /* Transmission Buffer Empty */ | 92 | #define ATMEL_US_TXBUFE (1 << 11) /* Transmission Buffer Empty */ |
93 | #define AT91_US_RXBUFF (1 << 12) /* Reception Buffer Full */ | 93 | #define ATMEL_US_RXBUFF (1 << 12) /* Reception Buffer Full */ |
94 | #define AT91_US_NACK (1 << 13) /* Non Acknowledge */ | 94 | #define ATMEL_US_NACK (1 << 13) /* Non Acknowledge */ |
95 | #define AT91_US_RIIC (1 << 16) /* Ring Indicator Input Change */ | 95 | #define ATMEL_US_RIIC (1 << 16) /* Ring Indicator Input Change */ |
96 | #define AT91_US_DSRIC (1 << 17) /* Data Set Ready Input Change */ | 96 | #define ATMEL_US_DSRIC (1 << 17) /* Data Set Ready Input Change */ |
97 | #define AT91_US_DCDIC (1 << 18) /* Data Carrier Detect Input Change */ | 97 | #define ATMEL_US_DCDIC (1 << 18) /* Data Carrier Detect Input Change */ |
98 | #define AT91_US_CTSIC (1 << 19) /* Clear to Send Input Change */ | 98 | #define ATMEL_US_CTSIC (1 << 19) /* Clear to Send Input Change */ |
99 | #define AT91_US_RI (1 << 20) /* RI */ | 99 | #define ATMEL_US_RI (1 << 20) /* RI */ |
100 | #define AT91_US_DSR (1 << 21) /* DSR */ | 100 | #define ATMEL_US_DSR (1 << 21) /* DSR */ |
101 | #define AT91_US_DCD (1 << 22) /* DCD */ | 101 | #define ATMEL_US_DCD (1 << 22) /* DCD */ |
102 | #define AT91_US_CTS (1 << 23) /* CTS */ | 102 | #define ATMEL_US_CTS (1 << 23) /* CTS */ |
103 | 103 | ||
104 | #define AT91_US_IDR 0x0c /* Interrupt Disable Register */ | 104 | #define ATMEL_US_IDR 0x0c /* Interrupt Disable Register */ |
105 | #define AT91_US_IMR 0x10 /* Interrupt Mask Register */ | 105 | #define ATMEL_US_IMR 0x10 /* Interrupt Mask Register */ |
106 | #define AT91_US_CSR 0x14 /* Channel Status Register */ | 106 | #define ATMEL_US_CSR 0x14 /* Channel Status Register */ |
107 | #define AT91_US_RHR 0x18 /* Receiver Holding Register */ | 107 | #define ATMEL_US_RHR 0x18 /* Receiver Holding Register */ |
108 | #define AT91_US_THR 0x1c /* Transmitter Holding Register */ | 108 | #define ATMEL_US_THR 0x1c /* Transmitter Holding Register */ |
109 | 109 | ||
110 | #define AT91_US_BRGR 0x20 /* Baud Rate Generator Register */ | 110 | #define ATMEL_US_BRGR 0x20 /* Baud Rate Generator Register */ |
111 | #define AT91_US_CD (0xffff << 0) /* Clock Divider */ | 111 | #define ATMEL_US_CD (0xffff << 0) /* Clock Divider */ |
112 | 112 | ||
113 | #define AT91_US_RTOR 0x24 /* Receiver Time-out Register */ | 113 | #define ATMEL_US_RTOR 0x24 /* Receiver Time-out Register */ |
114 | #define AT91_US_TO (0xffff << 0) /* Time-out Value */ | 114 | #define ATMEL_US_TO (0xffff << 0) /* Time-out Value */ |
115 | 115 | ||
116 | #define AT91_US_TTGR 0x28 /* Transmitter Timeguard Register */ | 116 | #define ATMEL_US_TTGR 0x28 /* Transmitter Timeguard Register */ |
117 | #define AT91_US_TG (0xff << 0) /* Timeguard Value */ | 117 | #define ATMEL_US_TG (0xff << 0) /* Timeguard Value */ |
118 | 118 | ||
119 | #define AT91_US_FIDI 0x40 /* FI DI Ratio Register */ | 119 | #define ATMEL_US_FIDI 0x40 /* FI DI Ratio Register */ |
120 | #define AT91_US_NER 0x44 /* Number of Errors Register */ | 120 | #define ATMEL_US_NER 0x44 /* Number of Errors Register */ |
121 | #define AT91_US_IF 0x4c /* IrDA Filter Register */ | 121 | #define ATMEL_US_IF 0x4c /* IrDA Filter Register */ |
122 | 122 | ||
123 | #endif | 123 | #endif |