pci_private.h (142735) | pci_private.h (153560) |
---|---|
1/*- 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/pci/pci_private.h 142735 2005-02-28 01:14:15Z imp $ | 28 * $FreeBSD: head/sys/dev/pci/pci_private.h 153560 2005-12-20 19:57:47Z jhb $ |
29 * 30 */ 31 32#ifndef _PCI_PRIVATE_H_ 33#define _PCI_PRIVATE_H_ 34 35/* 36 * Export definitions of the pci bus so that we can more easily share --- 17 unchanged lines hidden (view full) --- 54uint32_t pci_read_config_method(device_t dev, device_t child, 55 int reg, int width); 56void pci_write_config_method(device_t dev, device_t child, 57 int reg, uint32_t val, int width); 58int pci_enable_busmaster_method(device_t dev, device_t child); 59int pci_disable_busmaster_method(device_t dev, device_t child); 60int pci_enable_io_method(device_t dev, device_t child, int space); 61int pci_disable_io_method(device_t dev, device_t child, int space); | 29 * 30 */ 31 32#ifndef _PCI_PRIVATE_H_ 33#define _PCI_PRIVATE_H_ 34 35/* 36 * Export definitions of the pci bus so that we can more easily share --- 17 unchanged lines hidden (view full) --- 54uint32_t pci_read_config_method(device_t dev, device_t child, 55 int reg, int width); 56void pci_write_config_method(device_t dev, device_t child, 57 int reg, uint32_t val, int width); 58int pci_enable_busmaster_method(device_t dev, device_t child); 59int pci_disable_busmaster_method(device_t dev, device_t child); 60int pci_enable_io_method(device_t dev, device_t child, int space); 61int pci_disable_io_method(device_t dev, device_t child, int space); |
62int pci_find_extcap_method(device_t dev, device_t child, 63 int capability, int *capreg); |
|
62struct resource *pci_alloc_resource(device_t dev, device_t child, 63 int type, int *rid, u_long start, u_long end, u_long count, 64 u_int flags); 65void pci_delete_resource(device_t dev, device_t child, 66 int type, int rid); 67struct resource_list *pci_get_resource_list (device_t dev, device_t child); 68struct pci_devinfo *pci_read_device(device_t pcib, int b, int s, int f, 69 size_t size); --- 12 unchanged lines hidden --- | 64struct resource *pci_alloc_resource(device_t dev, device_t child, 65 int type, int *rid, u_long start, u_long end, u_long count, 66 u_int flags); 67void pci_delete_resource(device_t dev, device_t child, 68 int type, int rid); 69struct resource_list *pci_get_resource_list (device_t dev, device_t child); 70struct pci_devinfo *pci_read_device(device_t pcib, int b, int s, int f, 71 size_t size); --- 12 unchanged lines hidden --- |