pci_user.c (124356) | pci_user.c (126080) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> | 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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/pci/pci_user.c 124356 2004-01-11 00:18:03Z imp $"); | 28__FBSDID("$FreeBSD: head/sys/dev/pci/pci_user.c 126080 2004-02-21 21:10:55Z phk $"); |
29 30#include "opt_bus.h" /* XXX trim includes */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> 35#include <sys/module.h> 36#include <sys/linker.h> --- 32 unchanged lines hidden (view full) --- 69 70#if __FreeBSD_version < 500000 71#define PCI_CDEV 78 72#else 73#define PCI_CDEV MAJOR_AUTO 74#endif 75 76struct cdevsw pcicdev = { | 29 30#include "opt_bus.h" /* XXX trim includes */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> 35#include <sys/module.h> 36#include <sys/linker.h> --- 32 unchanged lines hidden (view full) --- 69 70#if __FreeBSD_version < 500000 71#define PCI_CDEV 78 72#else 73#define PCI_CDEV MAJOR_AUTO 74#endif 75 76struct cdevsw pcicdev = { |
77 .d_version = D_VERSION, 78 .d_flags = D_NEEDGIANT, |
|
77 .d_open = pci_open, 78 .d_close = pci_close, 79 .d_ioctl = pci_ioctl, 80 .d_name = "pci", 81 .d_maj = PCI_CDEV, 82}; 83 84static int --- 347 unchanged lines hidden --- | 79 .d_open = pci_open, 80 .d_close = pci_close, 81 .d_ioctl = pci_ioctl, 82 .d_name = "pci", 83 .d_maj = PCI_CDEV, 84}; 85 86static int --- 347 unchanged lines hidden --- |