Home | History | Annotate | Line # | Download | only in imx
imxuartvar.h revision 1.2.22.1
      1  1.2.22.1  rmind /* $NetBSD: imxuartvar.h,v 1.2.22.1 2011/03/05 20:49:35 rmind 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.22.1  rmind /*
      6  1.2.22.1  rmind  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
      7  1.2.22.1  rmind  * Written by Hiroyuki Bessho for Genetec Corporation.
      8  1.2.22.1  rmind  *
      9  1.2.22.1  rmind  * Redistribution and use in source and binary forms, with or without
     10  1.2.22.1  rmind  * modification, are permitted provided that the following conditions
     11  1.2.22.1  rmind  * are met:
     12  1.2.22.1  rmind  * 1. Redistributions of source code must retain the above copyright
     13  1.2.22.1  rmind  *    notice, this list of conditions and the following disclaimer.
     14  1.2.22.1  rmind  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.2.22.1  rmind  *    notice, this list of conditions and the following disclaimer in the
     16  1.2.22.1  rmind  *    documentation and/or other materials provided with the distribution.
     17  1.2.22.1  rmind  *
     18  1.2.22.1  rmind  * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
     19  1.2.22.1  rmind  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     20  1.2.22.1  rmind  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     21  1.2.22.1  rmind  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORPORATION
     22  1.2.22.1  rmind  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     23  1.2.22.1  rmind  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     24  1.2.22.1  rmind  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     25  1.2.22.1  rmind  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     26  1.2.22.1  rmind  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     27  1.2.22.1  rmind  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     28  1.2.22.1  rmind  * POSSIBILITY OF SUCH DAMAGE.
     29  1.2.22.1  rmind  *
     30  1.2.22.1  rmind  */
     31  1.2.22.1  rmind #ifndef	_IMXUARTVAR_H
     32  1.2.22.1  rmind #define	_IMXUARTVAR_H
     33  1.2.22.1  rmind 
     34  1.2.22.1  rmind 
     35  1.2.22.1  rmind #include  <sys/cdefs.h>
     36  1.2.22.1  rmind #include  <sys/termios.h>	/* for tcflag_t */
     37  1.2.22.1  rmind 
     38  1.2.22.1  rmind 
     39  1.2.22.1  rmind void imxuart_attach_common(device_t parent, device_t self,
     40  1.2.22.1  rmind     bus_space_tag_t, paddr_t, size_t, int, int);
     41  1.2.22.1  rmind 
     42  1.2.22.1  rmind int imxuart_kgdb_attach(bus_space_tag_t, paddr_t, u_int, tcflag_t);
     43  1.2.22.1  rmind int imxuart_cons_attach(bus_space_tag_t, paddr_t, u_int, tcflag_t);
     44       1.2   matt 
     45  1.2.22.1  rmind int imxuart_is_console(bus_space_tag_t, bus_addr_t, bus_space_handle_t *);
     46  1.2.22.1  rmind 
     47  1.2.22.1  rmind /*
     48  1.2.22.1  rmind  * Set platform dependent values
     49  1.2.22.1  rmind  */
     50  1.2.22.1  rmind void imxuart_set_frequency(u_int, u_int);
     51  1.2.22.1  rmind 
     52  1.2.22.1  rmind /*
     53  1.2.22.1  rmind  * defined in imx51uart.c and imx31uart.c
     54  1.2.22.1  rmind  */
     55  1.2.22.1  rmind int imxuart_match(struct device *, struct cfdata *, void *);
     56  1.2.22.1  rmind void imxuart_attach(struct device *, struct device *, void *);
     57       1.2   matt 
     58  1.2.22.1  rmind #endif	/* _IMXUARTVAR_H */
     59