ofw_isa.c (153057) | ofw_isa.c (153061) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000 Matthew R. Green 3 * Copyright (c) 2001, 2003 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: --- 16 unchanged lines hidden (view full) --- 25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * from: NetBSD: ebus.c,v 1.26 2001/09/10 16:27:53 eeh Exp 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999, 2000 Matthew R. Green 3 * Copyright (c) 2001, 2003 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: --- 16 unchanged lines hidden (view full) --- 25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * from: NetBSD: ebus.c,v 1.26 2001/09/10 16:27:53 eeh Exp 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/sparc64/isa/ofw_isa.c 153057 2005-12-03 18:11:26Z marius $"); | 33__FBSDID("$FreeBSD: head/sys/sparc64/isa/ofw_isa.c 153061 2005-12-03 19:52:20Z marius $"); |
34 35/* 36 * Helper functions which can be used in both ISA and EBus code. 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/bus.h> --- 10 unchanged lines hidden (view full) --- 52#include "pcib_if.h" 53 54int 55ofw_isa_range_restype(struct isa_ranges *range) 56{ 57 int ps = ISA_RANGE_PS(range); 58 59 switch (ps) { | 34 35/* 36 * Helper functions which can be used in both ISA and EBus code. 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/bus.h> --- 10 unchanged lines hidden (view full) --- 52#include "pcib_if.h" 53 54int 55ofw_isa_range_restype(struct isa_ranges *range) 56{ 57 int ps = ISA_RANGE_PS(range); 58 59 switch (ps) { |
60 case PCI_CS_IO: | 60 case OFW_PCI_CS_IO: |
61 return (SYS_RES_IOPORT); | 61 return (SYS_RES_IOPORT); |
62 case PCI_CS_MEM32: | 62 case OFW_PCI_CS_MEM32: |
63 return (SYS_RES_MEMORY); 64 default: 65 panic("ofw_isa_range_restype: illegal space %x", ps); 66 } 67 68} 69 70/* XXX: this only supports PCI as parent bus right now. */ --- 51 unchanged lines hidden --- | 63 return (SYS_RES_MEMORY); 64 default: 65 panic("ofw_isa_range_restype: illegal space %x", ps); 66 } 67 68} 69 70/* XXX: this only supports PCI as parent bus right now. */ --- 51 unchanged lines hidden --- |