xref: /netbsd-src/sys/arch/arm/imx/imxuartvar.h (revision 404fbe5fb94ca1e054339640cabb2801ce52dd30)
1 /* $Id: imxuartvar.h,v 1.2 2008/04/27 18:58:44 matt Exp $ */
2 /*
3  * driver include for Freescale i.MX31 and i.MX31L UARTs
4  */
5 
6 typedef struct imxuart_softc {
7 	struct device		sc_dev;
8 	bus_space_tag_t		sc_bt;
9 	bus_space_handle_t	sc_bh;
10 
11 	uint32_t		sc_intrspec_enb;
12 	uint32_t		sc_ucr[4];
13 	uint32_t		sc_usr[2];
14 
15 	uint			sc_init_cnt;
16 
17 	bus_addr_t		sc_addr;
18 	bus_size_t		sc_size;
19 	int			sc_intr;
20 
21 	struct tty		*sc_tty;
22 
23 	struct {
24 		ulong err;
25 		ulong brk;
26 		ulong prerr;
27 		ulong frmerr;
28 		ulong ovrrun;
29 	}			sc_errors;
30 } imxuart_softc_t;
31 
32 int imxuart_init(imxuart_softc_t *, uint);
33 int imxuart_test(void);
34