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 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/dev/pci/pci_pci.c 103042 2002-09-06 22:14:00Z jhb $ |
31 */ 32 33/* 34 * PCI:PCI bridge support. 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> --- 5 unchanged lines hidden (view full) --- 44#include <pci/pcivar.h> 45#include <pci/pcireg.h> 46#include <pci/pcib_private.h> 47 48#include "pcib_if.h" 49#include "opt_pci.h" 50 51static int pcib_probe(device_t dev); |
52static int pcib_route_interrupt(device_t pcib, device_t dev, int pin); 53 54static device_method_t pcib_methods[] = { 55 /* Device interface */ 56 DEVMETHOD(device_probe, pcib_probe), 57 DEVMETHOD(device_attach, pcib_attach), 58 DEVMETHOD(device_shutdown, bus_generic_shutdown), 59 DEVMETHOD(device_suspend, bus_generic_suspend), --- 128 unchanged lines hidden (view full) --- 188 /* 189 * XXX If the subordinate bus number is less than the secondary bus number, 190 * we should pick a better value. One sensible alternative would be to 191 * pick 255; the only tradeoff here is that configuration transactions 192 * would be more widely routed than absolutely necessary. 193 */ 194} 195 |
196int |
197pcib_attach(device_t dev) 198{ 199 struct pcib_softc *sc; 200 device_t child; 201 202 pcib_attach_common(dev); 203 sc = device_get_softc(dev); 204 if (sc->secbus != 0) { --- 228 unchanged lines hidden --- |