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