diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-05-09 00:38:58 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-05-09 00:38:58 +0000 |
commit | c52e299dad8bf0576ad0e7eb4f0dac753626c698 (patch) | |
tree | 379e70a858cdf6d30bb792ea531d510d2f352cde /sys/dev/cardbus/cardbusvar.h | |
parent | 2865e342ad3ac344313e0034630a37623fb3b156 (diff) |
add cardbus_matchbyid(), mimics the PCI layers pci_matchbyid().
Diffstat (limited to 'sys/dev/cardbus/cardbusvar.h')
-rw-r--r-- | sys/dev/cardbus/cardbusvar.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/cardbus/cardbusvar.h b/sys/dev/cardbus/cardbusvar.h index b2362ccbe59..831268b2ddb 100644 --- a/sys/dev/cardbus/cardbusvar.h +++ b/sys/dev/cardbus/cardbusvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cardbusvar.h,v 1.6 2002/03/14 03:16:04 millert Exp $ */ +/* $OpenBSD: cardbusvar.h,v 1.7 2005/05/09 00:38:57 brad Exp $ */ /* $NetBSD: cardbusvar.h,v 1.17 2000/04/02 19:11:37 mycroft Exp $ */ /* @@ -430,6 +430,13 @@ int cardbus_function_disable(struct cardbus_softc *, int function); int cardbus_get_capability(cardbus_chipset_tag_t, cardbus_function_tag_t, cardbustag_t, int, int *, cardbusreg_t *); +struct cardbus_matchid { + cardbus_vendor_id_t cm_vid; + cardbus_product_id_t cm_pid; +}; + +int cardbus_matchbyid(struct cardbus_attach_args *, const struct cardbus_matchid *, int); + #define Cardbus_function_enable(ct) cardbus_function_enable((ct)->ct_sc, (ct)->ct_func) #define Cardbus_function_disable(ct) cardbus_function_disable((ct)->ct_sc, (ct)->ct_func) |