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