[BACK]Return to sa11x1_var.h CVS log [TXT][DIR] Up to [local] / sys / arch / arm / sa11x0

Annotation of sys/arch/arm/sa11x0/sa11x1_var.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: sa11x0_var.h,v 1.3 2005/01/04 02:08:41 drahn Exp $ */
                      2: /*      $NetBSD: sa11x0_var.h,v 1.4 2003/04/14 14:18:41 rjs Exp $        */
                      3:
                      4: /*-
                      5:  * Copyright (c) 2001, The NetBSD Foundation, Inc.  All rights reserved.
                      6:  *
                      7:  * This code is derived from software contributed to The NetBSD Foundation
                      8:  * by IWAMOTO Toshihiro and Ichiro FUKUHARA.
                      9:  *
                     10:  * Redistribution and use in source and binary forms, with or without
                     11:  * modification, are permitted provided that the following conditions
                     12:  * are met:
                     13:  * 1. Redistributions of source code must retain the above copyright
                     14:  *    notice, this list of conditions and the following disclaimer.
                     15:  * 2. Redistributions in binary form must reproduce the above copyright
                     16:  *    notice, this list of conditions and the following disclaimer in the
                     17:  *    documentation and/or other materials provided with the distribution.
                     18:  * 3. All advertising materials mentioning features or use of this software
                     19:  *    must display the following acknowledgement:
                     20:  *      This product includes software developed by the NetBSD
                     21:  *      Foundation, Inc. and its contributors.
                     22:  * 4. Neither the name of The NetBSD Foundation nor the names of its
                     23:  *    contributors may be used to endorse or promote products derived
                     24:  *    from this software without specific prior written permission.
                     25:  *
                     26:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     27:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     28:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     29:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     30:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     31:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     32:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     33:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     34:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     35:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     36:  * SUCH DAMAGE.
                     37:  *
                     38:  */
                     39:
                     40: #ifndef _SA11X1_VAR_H
                     41: #define _SA11X1_VAR_H
                     42:
                     43: #include <sys/conf.h>
                     44: #include <sys/device.h>
                     45:
                     46: #include <machine/bus.h>
                     47:
                     48: typedef int (* sa11x1_irq_handler_t)(void *);
                     49:
                     50: #if 0
                     51: struct sa11x0_softc {
                     52:        struct device sc_dev;
                     53:        bus_space_tag_t sc_iot;
                     54:        bus_space_handle_t sc_ioh;
                     55:        bus_space_handle_t sc_gpioh;
                     56:        bus_space_handle_t sc_ppch;
                     57:        bus_space_handle_t sc_dmach;
                     58:        bus_space_handle_t sc_reseth;
                     59:        u_int32_t sc_intrmask;
                     60: };
                     61: #endif /* 0 */
                     62: /* Attach args all devices */
                     63:
                     64: typedef void *sa11x1_chipset_tag_t;
                     65:
                     66: struct sa11x1_attach_args {
                     67:        sa11x1_chipset_tag_t    sa_sc;
                     68:        bus_space_tag_t         sa_iot;         /* Bus tag */
                     69:        bus_addr_t              sa_addr;        /* i/o address (actually, offset from sacc base) */
                     70:        bus_size_t              sa_size;
                     71:
                     72:        int                     sa_intr;
                     73:        int                     sa_gpio;
                     74: };
                     75:
                     76: struct sacc_attach_args {
                     77:        struct sa11x0_attach_args       sac_saa;
                     78:        bus_dma_tag_t   sac_dmat;
                     79:
                     80: #define sac_iot        sac_saa.sa_iot
                     81: #define sac_addr       sac_saa.sa_addr
                     82: #define sac_size       sac_saa.sa_size
                     83: #define sac_intr       sac_saa.sa_intr
                     84: };
                     85:
                     86: extern struct bus_space        sa11x1_bs_tag;
                     87: //extern struct arm32_bus_dma_tag      sa11x0_bus_dma_tag;
                     88:
                     89: #if 0
                     90: void *sa11x1_intr_establish(sa11x0_chipset_tag_t, int, int, int,
                     91:                            int (*)(void *), void *, char *);
                     92: void sa11x1_intr_disestablish(void *);
                     93: void sa11x1_init_interrupt_masks(void);
                     94: #endif /* 0 */
                     95: #endif /* _SA11X1_VAR_H */

CVSweb