Skip to content

Commit

Permalink
[PATCH] pcmcia: Add macro to match PCMCIA cards by numeric ID and fir…
Browse files Browse the repository at this point in the history
…st vendor string

This is needed to distinguish Intersil and non-Intersil cards with
numeric ID 0x0156, 0x0002.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Pavel Roskin authored and Dominik Brodowski committed Mar 1, 2006
1 parent 4293565 commit f0892b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/pcmcia/device_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@
.prod_id = { (v1), (v2), (v3), (v4) }, \
.prod_id_hash = { (vh1), (vh2), (vh3), (vh4) }, }

#define PCMCIA_DEVICE_MANF_CARD_PROD_ID1(manf, card, v1, vh1) { \
.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
PCMCIA_DEV_ID_MATCH_CARD_ID| \
PCMCIA_DEV_ID_MATCH_PROD_ID1, \
.manf_id = (manf), \
.card_id = (card), \
.prod_id = { (v1), NULL, NULL, NULL }, \
.prod_id_hash = { (vh1), 0, 0, 0 }, }


/* multi-function devices */

Expand Down

0 comments on commit f0892b8

Please sign in to comment.