pci_private.h (120155) | pci_private.h (128058) |
---|---|
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 120155 2003-09-17 08:32:44Z iwasaki $ | 28 * $FreeBSD: head/sys/dev/pci/pci_private.h 128058 2004-04-09 15:44:34Z imp $ |
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 37 * it with "subclass" busses. A more generic subclassing mechanism would 38 * be nice, but is not present in the tree at this time. 39 */ 40extern devclass_t pci_devclass; 41 42void pci_add_children(device_t dev, int busno, size_t dinfo_size); 43void pci_add_child(device_t bus, struct pci_devinfo *dinfo); | 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 37 * it with "subclass" busses. A more generic subclassing mechanism would 38 * be nice, but is not present in the tree at this time. 39 */ 40extern devclass_t pci_devclass; 41 42void pci_add_children(device_t dev, int busno, size_t dinfo_size); 43void pci_add_child(device_t bus, struct pci_devinfo *dinfo); |
44void pci_driver_added(device_t dev, driver_t *driver); |
|
44int pci_print_child(device_t dev, device_t child); 45void pci_probe_nomatch(device_t dev, device_t child); 46int pci_read_ivar(device_t dev, device_t child, int which, 47 uintptr_t *result); 48int pci_write_ivar(device_t dev, device_t child, int which, 49 uintptr_t value); 50int pci_set_powerstate_method(device_t dev, device_t child, 51 int state); --- 17 unchanged lines hidden (view full) --- 69void pci_print_verbose(struct pci_devinfo *dinfo); 70int pci_freecfg(struct pci_devinfo *dinfo); 71int pci_child_location_str_method(device_t cbdev, device_t child, 72 char *buf, size_t buflen); 73int pci_child_pnpinfo_str_method(device_t cbdev, device_t child, 74 char *buf, size_t buflen); 75int pci_assign_interrupt_method(device_t dev, device_t child); 76int pci_resume(device_t dev); | 45int pci_print_child(device_t dev, device_t child); 46void pci_probe_nomatch(device_t dev, device_t child); 47int pci_read_ivar(device_t dev, device_t child, int which, 48 uintptr_t *result); 49int pci_write_ivar(device_t dev, device_t child, int which, 50 uintptr_t value); 51int pci_set_powerstate_method(device_t dev, device_t child, 52 int state); --- 17 unchanged lines hidden (view full) --- 70void pci_print_verbose(struct pci_devinfo *dinfo); 71int pci_freecfg(struct pci_devinfo *dinfo); 72int pci_child_location_str_method(device_t cbdev, device_t child, 73 char *buf, size_t buflen); 74int pci_child_pnpinfo_str_method(device_t cbdev, device_t child, 75 char *buf, size_t buflen); 76int pci_assign_interrupt_method(device_t dev, device_t child); 77int pci_resume(device_t dev); |
78int pci_suspend(device_t dev); |
|
77#endif /* _PCI_PRIVATE_H_ */ | 79#endif /* _PCI_PRIVATE_H_ */ |