summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1997-02-04 18:31:57 +0000
committerse <se@FreeBSD.org>1997-02-04 18:31:57 +0000
commit9b86dcdae7ec5b0323bd5b2ee29c0945adc91404 (patch)
tree21f3dc3d7bac66f209216e65c8cc5b87f02acc59 /sys/dev
parentffd9cd487afa1475f6482b10655d0e9f20a5adb9 (diff)
downloadFreeBSD-src-9b86dcdae7ec5b0323bd5b2ee29c0945adc91404.zip
FreeBSD-src-9b86dcdae7ec5b0323bd5b2ee29c0945adc91404.tar.gz
Add interface revision field to pci_register_lkm parameter list.pci.c pcibus.h
This parameter is intended to allow new kernels to work with old LKM binaries, provided the revision ID is incremented whenever the PCI LKM interface is changed. The revision ID does not at all protect against changes in data structures accesses by the driver.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index d8b134c..a1b295b 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -953,10 +953,14 @@ static void pci_rescan()
**========================================================
*/
-int pci_register_lkm (struct pci_device *dvp)
+int pci_register_lkm (struct pci_device *dvp, int if_revision)
{
struct pci_lkm *lkm;
+ if (if_version != 0) {
+ return -1;
+ }
+
if (!dvp || !dvp->pd_probe || !dvp->pd_attach) {
return -1;
}
OpenPOWER on IntegriCloud