aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pci_private.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-01-20 22:00:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-01-20 22:00:50 +0000
commit5aa58b3e8fc5d1bdc1d58bbce8a2eebb4a8ae7b6 (patch)
tree67aedc20f08bc676c331b82673a4e0a3508fc0e6 /sys/dev/pci/pci_private.h
parent267ec43593e9197b42f841ebb466538079bd06b8 (diff)
downloadsrc-5aa58b3e8fc5d1bdc1d58bbce8a2eebb4a8ae7b6.tar.gz
src-5aa58b3e8fc5d1bdc1d58bbce8a2eebb4a8ae7b6.zip
Make the 'pci_devclass' pointer variable private (drivers really shouldn't
share devclass pointers, a mistake I've encouraged in the past) and move the declaration of the pci_driver kobj class from cardbus.c to pci_private.h so that other drivers can inherit from pci_driver.
Notes
Notes: svn path=/head/; revision=154599
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r--sys/dev/pci/pci_private.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index 06beee96c14d..b6bbaa0633d7 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -34,10 +34,9 @@
/*
* Export definitions of the pci bus so that we can more easily share
- * it with "subclass" busses. A more generic subclassing mechanism would
- * be nice, but is not present in the tree at this time.
+ * it with "subclass" busses.
*/
-extern devclass_t pci_devclass;
+DECLARE_CLASS(pci_driver);
void pci_add_children(device_t dev, int busno, size_t dinfo_size);
void pci_add_child(device_t bus, struct pci_devinfo *dinfo);