xref: /netbsd-src/sys/arch/mips/rmi/rmixl_iobusvar.h (revision e88df844a3421d74b5a7a9dee5a1fad406a6b2d4)
1*e88df844Smsaitoh /*	$NetBSD: rmixl_iobusvar.h,v 1.2 2019/08/21 04:51:41 msaitoh Exp $	*/
2ea3f01c4Scliff /*-
3ea3f01c4Scliff  * Copyright (c) 2011 The NetBSD Foundation, Inc.
4ea3f01c4Scliff  * All rights reserved.
5ea3f01c4Scliff  *
6ea3f01c4Scliff  * This code is derived from software contributed to The NetBSD Foundation
7ea3f01c4Scliff  * by Cliff Neighbors
8ea3f01c4Scliff  *
9ea3f01c4Scliff  * Redistribution and use in source and binary forms, with or without
10ea3f01c4Scliff  * modification, are permitted provided that the following conditions
11ea3f01c4Scliff  * are met:
12ea3f01c4Scliff  * 1. Redistributions of source code must retain the above copyright
13ea3f01c4Scliff  *    notice, this list of conditions and the following disclaimer.
14ea3f01c4Scliff  * 2. Redistributions in binary form must reproduce the above copyright
15ea3f01c4Scliff  *    notice, this list of conditions and the following disclaimer in the
16ea3f01c4Scliff  *    documentation and/or other materials provided with the distribution.
17ea3f01c4Scliff  *
18ea3f01c4Scliff  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19ea3f01c4Scliff  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20ea3f01c4Scliff  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21ea3f01c4Scliff  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22ea3f01c4Scliff  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23ea3f01c4Scliff  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24ea3f01c4Scliff  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25ea3f01c4Scliff  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26ea3f01c4Scliff  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27ea3f01c4Scliff  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28ea3f01c4Scliff  * POSSIBILITY OF SUCH DAMAGE.
29ea3f01c4Scliff  */
30ea3f01c4Scliff 
31ea3f01c4Scliff #ifndef _RMIXL_IOBUSVAR_H_
32ea3f01c4Scliff #define _RMIXL_IOBUSVAR_H_
33ea3f01c4Scliff 
34ea3f01c4Scliff struct rmixl_iobus_attach_args {
35*e88df844Smsaitoh 	bus_space_tag_t		ia_obio_bst;	/* for iobus controller access */
36ea3f01c4Scliff 	bus_space_handle_t	ia_obio_bsh;	/*  "   "     "         "     */
37ea3f01c4Scliff 	bus_space_tag_t		ia_iobus_bst;	/* for iobus access */
38ea3f01c4Scliff 	bus_addr_t		ia_iobus_addr;	/* device iobus address */
39ea3f01c4Scliff 	bus_size_t		ia_iobus_size;	/* device iobus size */
40ea3f01c4Scliff 	uint32_t		ia_iobus_intr;	/* TBD */
41ea3f01c4Scliff 	uint32_t		ia_dev_parm;	/* copy of chip select device parameters */
42ea3f01c4Scliff 	int			ia_cs;		/* chip select index */
43ea3f01c4Scliff };
44ea3f01c4Scliff 
45ea3f01c4Scliff #endif	/* _RMIXL_IOBUSVAR_H_ */
46