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