pci.c (47625) | pci.c (47640) |
---|---|
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 * $Id: pci.c,v 1.105 1999/05/30 10:54:31 dfr Exp $ | 26 * $Id: pci.c,v 1.106 1999/05/30 16:53:36 phk Exp $ |
27 * 28 */ 29 30#include "opt_bus.h" 31 32#include "pci.h" 33#if NPCI > 0 34 --- 835 unchanged lines hidden (view full) --- 870 871#ifdef DEVFS 872static void *pci_devfs_token; 873#endif 874 875static void 876pci_cdevinit(void *dummy) 877{ | 27 * 28 */ 29 30#include "opt_bus.h" 31 32#include "pci.h" 33#if NPCI > 0 34 --- 835 unchanged lines hidden (view full) --- 870 871#ifdef DEVFS 872static void *pci_devfs_token; 873#endif 874 875static void 876pci_cdevinit(void *dummy) 877{ |
878 dev_t dev; 879 880 dev = makedev(PCI_CDEV, 0); 881 cdevsw_add(&dev, &pcicdev, NULL); | 878 cdevsw_add(&pcicdev); |
882#ifdef DEVFS 883 pci_devfs_token = devfs_add_devswf(&pcicdev, 0, DV_CHR, 884 UID_ROOT, GID_WHEEL, 0644, "pci"); 885#endif 886} 887 888SYSINIT(pcidev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+PCI_CDEV, pci_cdevinit, NULL); 889 --- 540 unchanged lines hidden --- | 879#ifdef DEVFS 880 pci_devfs_token = devfs_add_devswf(&pcicdev, 0, DV_CHR, 881 UID_ROOT, GID_WHEEL, 0644, "pci"); 882#endif 883} 884 885SYSINIT(pcidev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+PCI_CDEV, pci_cdevinit, NULL); 886 --- 540 unchanged lines hidden --- |