From 9b86dcdae7ec5b0323bd5b2ee29c0945adc91404 Mon Sep 17 00:00:00 2001 From: se Date: Tue, 4 Feb 1997 18:31:57 +0000 Subject: 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. --- sys/dev/pci/pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/pci.c') 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; } -- cgit v1.1