aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-04-15 03:42:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-04-15 03:42:12 +0000
commit6cd99ae86d426c7006d655b182fe3ae4991d795b (patch)
treef27f63561d0afda441fc0921b7455bd4dce5e730 /sys/dev/pci/pcivar.h
parent2c6167310efd894360b679d01398cc63214ca619 (diff)
downloadsrc-6cd99ae86d426c7006d655b182fe3ae4991d795b.tar.gz
src-6cd99ae86d426c7006d655b182fe3ae4991d795b.zip
Add a new PCI bus interface method to alloc the ivars (dinfo) for a device.
The ACPI and OFW PCI bus drivers as well as CardBus override this to allocate the larger ivars to hold additional info beyond the stock PCI ivars. This removes the need to pass the size to functions like pci_add_iov_child() and pci_read_device() simplifying IOV and bus rescanning implementations. As a result of this and earlier changes, the ACPI PCI bus driver no longer needs its own device_attach and pci_create_iov_child methods but can use the methods in the stock PCI bus driver instead. Differential Revision: https://reviews.freebsd.org/D5891
Notes
Notes: svn path=/head/; revision=298029
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index c829292f3916..8d9ea7ec02fb 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -209,7 +209,6 @@ typedef struct pcicfg {
uint8_t func; /* config space function number */
uint32_t flags; /* flags defined above */
- size_t devinfo_size; /* Size of devinfo for this bus type. */
struct pcicfg_bridge bridge; /* Bridges */
struct pcicfg_pp pp; /* Power management */