xref: /netbsd-src/sys/arch/evbarm/hdl_g/obiovar.h (revision 8ccb6c9341bcfed2a50a9bc07595d10ff53e454b)
1*8ccb6c93Selad /*	$NetBSD: obiovar.h,v 1.2 2006/05/14 21:55:10 elad Exp $	*/
2407f05e7Snonaka 
3407f05e7Snonaka /*
4407f05e7Snonaka  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
5407f05e7Snonaka  * All rights reserved.
6407f05e7Snonaka  *
7407f05e7Snonaka  * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8407f05e7Snonaka  *
9407f05e7Snonaka  * Redistribution and use in source and binary forms, with or without
10407f05e7Snonaka  * modification, are permitted provided that the following conditions
11407f05e7Snonaka  * are met:
12407f05e7Snonaka  * 1. Redistributions of source code must retain the above copyright
13407f05e7Snonaka  *    notice, this list of conditions and the following disclaimer.
14407f05e7Snonaka  * 2. Redistributions in binary form must reproduce the above copyright
15407f05e7Snonaka  *    notice, this list of conditions and the following disclaimer in the
16407f05e7Snonaka  *    documentation and/or other materials provided with the distribution.
17407f05e7Snonaka  * 3. All advertising materials mentioning features or use of this software
18407f05e7Snonaka  *    must display the following acknowledgement:
19407f05e7Snonaka  *	This product includes software developed for the NetBSD Project by
20407f05e7Snonaka  *	Wasabi Systems, Inc.
21407f05e7Snonaka  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
22407f05e7Snonaka  *    or promote products derived from this software without specific prior
23407f05e7Snonaka  *    written permission.
24407f05e7Snonaka  *
25407f05e7Snonaka  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
26407f05e7Snonaka  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27407f05e7Snonaka  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28407f05e7Snonaka  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
29407f05e7Snonaka  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30407f05e7Snonaka  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31407f05e7Snonaka  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32407f05e7Snonaka  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33407f05e7Snonaka  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34407f05e7Snonaka  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35407f05e7Snonaka  * POSSIBILITY OF SUCH DAMAGE.
36407f05e7Snonaka  */
37407f05e7Snonaka 
38407f05e7Snonaka #ifndef _OBIOVAR_H_
39407f05e7Snonaka #define	_OBIOVAR_H_
40407f05e7Snonaka 
41407f05e7Snonaka struct obio_attach_args {
42407f05e7Snonaka 	bus_space_tag_t oba_st;		/* bus space tag */
43407f05e7Snonaka 	bus_addr_t oba_addr;		/* address of device */
44407f05e7Snonaka 	bus_size_t oba_size;		/* size of device */
45407f05e7Snonaka 	int oba_width;			/* bus width */
46407f05e7Snonaka 	int oba_irq;			/* XINT interrupt bit # */
47407f05e7Snonaka };
48407f05e7Snonaka 
49407f05e7Snonaka extern struct bus_space obio_bs_tag;
50407f05e7Snonaka 
51407f05e7Snonaka #endif /* _OBIOVAR_H_ */
52