diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:40:18 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:40:18 +0000 |
commit | 6de774d6cba7e3cd5ab65ca8bd33d4e854d185ac (patch) | |
tree | e947e412c38cb1b45d34a5c858acb00564f371df /sys/dev/pci/pcivar.h | |
parent | f8eb256c65fe796edfbbb90ae32c5502ca585795 (diff) |
Add a simplistic table driven lookup routine and use it where appropriate.
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r-- | sys/dev/pci/pcivar.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h index dc68945d121..b3682aa6f1b 100644 --- a/sys/dev/pci/pcivar.h +++ b/sys/dev/pci/pcivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcivar.h,v 1.25 2002/07/12 20:17:03 mickey Exp $ */ +/* $OpenBSD: pcivar.h,v 1.26 2002/11/19 18:40:17 jason Exp $ */ /* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */ /* @@ -182,6 +182,13 @@ int pci_mem_find(pci_chipset_tag_t, pcitag_t, int, bus_addr_t *, int pci_get_capability(pci_chipset_tag_t, pcitag_t, int, int *, pcireg_t *); +struct pci_matchid { + pci_vendor_id_t pm_vid; + pci_product_id_t pm_pid; +}; + +int pci_matchbyid(struct pci_attach_args *, const struct pci_matchid *, int); + /* * Helper functions for autoconfiguration. */ |