isa.c (106555) | isa.c (115417) |
---|---|
1/*- 2 * Copyright (c) 1998 Doug Rabson 3 * Copyright (c) 2001 Thomas Moestl <tmm@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * from: FreeBSD: src/sys/alpha/isa/isa.c,v 1.26 2001/07/11 28 * | 1/*- 2 * Copyright (c) 1998 Doug Rabson 3 * Copyright (c) 2001 Thomas Moestl <tmm@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * from: FreeBSD: src/sys/alpha/isa/isa.c,v 1.26 2001/07/11 28 * |
29 * $FreeBSD: head/sys/sparc64/isa/isa.c 106555 2002-11-07 16:07:46Z tmm $ | 29 * $FreeBSD: head/sys/sparc64/isa/isa.c 115417 2003-05-30 20:48:05Z tmm $ |
30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/bus.h> 37#include <machine/bus.h> --- 91 unchanged lines hidden (view full) --- 129 for (i = 0; i < 8; i++) 130 isa_ino[i] = ORIR_NOTFOUND; 131 for (node = OF_child(isab_node); node != 0; node = OF_peer(node)) { 132 if (OF_getprop(node, "interrupts", &ino, sizeof(ino)) == -1) 133 continue; 134 if (ino > 7) 135 panic("isa_init: XXX: ino too large"); 136 isa_ino[ino] = ofw_bus_route_intr(node, ino, | 30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/bus.h> 37#include <machine/bus.h> --- 91 unchanged lines hidden (view full) --- 129 for (i = 0; i < 8; i++) 130 isa_ino[i] = ORIR_NOTFOUND; 131 for (node = OF_child(isab_node); node != 0; node = OF_peer(node)) { 132 if (OF_getprop(node, "interrupts", &ino, sizeof(ino)) == -1) 133 continue; 134 if (ino > 7) 135 panic("isa_init: XXX: ino too large"); 136 isa_ino[ino] = ofw_bus_route_intr(node, ino, |
137 ofw_pci_orb_callback); | 137 ofw_pci_orb_callback, dev); |
138 } 139 140 for (nbr -= 1; nbr >= 0; nbr--) { 141 switch(ISAB_RANGE_SPACE(br + nbr)) { 142 case ISAR_SPACE_IO: 143 /* This is probably always 0. */ 144 isa_io_base = ISAB_RANGE_PHYS(&br[nbr]); 145 isa_io_limit = br[nbr].size; --- 199 unchanged lines hidden --- | 138 } 139 140 for (nbr -= 1; nbr >= 0; nbr--) { 141 switch(ISAB_RANGE_SPACE(br + nbr)) { 142 case ISAR_SPACE_IO: 143 /* This is probably always 0. */ 144 isa_io_base = ISAB_RANGE_PHYS(&br[nbr]); 145 isa_io_limit = br[nbr].size; --- 199 unchanged lines hidden --- |