v2.4.8 -> v2.4.8.1
[opensuse:kernel.git] / drivers / ieee1394 / ieee1394_hotplug.h
1 #ifndef _IEEE1394_HOTPLUG_H
2 #define _IEEE1394_HOTPLUG_H
3
4 #include "ieee1394_core.h"
5
6 #define IEEE1394_DEVICE_ID_MATCH_VENDOR_ID              0x0001
7 #define IEEE1394_DEVICE_ID_MATCH_MODEL_ID               0x0002
8 #define IEEE1394_DEVICE_ID_MATCH_SW_SPECIFIER_ID        0x0004
9 #define IEEE1394_DEVICE_ID_MATCH_SW_SPECIFIER_VERSION   0x0008
10
11 struct ieee1394_device_id {
12         u32 match_flags;
13         u32 vendor_id;
14         u32 model_id;
15         u32 sw_specifier_id;
16         u32 sw_specifier_version;
17 };
18
19 #define IEEE1394_PROTOCOL(id, version) {                                       \
20         match_flags:            IEEE1394_DEVICE_ID_MATCH_SW_SPECIFIER_ID |     \
21                                 IEEE1394_DEVICE_ID_MATCH_SW_SPECIFIER_VERSION, \
22         sw_specifier_id:        id,                                            \
23         sw_specifier_version:   version                                        \
24 }
25
26 #define IEEE1394_DEVICE(vendor_id, model_id) {                  \
27         match_flags:    IEEE1394_DEVICE_ID_MATCH_VENDOR_ID |    \
28                         IEEE1394_DEVICE_ID_MATCH_MODEL_ID,      \
29         vendor_id:      vendor_id,                              \
30         model_id:       vendor_id,                              \
31 }
32
33 #endif /* _IEEE1394_HOTPLUG_H */