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