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