aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-06-27 19:28:06 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 21:03:06 -0400
commit1ad275e3e7d253d44f03868e85977c908e334fed (patch)
tree82f0a1fc070f32c015be14596c50c681d90d4c1a /include/linux/mod_devicetable.h
parent3ee13937525f6044d769b1a84d5db5669ac1959e (diff)
[PATCH] pcmcia: device and driver matching
The actual matching of pcmcia drivers and pcmcia devices. The original version of this was written by David Woodhouse. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index d6eb7b2efc04..e9651cd8310c 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -175,4 +175,37 @@ struct serio_device_id {
175}; 175};
176 176
177 177
178/* PCMCIA */
179
180struct pcmcia_device_id {
181 __u16 match_flags;
182
183 __u16 manf_id;
184 __u16 card_id;
185
186 __u8 func_id;
187
188 /* for real multi-function devices */
189 __u8 function;
190
191 /* for pseude multi-function devices */
192 __u8 device_no;
193
194 const char * prod_id[4];
195 __u32 prod_id_hash[4];
196
197 /* not matched against */
198 kernel_ulong_t driver_info;
199};
200
201#define PCMCIA_DEV_ID_MATCH_MANF_ID 0x0001
202#define PCMCIA_DEV_ID_MATCH_CARD_ID 0x0002
203#define PCMCIA_DEV_ID_MATCH_FUNC_ID 0x0004
204#define PCMCIA_DEV_ID_MATCH_FUNCTION 0x0008
205#define PCMCIA_DEV_ID_MATCH_PROD_ID1 0x0010
206#define PCMCIA_DEV_ID_MATCH_PROD_ID2 0x0020
207#define PCMCIA_DEV_ID_MATCH_PROD_ID3 0x0040
208#define PCMCIA_DEV_ID_MATCH_PROD_ID4 0x0080
209#define PCMCIA_DEV_ID_MATCH_DEVICE_NO 0x0100
210
178#endif /* LINUX_MOD_DEVICETABLE_H */ 211#endif /* LINUX_MOD_DEVICETABLE_H */