1 /* $OpenBSD: simplebusvar.h,v 1.1 2023/09/22 01:10:44 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 struct bus_space sc_bus; 29 struct machine_bus_dma_tag sc_dma; 30 int *sc_ranges; 31 int sc_rangeslen; 32 int *sc_dmaranges; 33 int sc_dmarangeslen; 34 int sc_early; 35 int sc_early_nodes[64]; 36 }; 37 38 extern void simplebus_attach(struct device *, struct device *, void *); 39