1 /* $NetBSD: iomdvar.h,v 1.1 2001/10/05 22:27:41 reinoud Exp $ */
4 * Copyright (c) 1997 Mark Brinicombe.
5 * Copyright (c) 1997 Causality Limited
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by Mark Brinicombe
19 * 4. The name of the company nor the name of the author may be used to
20 * endorse or promote products derived from this software without specific
21 * prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * RiscBSD kernel project
42 #include <machine/bus.h>
45 * Attach args for iomd_clock device
48 struct clk_attach_args
{
49 const char *ca_name
; /* device name*/
50 bus_space_tag_t ca_iot
; /* Bus tag */
51 bus_space_handle_t ca_ioh
; /* Bus handle */
52 int ca_irq
; /* IRQ number */
57 * Attach args for iomd device
61 * Attach args for qms device
64 struct qms_attach_args
{
65 const char *qa_name
; /* device name*/
66 bus_space_tag_t qa_iot
; /* Bus tag */
67 bus_space_handle_t qa_ioh
; /* Bus handle */
68 bus_space_handle_t qa_ioh_but
; /* Bus handle */
69 int qa_irq
; /* IRQ number */
73 * Attach args for opms device
76 struct opms_attach_args
{
77 const char *pa_name
; /* device name*/
78 bus_space_tag_t pa_iot
; /* Bus tag */
79 bus_space_handle_t pa_ioh
; /* Bus handle */
80 int pa_irq
; /* IRQ number */
84 * Attach args for kbd device
87 struct kbd_attach_args
{
88 const char *ka_name
; /* device name*/
89 bus_space_tag_t ka_iot
; /* Bus tag */
90 bus_space_handle_t ka_ioh
; /* Bus handle */
91 int ka_rxirq
; /* IRQ number */
92 int ka_txirq
; /* IRQ number */
96 * Attach args for iic device
99 struct iic_attach_args
{
100 const char *ia_name
; /* device name */
101 bus_space_tag_t ia_iot
; /* Bus tag */
102 bus_space_handle_t ia_ioh
; /* Bus handle */
103 int ia_irq
; /* IRQ number */
107 * NOTE: All these attach structures and a const char *name as the
108 * first field for identification.
111 union iomd_attach_args
{
112 struct kbd_attach_args ia_kbd
;
113 struct opms_attach_args ia_opms
;
114 struct qms_attach_args ia_qms
;
115 struct iic_attach_args ia_iic
;
116 struct clk_attach_args ia_clk
;
120 * IOMD_BASE register variable
122 extern u_int32_t iomd_base
;
124 /* End of iomdvar.h */