pci_cfgreg.c (53363) | pci_cfgreg.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/amd64/pci/pci_cfgreg.c 53363 1999-11-18 08:58:37Z peter $ | 26 * $FreeBSD: head/sys/amd64/pci/pci_cfgreg.c 54073 1999-12-03 08:41:24Z mdodd $ |
27 * 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34 --- 438 unchanged lines hidden (view full) --- 473 BUS_ADD_CHILD(parent, 100, "pcib", 0); 474 } 475} 476 477static int 478nexus_pcib_probe(device_t dev) 479{ 480 if (pci_cfgopen() != 0) { | 27 * 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34 --- 438 unchanged lines hidden (view full) --- 473 BUS_ADD_CHILD(parent, 100, "pcib", 0); 474 } 475} 476 477static int 478nexus_pcib_probe(device_t dev) 479{ 480 if (pci_cfgopen() != 0) { |
481 device_add_child(dev, "pci", device_get_unit(dev), 0); | 481 device_add_child(dev, "pci", device_get_unit(dev)); |
482 return 0; 483 } 484 return ENXIO; 485} 486 487static device_method_t nexus_pcib_methods[] = { 488 /* Device interface */ 489 DEVMETHOD(device_identify, nexus_pcib_identify), --- 25 unchanged lines hidden --- | 482 return 0; 483 } 484 return ENXIO; 485} 486 487static device_method_t nexus_pcib_methods[] = { 488 /* Device interface */ 489 DEVMETHOD(device_identify, nexus_pcib_identify), --- 25 unchanged lines hidden --- |