oiocvar.h revision 1.2 1 1.2 dyoung /* $NetBSD: oiocvar.h,v 1.2 2011/07/01 18:53:47 dyoung Exp $ */
2 1.1 rumble
3 1.1 rumble /*
4 1.1 rumble * Copyright (c) 2009 Stephen M. Rumble
5 1.1 rumble * Copyright (c) 2001 Wayne Knowles
6 1.1 rumble * All rights reserved.
7 1.1 rumble *
8 1.1 rumble * This code is derived from software contributed to The NetBSD Foundation
9 1.1 rumble * by Wayne Knowles
10 1.1 rumble *
11 1.1 rumble * Redistribution and use in source and binary forms, with or without
12 1.1 rumble * modification, are permitted provided that the following conditions
13 1.1 rumble * are met:
14 1.1 rumble * 1. Redistributions of source code must retain the above copyright
15 1.1 rumble * notice, this list of conditions and the following disclaimer.
16 1.1 rumble * 2. Redistributions in binary form must reproduce the above copyright
17 1.1 rumble * notice, this list of conditions and the following disclaimer in the
18 1.1 rumble * documentation and/or other materials provided with the distribution.
19 1.1 rumble * 3. All advertising materials mentioning features or use of this software
20 1.1 rumble * must display the following acknowledgement:
21 1.1 rumble * This product includes software developed by the NetBSD
22 1.1 rumble * Foundation, Inc. and its contributors.
23 1.1 rumble * 4. Neither the name of The NetBSD Foundation nor the names of its
24 1.1 rumble * contributors may be used to endorse or promote products derived
25 1.1 rumble * from this software without specific prior written permission.
26 1.1 rumble *
27 1.1 rumble * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
28 1.1 rumble * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
29 1.1 rumble * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30 1.1 rumble * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
31 1.1 rumble * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 1.1 rumble * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 1.1 rumble * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 1.1 rumble * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 1.1 rumble * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 1.1 rumble * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 1.1 rumble * POSSIBILITY OF SUCH DAMAGE.
38 1.1 rumble */
39 1.1 rumble
40 1.1 rumble #ifndef _ARCH_SGIMIPS_DEV_OIOCVAR_H_
41 1.1 rumble #define _ARCH_SGIMIPS_DEV_OIOCVAR_H_
42 1.1 rumble
43 1.2 dyoung #include <sys/bus.h>
44 1.1 rumble
45 1.1 rumble struct oioc_attach_args {
46 1.1 rumble const char *oa_name; /* name of device */
47 1.1 rumble int oa_irq; /* interrupt line */
48 1.1 rumble int oa_burst_dma; /* burst dma capable */
49 1.1 rumble bus_space_tag_t oa_st; /* IOC space tag */
50 1.1 rumble bus_space_handle_t oa_sh; /* IOC space handle */
51 1.1 rumble bus_dma_tag_t oa_dmat; /* IOC DMA tag */
52 1.1 rumble };
53 1.1 rumble
54 1.1 rumble #endif /* _ARCH_SGIMIPS_DEV_OIOCVAR_H_ */
55