apb.c (225931) | apb.c (227848) |
---|---|
1/*- 2 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier 3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org> 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001, 2003 Thomas Moestl <tmm@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * from: FreeBSD: src/sys/dev/pci/pci_pci.c,v 1.3 2000/12/13 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier 3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org> 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001, 2003 Thomas Moestl <tmm@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * from: FreeBSD: src/sys/dev/pci/pci_pci.c,v 1.3 2000/12/13 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/sparc64/pci/apb.c 225931 2011-10-02 23:22:38Z marius $"); | 35__FBSDID("$FreeBSD: head/sys/sparc64/pci/apb.c 227848 2011-11-22 21:55:40Z marius $"); |
36 37/* 38 * Support for the Sun APB (Advanced PCI Bridge) PCI-PCI bridge. 39 * This bridge does not fully comply to the PCI bridge specification, and is 40 * therefore not supported by the generic driver. 41 * We can use some of the pcib methods anyway. 42 */ 43 --- 47 unchanged lines hidden (view full) --- 91 DEVMETHOD(bus_release_resource, bus_generic_release_resource), 92 93 /* pcib interface */ 94 DEVMETHOD(pcib_route_interrupt, ofw_pcib_gen_route_interrupt), 95 96 /* ofw_bus interface */ 97 DEVMETHOD(ofw_bus_get_node, ofw_pcib_gen_get_node), 98 | 36 37/* 38 * Support for the Sun APB (Advanced PCI Bridge) PCI-PCI bridge. 39 * This bridge does not fully comply to the PCI bridge specification, and is 40 * therefore not supported by the generic driver. 41 * We can use some of the pcib methods anyway. 42 */ 43 --- 47 unchanged lines hidden (view full) --- 91 DEVMETHOD(bus_release_resource, bus_generic_release_resource), 92 93 /* pcib interface */ 94 DEVMETHOD(pcib_route_interrupt, ofw_pcib_gen_route_interrupt), 95 96 /* ofw_bus interface */ 97 DEVMETHOD(ofw_bus_get_node, ofw_pcib_gen_get_node), 98 |
99 KOBJMETHOD_END | 99 DEVMETHOD_END |
100}; 101 102static devclass_t pcib_devclass; 103 104DEFINE_CLASS_1(pcib, apb_driver, apb_methods, sizeof(struct apb_softc), 105 pcib_driver); 106EARLY_DRIVER_MODULE(apb, pci, apb_driver, pcib_devclass, 0, 0, BUS_PASS_BUS); 107MODULE_DEPEND(apb, pci, 1, 1, 1); --- 205 unchanged lines hidden --- | 100}; 101 102static devclass_t pcib_devclass; 103 104DEFINE_CLASS_1(pcib, apb_driver, apb_methods, sizeof(struct apb_softc), 105 pcib_driver); 106EARLY_DRIVER_MODULE(apb, pci, apb_driver, pcib_devclass, 0, 0, BUS_PASS_BUS); 107MODULE_DEPEND(apb, pci, 1, 1, 1); --- 205 unchanged lines hidden --- |