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

Annotation of sys/arch/arm/sa11x0/sa11x0_var.h, Revision 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 _SA11X0_VAR_H
        !            41: #define _SA11X0_VAR_H
        !            42:
        !            43: #include <sys/conf.h>
        !            44: #include <sys/device.h>
        !            45:
        !            46: #include <machine/bus.h>
        !            47:
        !            48: typedef int (* sa11x0_irq_handler_t)(void *);
        !            49:
        !            50: struct sa11x0_softc {
        !            51:        struct device sc_dev;
        !            52:        bus_space_tag_t sc_iot;
        !            53:        bus_space_handle_t sc_ioh;
        !            54:        bus_space_handle_t sc_gpioh;
        !            55:        bus_space_handle_t sc_ppch;
        !            56:        bus_space_handle_t sc_dmach;
        !            57:        bus_space_handle_t sc_reseth;
        !            58:        u_int32_t sc_intrmask;
        !            59: };
        !            60:
        !            61: /* Attach args all devices */
        !            62:
        !            63: typedef void *sa11x0_chipset_tag_t;
        !            64:
        !            65: struct sa11x0_attach_args {
        !            66:        sa11x0_chipset_tag_t    sa_sc;
        !            67:        bus_space_tag_t         sa_iot;         /* Bus tag */
        !            68:        bus_addr_t              sa_addr;        /* i/o address  */
        !            69:        bus_size_t              sa_size;
        !            70:
        !            71:        int                     sa_intr;
        !            72:        int                     sa_gpio;
        !            73: };
        !            74:
        !            75: struct saip_attach_args {
        !            76:        struct sa11x0_attach_args       sai_saa;
        !            77:        bus_dma_tag_t   sai_dmat;
        !            78:        int     sai_index;      /* to specify device by index number */
        !            79:
        !            80: #define sai_iot        sai_saa.sa_iot
        !            81: #define sai_addr       sai_saa.sa_addr
        !            82: #define sai_size       sai_saa.sa_size
        !            83: #define sai_intr       sai_saa.sa_intr
        !            84: };
        !            85:
        !            86: extern struct bus_space        sa11x0_bs_tag;
        !            87: //extern struct arm32_bus_dma_tag      sa11x0_bus_dma_tag;
        !            88:
        !            89: void *sa11x0_intr_establish(sa11x0_chipset_tag_t, int, int, int,
        !            90:                            int (*)(void *), void *, char *);
        !            91: void sa11x0_intr_disestablish(void *);
        !            92: void sa11x0_init_interrupt_masks(void);
        !            93:
        !            94: #endif /* _SA11X0_VAR_H */

CVSweb