xref: /openbsd-src/sys/arch/octeon/include/simplebusvar.h (revision 94673892b7b28179327a9d4cb100f53993b0bd92)
1 /*	$OpenBSD: simplebusvar.h,v 1.1 2023/09/22 01:10:43 jsg Exp $	*/
2 
3 /*
4  * Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 struct simplebus_softc {
20 	struct device		 sc_dev;
21 	int			 sc_node;
22 	bus_space_tag_t		 sc_iot;
23 	bus_dma_tag_t		 sc_dmat;
24 	int			 sc_acells;
25 	int			 sc_scells;
26 	int			 sc_pacells;
27 	int			 sc_pscells;
28 	bus_space_t		 sc_bus;
29 	int			*sc_ranges;
30 	int			 sc_rangeslen;
31 	int			 sc_early;
32 };
33 
34 extern void simplebus_attach(struct device *, struct device *, void *);
35