[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.2

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:
1.2     ! nbrk       48: struct sacc_softc {
1.1       nbrk       49:        struct device sc_dev;
                     50:
1.2     ! nbrk       51:        /* our interrupt on SA1110 (usually, intr 0 - GPIO pin 0) */
        !            52:        int     sc_intr;
1.1       nbrk       53:
1.2     ! nbrk       54:        /* our own bus/dma tags (note that we needn't parent iot) */
        !            55:        bus_space_tag_t sc_bust;
        !            56:        bus_dma_tag_t sc_dmat;
1.1       nbrk       57:
1.2     ! nbrk       58:        /* onboard peripheral space (12 units * 128 words) */
        !            59:        bus_space_handle_t      sc_ioh;
1.1       nbrk       60: };
                     61:
                     62: struct sacc_attach_args {
1.2     ! nbrk       63:        bus_space_tag_t sac_iot;
1.1       nbrk       64:        bus_dma_tag_t   sac_dmat;
                     65:
1.2     ! nbrk       66:        /* we export whole i/o space */
        !            67:        bus_space_handle_t      sac_bush;
        !            68:        /* interrupt on the SA1111 INTC */
        !            69:        int     sac_xintr;
        !            70:
        !            71: /*     int     sac_gpio; XXX */
        !            72:
        !            73:        /* device type (for subsequent matches) */
        !            74:        int     sac_typecookie;
1.1       nbrk       75: };
1.2     ! nbrk       76: /* peripheral types */
        !            77: #define SACC_TYPE_SBI  0x00
        !            78: #define SACC_TYPE_SK   0x01
        !            79: #define SACC_TYPE_USB  0x02
        !            80: #define SACC_TYPE_AUDIO        0x03
        !            81: #define SACC_TYPE_SSP  0x04
        !            82: #define SACC_TYPE_TRACK        0x05
        !            83: #define SACC_TYPE_MOUSE        0x06
        !            84: #define SACC_TYPE_GPIO 0x07
        !            85: #define SACC_TYPE_INTC 0x08
        !            86: #define SACC_TYPE_PCIC 0x09
        !            87:
1.1       nbrk       88:
                     89: extern struct bus_space        sa11x1_bs_tag;
                     90: //extern struct arm32_bus_dma_tag      sa11x0_bus_dma_tag;
                     91:
                     92: #endif /* _SA11X1_VAR_H */

CVSweb