pci.c (53906) | pci.c (54073) |
---|---|
1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/pci/pci.c 53906 1999-11-30 01:34:46Z peter $ | 26 * $FreeBSD: head/sys/dev/pci/pci.c 54073 1999-12-03 08:41:24Z mdodd $ |
27 * 28 */ 29 30#include "opt_bus.h" 31 32#include "opt_simos.h" 33 34#include <sys/param.h> --- 1075 unchanged lines hidden (view full) --- 1110 int pcifunchigh = 0; 1111 for (probe.func = 0; probe.func <= pcifunchigh; probe.func++) { 1112 struct pci_devinfo *dinfo = pci_readcfg(&probe); 1113 if (dinfo != NULL) { 1114 if (dinfo->cfg.mfdev) 1115 pcifunchigh = 7; 1116 1117 pci_print_verbose(dinfo); | 27 * 28 */ 29 30#include "opt_bus.h" 31 32#include "opt_simos.h" 33 34#include <sys/param.h> --- 1075 unchanged lines hidden (view full) --- 1110 int pcifunchigh = 0; 1111 for (probe.func = 0; probe.func <= pcifunchigh; probe.func++) { 1112 struct pci_devinfo *dinfo = pci_readcfg(&probe); 1113 if (dinfo != NULL) { 1114 if (dinfo->cfg.mfdev) 1115 pcifunchigh = 7; 1116 1117 pci_print_verbose(dinfo); |
1118 dinfo->cfg.dev = 1119 device_add_child(dev, NULL, -1, dinfo); | 1118 dinfo->cfg.dev = device_add_child(dev, NULL, -1); 1119 device_set_ivars(dinfo->cfg.dev, dinfo); |
1120 pci_add_resources(dinfo->cfg.dev, &dinfo->cfg); 1121 } 1122 } 1123 } 1124} 1125 1126static int 1127pci_new_probe(device_t dev) --- 306 unchanged lines hidden --- | 1120 pci_add_resources(dinfo->cfg.dev, &dinfo->cfg); 1121 } 1122 } 1123 } 1124} 1125 1126static int 1127pci_new_probe(device_t dev) --- 306 unchanged lines hidden --- |