]> git.ipfire.org Git - ipfire-2.x.git/blob - src/hwinfo/src/hd/hddb_int.h
Signierten GPG-Schluessel importiert.
[ipfire-2.x.git] / src / hwinfo / src / hd / hddb_int.h
1 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 *
3 * type defs for internal data base
4 *
5 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
6
7 #define DATA_VALUE(a) ((a) & ~(-1 << 28))
8 #define DATA_FLAG(a) (((a) >> 28) & 0xf)
9 #define MAKE_DATA(a, b) ((a << 28) | (b))
10
11 #define FLAG_ID 0
12 #define FLAG_RANGE 1
13 #define FLAG_MASK 2
14 #define FLAG_STRING 3
15 #define FLAG_REGEXP 4
16 /* 5 - 7 reserved */
17 #define FLAG_CONT 8 /* bit mask, _must_ be bit 31 */
18
19
20 typedef enum hddb_entry_e {
21 he_other, he_bus_id, he_baseclass_id, he_subclass_id, he_progif_id,
22 he_vendor_id, he_device_id, he_subvendor_id, he_subdevice_id, he_rev_id,
23 he_bus_name, he_baseclass_name, he_subclass_name, he_progif_name,
24 he_vendor_name, he_device_name, he_subvendor_name, he_subdevice_name,
25 he_rev_name, he_serial, he_driver, he_requires /* 21 */,
26
27 he_detail_ccw_data_cu_model,
28 /* add new entries _here_! */
29
30 he_nomask,
31
32 /* if he_nomask exceeds 31, adjust entry_mask_t & hddb_entry_mask_t */
33
34 he_class_id = he_nomask, he_driver_module_insmod, he_driver_module_modprobe,
35 he_driver_module_config, he_driver_xfree, he_driver_xfree_config,
36 he_driver_mouse, he_driver_display, he_driver_any
37 } hddb_entry_t;
38
39 static hddb_entry_t hddb_is_numeric[] = {
40 he_bus_id, he_baseclass_id, he_subclass_id, he_progif_id, he_vendor_id,
41 he_device_id, he_subvendor_id, he_subdevice_id, he_rev_id, he_detail_ccw_data_cu_model
42 };
43
44 static char *hddb_entry_strings[] = {
45 "other", "bus.id", "baseclass.id", "subclass.id", "progif.id",
46 "vendor.id", "device.id", "subvendor.id", "subdevice.id", "rev.id",
47 "bus.name", "baseclass.name", "subclass.name", "progif.name",
48 "vendor.name", "device.name", "subvendor.name", "subdevice.name",
49 "rev.name", "serial", "driver", "requires",
50 "detail.ccw.data.cu_model",
51 "class.id", "driver.module.insmod", "driver.module.modprobe",
52 "driver.module.config", "driver.xfree", "driver.xfree.config",
53 "driver.mouse", "driver.display", "driver.any"
54 };
55