1 /* Generated by ./xlat/gen.sh from ./xlat/evdev_misc.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(MSC_SERIAL) || (defined(HAVE_DECL_MSC_SERIAL) && HAVE_DECL_MSC_SERIAL)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((MSC_SERIAL) == (0x00), "MSC_SERIAL != 0x00");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define MSC_SERIAL 0x00
12 #endif
13 #if defined(MSC_PULSELED) || (defined(HAVE_DECL_MSC_PULSELED) && HAVE_DECL_MSC_PULSELED)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((MSC_PULSELED) == (0x01), "MSC_PULSELED != 0x01");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define MSC_PULSELED 0x01
19 #endif
20 #if defined(MSC_GESTURE) || (defined(HAVE_DECL_MSC_GESTURE) && HAVE_DECL_MSC_GESTURE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((MSC_GESTURE) == (0x02), "MSC_GESTURE != 0x02");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define MSC_GESTURE 0x02
26 #endif
27 #if defined(MSC_RAW) || (defined(HAVE_DECL_MSC_RAW) && HAVE_DECL_MSC_RAW)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((MSC_RAW) == (0x03), "MSC_RAW != 0x03");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define MSC_RAW 0x03
33 #endif
34 #if defined(MSC_SCAN) || (defined(HAVE_DECL_MSC_SCAN) && HAVE_DECL_MSC_SCAN)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((MSC_SCAN) == (0x04), "MSC_SCAN != 0x04");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define MSC_SCAN 0x04
40 #endif
41 #if defined(MSC_TIMESTAMP) || (defined(HAVE_DECL_MSC_TIMESTAMP) && HAVE_DECL_MSC_TIMESTAMP)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((MSC_TIMESTAMP) == (0x05), "MSC_TIMESTAMP != 0x05");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define MSC_TIMESTAMP 0x05
47 #endif
48 
49 #ifndef XLAT_MACROS_ONLY
50 
51 # ifdef IN_MPERS
52 
53 #  error static const struct xlat evdev_misc in mpers mode
54 
55 # else
56 
57 static
58 const struct xlat evdev_misc[] = {
59  [MSC_SERIAL] = XLAT(MSC_SERIAL),
60  [MSC_PULSELED] = XLAT(MSC_PULSELED),
61  [MSC_GESTURE] = XLAT(MSC_GESTURE),
62  [MSC_RAW] = XLAT(MSC_RAW),
63  [MSC_SCAN] = XLAT(MSC_SCAN),
64  [MSC_TIMESTAMP] = XLAT(MSC_TIMESTAMP),
65  XLAT_END
66 };
67 
68 # endif /* !IN_MPERS */
69 
70 #endif /* !XLAT_MACROS_ONLY */
71