Lines Matching refs:ebus
1 /* $NetBSD: ebus.c,v 1.42 2022/01/22 11:49:16 thorpej Exp $ */
30 * EBus support for PCI based SPARC systems (ms-IIep, Ultra).
31 * EBus is documented in PCIO manual (Sun Part#: 802-7837-01).
35 __KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.42 2022/01/22 11:49:16 thorpej Exp $");
73 #include <dev/ebus/ebusreg.h>
74 #include <dev/ebus/ebusvar.h>
104 CFATTACH_DECL_NEW(ebus, sizeof(struct ebus_softc),
127 * EBus doesn't have official OFW binding. sparc64 has a de-facto
137 * is tied to this version of ebus driver and as such it's better stay
172 * XXX: This assumes single EBus. However I don't think any ms-IIep
200 && strcmp(name, "ebus") == 0)
215 printf("%s: global ebus wiring map already initialized\n",
238 * attach an ebus and all its children. this code is modeled
266 panic("%s: unable to find ebus node", device_xname(self));
284 sc->sc_bustag = pa->pa_memt; /* EBus only does PCI MEM32 space */
287 panic("unable to allocate ebus bus tag");
297 * not "ranges", since "reg" on ebus has exactly the data we'd
303 panic("%s: unable to read ebus registers (error %d)",
309 DPRINTF(EDB_CHILD, ("ebus node %08x, searching children...\n", node));
368 printf("ebus loses: device %s: %d regs and %d addrs\n",
449 * about PCI physical addresses, which also applies to ebus.
468 /* EBus has only two BARs */
476 * Almost all of the interesting ebus children are mapped by
483 /* EBus only does MEM32 */
520 * Install an interrupt handler for a EBus device.