From c52e299dad8bf0576ad0e7eb4f0dac753626c698 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 9 May 2005 00:38:58 +0000 Subject: add cardbus_matchbyid(), mimics the PCI layers pci_matchbyid(). --- sys/dev/cardbus/cardbusvar.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/dev/cardbus/cardbusvar.h') 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) -- cgit v1.2.3