From cfc23ad40cca2166b29079ce08e4e68a9039a04a Mon Sep 17 00:00:00 2001 From: Stefan Eßer 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') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index d8b134c6cf841..a1b295b6c64cd 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.3