xref: /openbmc/linux/drivers/tty/serial/sunsab.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2ab4382d2SGreg Kroah-Hartman /* sunsab.h: Register Definitions for the Siemens SAB82532 DUSCC
3ab4382d2SGreg Kroah-Hartman  *
4ab4382d2SGreg Kroah-Hartman  * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
5ab4382d2SGreg Kroah-Hartman  */
6ab4382d2SGreg Kroah-Hartman 
7ab4382d2SGreg Kroah-Hartman #ifndef _SUNSAB_H
8ab4382d2SGreg Kroah-Hartman #define _SUNSAB_H
9ab4382d2SGreg Kroah-Hartman 
10ab4382d2SGreg Kroah-Hartman struct sab82532_async_rd_regs {
11ab4382d2SGreg Kroah-Hartman 	u8	rfifo[0x20];	/* Receive FIFO				*/
12ab4382d2SGreg Kroah-Hartman 	u8	star;		/* Status Register			*/
13ab4382d2SGreg Kroah-Hartman 	u8	__pad1;
14ab4382d2SGreg Kroah-Hartman 	u8	mode;		/* Mode Register			*/
15ab4382d2SGreg Kroah-Hartman 	u8	timr;		/* Timer Register			*/
16ab4382d2SGreg Kroah-Hartman 	u8	xon;		/* XON Character			*/
17ab4382d2SGreg Kroah-Hartman 	u8	xoff;		/* XOFF Character			*/
18ab4382d2SGreg Kroah-Hartman 	u8	tcr;		/* Termination Character Register	*/
19ab4382d2SGreg Kroah-Hartman 	u8	dafo;		/* Data Format				*/
20ab4382d2SGreg Kroah-Hartman 	u8	rfc;		/* RFIFO Control Register		*/
21ab4382d2SGreg Kroah-Hartman 	u8	__pad2;
22ab4382d2SGreg Kroah-Hartman 	u8	rbcl;		/* Receive Byte Count Low		*/
23ab4382d2SGreg Kroah-Hartman 	u8	rbch;		/* Receive Byte Count High		*/
24ab4382d2SGreg Kroah-Hartman 	u8	ccr0;		/* Channel Configuration Register 0	*/
25ab4382d2SGreg Kroah-Hartman 	u8	ccr1;		/* Channel Configuration Register 1	*/
26ab4382d2SGreg Kroah-Hartman 	u8	ccr2;		/* Channel Configuration Register 2	*/
27ab4382d2SGreg Kroah-Hartman 	u8	ccr3;		/* Channel Configuration Register 3	*/
28ab4382d2SGreg Kroah-Hartman 	u8	__pad3[4];
29ab4382d2SGreg Kroah-Hartman 	u8	vstr;		/* Version Status Register		*/
30ab4382d2SGreg Kroah-Hartman 	u8	__pad4[3];
31ab4382d2SGreg Kroah-Hartman 	u8	gis;		/* Global Interrupt Status		*/
32ab4382d2SGreg Kroah-Hartman 	u8	ipc;		/* Interrupt Port Configuration		*/
33ab4382d2SGreg Kroah-Hartman 	u8	isr0;		/* Interrupt Status 0			*/
34ab4382d2SGreg Kroah-Hartman 	u8	isr1;		/* Interrupt Status 1			*/
35ab4382d2SGreg Kroah-Hartman 	u8	pvr;		/* Port Value Register			*/
36ab4382d2SGreg Kroah-Hartman 	u8	pis;		/* Port Interrupt Status		*/
37ab4382d2SGreg Kroah-Hartman 	u8	pcr;		/* Port Configuration Register		*/
38ab4382d2SGreg Kroah-Hartman 	u8	ccr4;		/* Channel Configuration Register 4	*/
39ab4382d2SGreg Kroah-Hartman };
40ab4382d2SGreg Kroah-Hartman 
41ab4382d2SGreg Kroah-Hartman struct sab82532_async_wr_regs {
42ab4382d2SGreg Kroah-Hartman 	u8	xfifo[0x20];	/* Transmit FIFO			*/
43ab4382d2SGreg Kroah-Hartman 	u8	cmdr;		/* Command Register			*/
44ab4382d2SGreg Kroah-Hartman 	u8	__pad1;
45ab4382d2SGreg Kroah-Hartman 	u8	mode;
46ab4382d2SGreg Kroah-Hartman 	u8	timr;
47ab4382d2SGreg Kroah-Hartman 	u8	xon;
48ab4382d2SGreg Kroah-Hartman 	u8	xoff;
49ab4382d2SGreg Kroah-Hartman 	u8	tcr;
50ab4382d2SGreg Kroah-Hartman 	u8	dafo;
51ab4382d2SGreg Kroah-Hartman 	u8	rfc;
52ab4382d2SGreg Kroah-Hartman 	u8	__pad2;
53ab4382d2SGreg Kroah-Hartman 	u8	xbcl;		/* Transmit Byte Count Low		*/
54ab4382d2SGreg Kroah-Hartman 	u8	xbch;		/* Transmit Byte Count High		*/
55ab4382d2SGreg Kroah-Hartman 	u8	ccr0;
56ab4382d2SGreg Kroah-Hartman 	u8	ccr1;
57ab4382d2SGreg Kroah-Hartman 	u8	ccr2;
58ab4382d2SGreg Kroah-Hartman 	u8	ccr3;
59ab4382d2SGreg Kroah-Hartman 	u8	tsax;		/* Time-Slot Assignment Reg. Transmit	*/
60ab4382d2SGreg Kroah-Hartman 	u8	tsar;		/* Time-Slot Assignment Reg. Receive	*/
61ab4382d2SGreg Kroah-Hartman 	u8	xccr;		/* Transmit Channel Capacity Register	*/
62ab4382d2SGreg Kroah-Hartman 	u8	rccr;		/* Receive Channel Capacity Register	*/
63ab4382d2SGreg Kroah-Hartman 	u8	bgr;		/* Baud Rate Generator Register		*/
64ab4382d2SGreg Kroah-Hartman 	u8	tic;		/* Transmit Immediate Character		*/
65ab4382d2SGreg Kroah-Hartman 	u8	mxn;		/* Mask XON Character			*/
66ab4382d2SGreg Kroah-Hartman 	u8	mxf;		/* Mask XOFF Character			*/
67ab4382d2SGreg Kroah-Hartman 	u8	iva;		/* Interrupt Vector Address		*/
68ab4382d2SGreg Kroah-Hartman 	u8	ipc;
69ab4382d2SGreg Kroah-Hartman 	u8	imr0;		/* Interrupt Mask Register 0		*/
70ab4382d2SGreg Kroah-Hartman 	u8	imr1;		/* Interrupt Mask Register 1		*/
71ab4382d2SGreg Kroah-Hartman 	u8	pvr;
72ab4382d2SGreg Kroah-Hartman 	u8	pim;		/* Port Interrupt Mask			*/
73ab4382d2SGreg Kroah-Hartman 	u8	pcr;
74ab4382d2SGreg Kroah-Hartman 	u8	ccr4;
75ab4382d2SGreg Kroah-Hartman };
76ab4382d2SGreg Kroah-Hartman 
77ab4382d2SGreg Kroah-Hartman struct sab82532_async_rw_regs {	/* Read/Write registers			*/
78ab4382d2SGreg Kroah-Hartman 	u8	__pad1[0x20];
79ab4382d2SGreg Kroah-Hartman 	u8	__pad2;
80ab4382d2SGreg Kroah-Hartman 	u8	__pad3;
81ab4382d2SGreg Kroah-Hartman 	u8	mode;
82ab4382d2SGreg Kroah-Hartman 	u8	timr;
83ab4382d2SGreg Kroah-Hartman 	u8	xon;
84ab4382d2SGreg Kroah-Hartman 	u8	xoff;
85ab4382d2SGreg Kroah-Hartman 	u8	tcr;
86ab4382d2SGreg Kroah-Hartman 	u8	dafo;
87ab4382d2SGreg Kroah-Hartman 	u8	rfc;
88ab4382d2SGreg Kroah-Hartman 	u8	__pad4;
89ab4382d2SGreg Kroah-Hartman 	u8	__pad5;
90ab4382d2SGreg Kroah-Hartman 	u8	__pad6;
91ab4382d2SGreg Kroah-Hartman 	u8	ccr0;
92ab4382d2SGreg Kroah-Hartman 	u8	ccr1;
93ab4382d2SGreg Kroah-Hartman 	u8	ccr2;
94ab4382d2SGreg Kroah-Hartman 	u8	ccr3;
95ab4382d2SGreg Kroah-Hartman 	u8	__pad7;
96ab4382d2SGreg Kroah-Hartman 	u8	__pad8;
97ab4382d2SGreg Kroah-Hartman 	u8	__pad9;
98ab4382d2SGreg Kroah-Hartman 	u8	__pad10;
99ab4382d2SGreg Kroah-Hartman 	u8	__pad11;
100ab4382d2SGreg Kroah-Hartman 	u8	__pad12;
101ab4382d2SGreg Kroah-Hartman 	u8	__pad13;
102ab4382d2SGreg Kroah-Hartman 	u8	__pad14;
103ab4382d2SGreg Kroah-Hartman 	u8	__pad15;
104ab4382d2SGreg Kroah-Hartman 	u8	ipc;
105ab4382d2SGreg Kroah-Hartman 	u8	__pad16;
106ab4382d2SGreg Kroah-Hartman 	u8	__pad17;
107ab4382d2SGreg Kroah-Hartman 	u8	pvr;
108ab4382d2SGreg Kroah-Hartman 	u8	__pad18;
109ab4382d2SGreg Kroah-Hartman 	u8	pcr;
110ab4382d2SGreg Kroah-Hartman 	u8	ccr4;
111ab4382d2SGreg Kroah-Hartman };
112ab4382d2SGreg Kroah-Hartman 
113ab4382d2SGreg Kroah-Hartman union sab82532_async_regs {
114ab4382d2SGreg Kroah-Hartman 	__volatile__ struct sab82532_async_rd_regs	r;
115ab4382d2SGreg Kroah-Hartman 	__volatile__ struct sab82532_async_wr_regs	w;
116ab4382d2SGreg Kroah-Hartman 	__volatile__ struct sab82532_async_rw_regs	rw;
117ab4382d2SGreg Kroah-Hartman };
118ab4382d2SGreg Kroah-Hartman 
119ab4382d2SGreg Kroah-Hartman union sab82532_irq_status {
120ab4382d2SGreg Kroah-Hartman 	unsigned short			 stat;
121ab4382d2SGreg Kroah-Hartman 	struct {
122ab4382d2SGreg Kroah-Hartman 		unsigned char		 isr0;
123ab4382d2SGreg Kroah-Hartman 		unsigned char		 isr1;
124ab4382d2SGreg Kroah-Hartman 	} sreg;
125ab4382d2SGreg Kroah-Hartman };
126ab4382d2SGreg Kroah-Hartman 
127ab4382d2SGreg Kroah-Hartman /* irqflags bits */
128ab4382d2SGreg Kroah-Hartman #define SAB82532_ALLS			0x00000001
129ab4382d2SGreg Kroah-Hartman #define SAB82532_XPR			0x00000002
130ab4382d2SGreg Kroah-Hartman #define SAB82532_REGS_PENDING		0x00000004
131ab4382d2SGreg Kroah-Hartman 
132ab4382d2SGreg Kroah-Hartman /* RFIFO Status Byte */
133ab4382d2SGreg Kroah-Hartman #define SAB82532_RSTAT_PE		0x80
134ab4382d2SGreg Kroah-Hartman #define SAB82532_RSTAT_FE		0x40
135ab4382d2SGreg Kroah-Hartman #define SAB82532_RSTAT_PARITY		0x01
136ab4382d2SGreg Kroah-Hartman 
137ab4382d2SGreg Kroah-Hartman /* Status Register (STAR) */
138ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_XDOV		0x80
139ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_XFW		0x40
140ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_RFNE		0x20
141ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_FCS		0x10
142ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_TEC		0x08
143ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_CEC		0x04
144ab4382d2SGreg Kroah-Hartman #define SAB82532_STAR_CTS		0x02
145ab4382d2SGreg Kroah-Hartman 
146ab4382d2SGreg Kroah-Hartman /* Command Register (CMDR) */
147ab4382d2SGreg Kroah-Hartman #define SAB82532_CMDR_RMC		0x80
148ab4382d2SGreg Kroah-Hartman #define SAB82532_CMDR_RRES		0x40
149ab4382d2SGreg Kroah-Hartman #define SAB82532_CMDR_RFRD		0x20
150ab4382d2SGreg Kroah-Hartman #define SAB82532_CMDR_STI		0x10
151ab4382d2SGreg Kroah-Hartman #define SAB82532_CMDR_XF		0x08
152ab4382d2SGreg Kroah-Hartman #define SAB82532_CMDR_XRES		0x01
153ab4382d2SGreg Kroah-Hartman 
154ab4382d2SGreg Kroah-Hartman /* Mode Register (MODE) */
155ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_FRTS		0x40
156ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_FCTS		0x20
157ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_FLON		0x10
158ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_RAC		0x08
159ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_RTS		0x04
160ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_TRS		0x02
161ab4382d2SGreg Kroah-Hartman #define SAB82532_MODE_TLP		0x01
162ab4382d2SGreg Kroah-Hartman 
163ab4382d2SGreg Kroah-Hartman /* Timer Register (TIMR) */
164ab4382d2SGreg Kroah-Hartman #define SAB82532_TIMR_CNT_MASK		0xe0
165ab4382d2SGreg Kroah-Hartman #define SAB82532_TIMR_VALUE_MASK	0x1f
166ab4382d2SGreg Kroah-Hartman 
167ab4382d2SGreg Kroah-Hartman /* Data Format (DAFO) */
168ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_XBRK		0x40
169ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_STOP		0x20
170ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_PAR_SPACE		0x00
171ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_PAR_ODD		0x08
172ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_PAR_EVEN		0x10
173ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_PAR_MARK		0x18
174ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_PARE		0x04
175ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_CHL8		0x00
176ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_CHL7		0x01
177ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_CHL6		0x02
178ab4382d2SGreg Kroah-Hartman #define SAB82532_DAFO_CHL5		0x03
179ab4382d2SGreg Kroah-Hartman 
180ab4382d2SGreg Kroah-Hartman /* RFIFO Control Register (RFC) */
181ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_DPS		0x40
182ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_DXS		0x20
183ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_RFDF		0x10
184ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_RFTH_1		0x00
185ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_RFTH_4		0x04
186ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_RFTH_16		0x08
187ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_RFTH_32		0x0c
188ab4382d2SGreg Kroah-Hartman #define SAB82532_RFC_TCDE		0x01
189ab4382d2SGreg Kroah-Hartman 
190ab4382d2SGreg Kroah-Hartman /* Received Byte Count High (RBCH) */
191ab4382d2SGreg Kroah-Hartman #define SAB82532_RBCH_DMA		0x80
192ab4382d2SGreg Kroah-Hartman #define SAB82532_RBCH_CAS		0x20
193ab4382d2SGreg Kroah-Hartman 
194ab4382d2SGreg Kroah-Hartman /* Transmit Byte Count High (XBCH) */
195ab4382d2SGreg Kroah-Hartman #define SAB82532_XBCH_DMA		0x80
196ab4382d2SGreg Kroah-Hartman #define SAB82532_XBCH_CAS		0x20
197ab4382d2SGreg Kroah-Hartman #define SAB82532_XBCH_XC		0x10
198ab4382d2SGreg Kroah-Hartman 
199ab4382d2SGreg Kroah-Hartman /* Channel Configuration Register 0 (CCR0) */
200ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_PU		0x80
201ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_MCE		0x40
202ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SC_NRZ		0x00
203ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SC_NRZI		0x08
204ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SC_FM0		0x10
205ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SC_FM1		0x14
206ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SC_MANCH		0x18
207ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SM_HDLC		0x00
208ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SM_SDLC_LOOP	0x01
209ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SM_BISYNC		0x02
210ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR0_SM_ASYNC		0x03
211ab4382d2SGreg Kroah-Hartman 
212ab4382d2SGreg Kroah-Hartman /* Channel Configuration Register 1 (CCR1) */
213ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR1_ODS		0x10
214ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR1_BCR		0x08
215ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR1_CM_MASK		0x07
216ab4382d2SGreg Kroah-Hartman 
217ab4382d2SGreg Kroah-Hartman /* Channel Configuration Register 2 (CCR2) */
218ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_SOC1		0x80
219ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_SOC0		0x40
220ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_BR9		0x80
221ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_BR8		0x40
222ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_BDF		0x20
223ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_SSEL		0x10
224ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_XCS0		0x20
225ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_RCS0		0x10
226ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_TOE		0x08
227ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_RWX		0x04
228ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR2_DIV		0x01
229ab4382d2SGreg Kroah-Hartman 
230ab4382d2SGreg Kroah-Hartman /* Channel Configuration Register 3 (CCR3) */
231ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR3_PSD		0x01
232ab4382d2SGreg Kroah-Hartman 
233ab4382d2SGreg Kroah-Hartman /* Time Slot Assignment Register Transmit (TSAX) */
234ab4382d2SGreg Kroah-Hartman #define SAB82532_TSAX_TSNX_MASK		0xfc
235ab4382d2SGreg Kroah-Hartman #define SAB82532_TSAX_XCS2		0x02	/* see also CCR2 */
236ab4382d2SGreg Kroah-Hartman #define SAB82532_TSAX_XCS1		0x01
237ab4382d2SGreg Kroah-Hartman 
238ab4382d2SGreg Kroah-Hartman /* Time Slot Assignment Register Receive (TSAR) */
239ab4382d2SGreg Kroah-Hartman #define SAB82532_TSAR_TSNR_MASK		0xfc
240ab4382d2SGreg Kroah-Hartman #define SAB82532_TSAR_RCS2		0x02	/* see also CCR2 */
241ab4382d2SGreg Kroah-Hartman #define SAB82532_TSAR_RCS1		0x01
242ab4382d2SGreg Kroah-Hartman 
243ab4382d2SGreg Kroah-Hartman /* Version Status Register (VSTR) */
244ab4382d2SGreg Kroah-Hartman #define SAB82532_VSTR_CD		0x80
245ab4382d2SGreg Kroah-Hartman #define SAB82532_VSTR_DPLA		0x40
246ab4382d2SGreg Kroah-Hartman #define SAB82532_VSTR_VN_MASK		0x0f
247ab4382d2SGreg Kroah-Hartman #define SAB82532_VSTR_VN_1		0x00
248ab4382d2SGreg Kroah-Hartman #define SAB82532_VSTR_VN_2		0x01
249ab4382d2SGreg Kroah-Hartman #define SAB82532_VSTR_VN_3_2		0x02
250ab4382d2SGreg Kroah-Hartman 
251ab4382d2SGreg Kroah-Hartman /* Global Interrupt Status Register (GIS) */
252ab4382d2SGreg Kroah-Hartman #define SAB82532_GIS_PI			0x80
253ab4382d2SGreg Kroah-Hartman #define SAB82532_GIS_ISA1		0x08
254ab4382d2SGreg Kroah-Hartman #define SAB82532_GIS_ISA0		0x04
255ab4382d2SGreg Kroah-Hartman #define SAB82532_GIS_ISB1		0x02
256ab4382d2SGreg Kroah-Hartman #define SAB82532_GIS_ISB0		0x01
257ab4382d2SGreg Kroah-Hartman 
258ab4382d2SGreg Kroah-Hartman /* Interrupt Vector Address (IVA) */
259ab4382d2SGreg Kroah-Hartman #define SAB82532_IVA_MASK		0xf1
260ab4382d2SGreg Kroah-Hartman 
261ab4382d2SGreg Kroah-Hartman /* Interrupt Port Configuration (IPC) */
262ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_VIS		0x80
263ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_SLA1		0x10
264ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_SLA0		0x08
265ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_CASM		0x04
266ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_IC_OPEN_DRAIN	0x00
267ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_IC_ACT_LOW		0x01
268ab4382d2SGreg Kroah-Hartman #define SAB82532_IPC_IC_ACT_HIGH	0x03
269ab4382d2SGreg Kroah-Hartman 
270ab4382d2SGreg Kroah-Hartman /* Interrupt Status Register 0 (ISR0) */
271ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_TCD		0x80
272ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_TIME		0x40
273ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_PERR		0x20
274ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_FERR		0x10
275ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_PLLA		0x08
276ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_CDSC		0x04
277ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_RFO		0x02
278ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR0_RPF		0x01
279ab4382d2SGreg Kroah-Hartman 
280ab4382d2SGreg Kroah-Hartman /* Interrupt Status Register 1 (ISR1) */
281ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_BRK		0x80
282ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_BRKT		0x40
283ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_ALLS		0x20
284ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_XOFF		0x10
285ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_TIN		0x08
286ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_CSC		0x04
287ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_XON		0x02
288ab4382d2SGreg Kroah-Hartman #define SAB82532_ISR1_XPR		0x01
289ab4382d2SGreg Kroah-Hartman 
290ab4382d2SGreg Kroah-Hartman /* Interrupt Mask Register 0 (IMR0) */
291ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_TCD		0x80
292ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_TIME		0x40
293ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_PERR		0x20
294ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_FERR		0x10
295ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_PLLA		0x08
296ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_CDSC		0x04
297ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_RFO		0x02
298ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR0_RPF		0x01
299ab4382d2SGreg Kroah-Hartman 
300ab4382d2SGreg Kroah-Hartman /* Interrupt Mask Register 1 (IMR1) */
301ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_BRK		0x80
302ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_BRKT		0x40
303ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_ALLS		0x20
304ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_XOFF		0x10
305ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_TIN		0x08
306ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_CSC		0x04
307ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_XON		0x02
308ab4382d2SGreg Kroah-Hartman #define SAB82532_IMR1_XPR		0x01
309ab4382d2SGreg Kroah-Hartman 
310ab4382d2SGreg Kroah-Hartman /* Port Interrupt Status Register (PIS) */
311ab4382d2SGreg Kroah-Hartman #define SAB82532_PIS_SYNC_B		0x08
312ab4382d2SGreg Kroah-Hartman #define SAB82532_PIS_DTR_B		0x04
313ab4382d2SGreg Kroah-Hartman #define SAB82532_PIS_DTR_A		0x02
314ab4382d2SGreg Kroah-Hartman #define SAB82532_PIS_SYNC_A		0x01
315ab4382d2SGreg Kroah-Hartman 
316ab4382d2SGreg Kroah-Hartman /* Channel Configuration Register 4 (CCR4) */
317ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR4_MCK4		0x80
318ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR4_EBRG		0x40
319ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR4_TST1		0x20
320ab4382d2SGreg Kroah-Hartman #define SAB82532_CCR4_ICD		0x10
321ab4382d2SGreg Kroah-Hartman 
322ab4382d2SGreg Kroah-Hartman 
323ab4382d2SGreg Kroah-Hartman #endif /* !(_SUNSAB_H) */
324