Home | History | Annotate | Line # | Download | only in at91
at91rm9200busvar.h revision 1.3.12.1
      1  1.3.12.1  yamt /*	$Id: at91rm9200busvar.h,v 1.3.12.1 2012/10/30 17:18:58 yamt Exp $	*/
      2  1.3.12.1  yamt /*	$NetBSD: at91rm9200busvar.h,v 1.3.12.1 2012/10/30 17:18:58 yamt Exp $ */
      3       1.2  matt 
      4       1.2  matt /*
      5       1.2  matt  * Copyright (c) 2007 Embedtronics Oy
      6       1.2  matt  * All rights reserved.
      7       1.2  matt  *
      8       1.2  matt  * Redistribution and use in source and binary forms, with or without
      9       1.2  matt  * modification, are permitted provided that the following conditions
     10       1.2  matt  * are met:
     11       1.2  matt  * 1. Redistributions of source code must retain the above copyright
     12       1.2  matt  *    notice, this list of conditions and the following disclaimer.
     13       1.2  matt  * 2. Redistributions in binary form must reproduce the above copyright
     14       1.2  matt  *    notice, this list of conditions and the following disclaimer in the
     15       1.2  matt  *    documentation and/or other materials provided with the distribution.
     16       1.2  matt  *
     17       1.2  matt  * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA ``AS IS'' AND ANY EXPRESS OR
     18       1.2  matt  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19       1.2  matt  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20       1.2  matt  * IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS HEAD BE LIABLE FOR
     21       1.2  matt  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     22       1.2  matt  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     23       1.2  matt  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     24       1.2  matt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     25       1.2  matt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     26       1.2  matt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     27       1.2  matt  * SUCH DAMAGE.
     28       1.2  matt  */
     29       1.2  matt 
     30       1.2  matt #ifndef _AT91RM9200BUSVAR_H_
     31       1.2  matt #define _AT91RM9200BUSVAR_H_
     32       1.2  matt 
     33       1.2  matt #include <arm/at91/at91busvar.h>
     34       1.2  matt #include <arm/at91/at91pmcvar.h>
     35       1.2  matt #include <arm/at91/at91aicvar.h>
     36       1.2  matt #include <arm/at91/at91dbguvar.h>
     37       1.2  matt #include <arm/at91/at91rm9200reg.h>
     38       1.2  matt 
     39       1.2  matt #include "at91dbgu.h"
     40       1.2  matt 
     41       1.2  matt void at91rm9200bus_init(struct at91bus_clocks *);
     42       1.2  matt #if NAT91DBGU > 0
     43       1.2  matt #define	at91rm9200bus_attach_cn		at91dbgu_attach_cn
     44       1.2  matt #else
     45       1.2  matt void at91rm9200bus_attach_cn(bus_space_tag_t iot, int ospeed, int cflag);
     46       1.2  matt #endif
     47       1.2  matt const struct pmap_devmap *at91rm9200bus_devmap(void);
     48       1.2  matt void at91rm9200bus_peripheral_clock(int pid, int enable);
     49       1.2  matt at91pio_port at91rm9200bus_pio_port(int pid);
     50       1.2  matt uint32_t at91rm9200bus_gpio_mask(int pid);
     51       1.2  matt #define	at91rm9200bus_intr_init		at91aic_init
     52       1.2  matt #define	at91rm9200bus_intr_establish	at91aic_intr_establish
     53       1.2  matt #define	at91rm9200bus_intr_disestablish	at91aic_intr_disestablish
     54       1.2  matt #define	at91rm9200bus_intr_poll		at91aic_intr_poll
     55       1.2  matt #define	at91rm9200bus_intr_dispatch	at91aic_intr_dispatch
     56       1.2  matt const char *at91rm9200bus_peripheral_name(int pid);
     57       1.2  matt void at91rm9200bus_search_peripherals(device_t self,
     58       1.2  matt 				   device_t (*found_func)(device_t, bus_addr_t, int));
     59       1.2  matt 
     60  1.3.12.1  yamt extern const struct at91bus_machdep at91rm9200bus;
     61       1.2  matt 
     62       1.2  matt #endif	// _AT91RM9200BUSVAR_H_
     63