xref: /netbsd-src/sys/arch/vax/include/mainbus.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: mainbus.h,v 1.2 2008/04/28 20:23:39 martin Exp $ */
2dfba8166Smatt /*-
3dfba8166Smatt  * Copyright (c) 2008 The NetBSD Foundation, Inc.
4dfba8166Smatt  * All rights reserved.
5dfba8166Smatt  *
6dfba8166Smatt  * This code is derived from software contributed to The NetBSD Foundation
7dfba8166Smatt  * by Matt Thomas <matt@3am-software.com>
8dfba8166Smatt  *
9dfba8166Smatt  * Redistribution and use in source and binary forms, with or without
10dfba8166Smatt  * modification, are permitted provided that the following conditions
11dfba8166Smatt  * are met:
12dfba8166Smatt  * 1. Redistributions of source code must retain the above copyright
13dfba8166Smatt  *    notice, this list of conditions and the following disclaimer.
14dfba8166Smatt  * 2. Redistributions in binary form must reproduce the above copyright
15dfba8166Smatt  *    notice, this list of conditions and the following disclaimer in the
16dfba8166Smatt  *    documentation and/or other materials provided with the distribution.
17dfba8166Smatt  *
18dfba8166Smatt  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19dfba8166Smatt  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20dfba8166Smatt  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21dfba8166Smatt  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22dfba8166Smatt  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23dfba8166Smatt  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24dfba8166Smatt  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25dfba8166Smatt  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26dfba8166Smatt  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27dfba8166Smatt  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28dfba8166Smatt  * POSSIBILITY OF SUCH DAMAGE.
29dfba8166Smatt  */
30dfba8166Smatt 
31dfba8166Smatt #ifndef _VAX_MAINBUS_H_
32dfba8166Smatt #define _VAX_MAINBUS_H_
33dfba8166Smatt 
34dfba8166Smatt #include <sys/device.h>
35dfba8166Smatt #include <machine/bus.h>
36dfba8166Smatt 
37dfba8166Smatt struct mainbus_attach_args {
38dfba8166Smatt 	const char *ma_type;
39dfba8166Smatt 	bus_space_tag_t ma_iot;
40dfba8166Smatt 	bus_dma_tag_t ma_dmat;
41dfba8166Smatt 	bus_addr_t ma_addr;
42dfba8166Smatt 	unsigned int ma_num;
43dfba8166Smatt };
44dfba8166Smatt 
45dfba8166Smatt #endif
46