diff options
| author | Stefan Eßer <se@FreeBSD.org> | 1997-02-04 18:31:57 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 1997-02-04 18:31:57 +0000 |
| commit | cfc23ad40cca2166b29079ce08e4e68a9039a04a (patch) | |
| tree | 21f3dc3d7bac66f209216e65c8cc5b87f02acc59 /sys | |
| parent | f2071a9cf6d4365ed4b1d30f216acd6cad27ebf0 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/pci/pci.c | 6 | ||||
| -rw-r--r-- | sys/pci/pci.c | 6 | ||||
| -rw-r--r-- | sys/pci/pcibus.h | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index d8b134c6cf84..a1b295b6c64c 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; } diff --git a/sys/pci/pci.c b/sys/pci/pci.c index d8b134c6cf84..a1b295b6c64c 100644 --- a/sys/pci/pci.c +++ b/sys/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; } diff --git a/sys/pci/pcibus.h b/sys/pci/pcibus.h index aa3c46a32ac1..3ff820577aa4 100644 --- a/sys/pci/pcibus.h +++ b/sys/pci/pcibus.h @@ -94,6 +94,6 @@ struct pcibus { extern struct linker_set pcibus_set; -int pci_register_lkm (struct pci_device *dvp); +int pci_register_lkm (struct pci_device *dvp, int if_revision); #endif |
