Annotation of sys/arch/arm/sa11x0/sa11x1_var.h, Revision 1.3
1.3 ! nbrk 1: /* $Id$ */
1.1 nbrk 2: /* $OpenBSD: sa11x0_var.h,v 1.3 2005/01/04 02:08:41 drahn Exp $ */
3: /* $NetBSD: sa11x0_var.h,v 1.4 2003/04/14 14:18:41 rjs Exp $ */
4:
5: /*-
6: * Copyright (c) 2001, The NetBSD Foundation, Inc. All rights reserved.
7: *
8: * This code is derived from software contributed to The NetBSD Foundation
9: * by IWAMOTO Toshihiro and Ichiro FUKUHARA.
10: *
11: * Redistribution and use in source and binary forms, with or without
12: * modification, are permitted provided that the following conditions
13: * are met:
14: * 1. Redistributions of source code must retain the above copyright
15: * notice, this list of conditions and the following disclaimer.
16: * 2. Redistributions in binary form must reproduce the above copyright
17: * notice, this list of conditions and the following disclaimer in the
18: * documentation and/or other materials provided with the distribution.
19: * 3. All advertising materials mentioning features or use of this software
20: * must display the following acknowledgement:
21: * This product includes software developed by the NetBSD
22: * Foundation, Inc. and its contributors.
23: * 4. Neither the name of The NetBSD Foundation nor the names of its
24: * contributors may be used to endorse or promote products derived
25: * from this software without specific prior written permission.
26: *
27: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37: * SUCH DAMAGE.
38: *
39: */
40:
41: #ifndef _SA11X1_VAR_H
42: #define _SA11X1_VAR_H
43:
44: #include <sys/conf.h>
45: #include <sys/device.h>
46:
47: #include <machine/bus.h>
48:
1.2 nbrk 49: struct sacc_softc {
1.1 nbrk 50: struct device sc_dev;
51:
1.2 nbrk 52: /* our interrupt on SA1110 (usually, intr 0 - GPIO pin 0) */
53: int sc_intr;
1.1 nbrk 54:
1.2 nbrk 55: /* our own bus/dma tags (note that we needn't parent iot) */
56: bus_space_tag_t sc_bust;
57: bus_dma_tag_t sc_dmat;
1.1 nbrk 58:
1.2 nbrk 59: /* onboard peripheral space (12 units * 128 words) */
60: bus_space_handle_t sc_ioh;
1.1 nbrk 61: };
62:
63: struct sacc_attach_args {
1.2 nbrk 64: bus_space_tag_t sac_iot;
1.1 nbrk 65: bus_dma_tag_t sac_dmat;
66:
1.2 nbrk 67: /* we export whole i/o space */
68: bus_space_handle_t sac_bush;
69: /* interrupt on the SA1111 INTC */
70: int sac_xintr;
71:
72: /* int sac_gpio; XXX */
73:
74: /* device type (for subsequent matches) */
75: int sac_typecookie;
1.1 nbrk 76: };
1.2 nbrk 77: /* peripheral types */
78: #define SACC_TYPE_SBI 0x00
79: #define SACC_TYPE_SK 0x01
80: #define SACC_TYPE_USB 0x02
81: #define SACC_TYPE_AUDIO 0x03
82: #define SACC_TYPE_SSP 0x04
83: #define SACC_TYPE_TRACK 0x05
84: #define SACC_TYPE_MOUSE 0x06
85: #define SACC_TYPE_GPIO 0x07
86: #define SACC_TYPE_INTC 0x08
87: #define SACC_TYPE_PCIC 0x09
88:
1.1 nbrk 89:
90: extern struct bus_space sa11x1_bs_tag;
91: //extern struct arm32_bus_dma_tag sa11x0_bus_dma_tag;
92:
93: #endif /* _SA11X1_VAR_H */
CVSweb