aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-08-29 16:12:36 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-08-29 16:12:36 -0400
commit2fca877b68b2b4fc5b94277858a1bedd46017cde (patch)
treefd02725406299ba2f26354463b3c261721e9eb6b /include/linux/mod_devicetable.h
parentff40c6d3d1437ecdf295b8e39adcb06c3d6021ef (diff)
parent02b3e4e2d71b6058ec11cc01c72ac651eb3ded2b (diff)
/spare/repo/libata-dev branch 'v2.6.13'
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index d6eb7b2efc..dce53ac162 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -174,5 +174,62 @@ struct serio_device_id {
174 __u8 proto; 174 __u8 proto;
175}; 175};
176 176
177/*
178 * Struct used for matching a device
179 */
180struct of_device_id
181{
182 char name[32];
183 char type[32];
184 char compatible[128];
185 void *data;
186};
187
188
189/* PCMCIA */
190
191struct pcmcia_device_id {
192 __u16 match_flags;
193
194 __u16 manf_id;
195 __u16 card_id;
196
197 __u8 func_id;
198
199 /* for real multi-function devices */
200 __u8 function;
201
202 /* for pseude multi-function devices */
203 __u8 device_no;
204
205 __u32 prod_id_hash[4];
206
207 /* not matched against in kernelspace*/
208#ifdef __KERNEL__
209 const char * prod_id[4];
210#else
211 kernel_ulong_t prod_id[4];
212#endif
213
214 /* not matched against */
215 kernel_ulong_t driver_info;
216#ifdef __KERNEL__
217 char * cisfile;
218#else
219 kernel_ulong_t cisfile;
220#endif
221};
222
223#define PCMCIA_DEV_ID_MATCH_MANF_ID 0x0001
224#define PCMCIA_DEV_ID_MATCH_CARD_ID 0x0002
225#define PCMCIA_DEV_ID_MATCH_FUNC_ID 0x0004
226#define PCMCIA_DEV_ID_MATCH_FUNCTION 0x0008
227#define PCMCIA_DEV_ID_MATCH_PROD_ID1 0x0010
228#define PCMCIA_DEV_ID_MATCH_PROD_ID2 0x0020
229#define PCMCIA_DEV_ID_MATCH_PROD_ID3 0x0040
230#define PCMCIA_DEV_ID_MATCH_PROD_ID4 0x0080
231#define PCMCIA_DEV_ID_MATCH_DEVICE_NO 0x0100
232#define PCMCIA_DEV_ID_MATCH_FAKE_CIS 0x0200
233#define PCMCIA_DEV_ID_MATCH_ANONYMOUS 0x0400
177 234
178#endif /* LINUX_MOD_DEVICETABLE_H */ 235#endif /* LINUX_MOD_DEVICETABLE_H */