1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/kd_default_led_flags.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #undef XLAT_PREV_VAL
7
8 #ifndef XLAT_MACROS_ONLY
9
10 # ifdef IN_MPERS
11
12 # error static const struct xlat kd_default_led_flags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data kd_default_led_flags_xdata[] = {
18 XLAT(LED_SCR),
19 #define XLAT_VAL_0 ((unsigned) (LED_SCR))
20 #define XLAT_STR_0 STRINGIFY(LED_SCR)
21 XLAT(LED_NUM),
22 #define XLAT_VAL_1 ((unsigned) (LED_NUM))
23 #define XLAT_STR_1 STRINGIFY(LED_NUM)
24 XLAT(LED_CAP),
25 #define XLAT_VAL_2 ((unsigned) (LED_CAP))
26 #define XLAT_STR_2 STRINGIFY(LED_CAP)
27 XLAT(LED_SCR<<4),
28 #define XLAT_VAL_3 ((unsigned) (LED_SCR<<4))
29 #define XLAT_STR_3 STRINGIFY(LED_SCR<<4)
30 XLAT(LED_NUM<<4),
31 #define XLAT_VAL_4 ((unsigned) (LED_NUM<<4))
32 #define XLAT_STR_4 STRINGIFY(LED_NUM<<4)
33 XLAT(LED_CAP<<4),
34 #define XLAT_VAL_5 ((unsigned) (LED_CAP<<4))
35 #define XLAT_STR_5 STRINGIFY(LED_CAP<<4)
36 };
37 static
38 const struct xlat kd_default_led_flags[1] = { {
39 .data = kd_default_led_flags_xdata,
40 .size = ARRAY_SIZE(kd_default_led_flags_xdata),
41 .type = XT_NORMAL,
42 .flags_mask = 0
43 # ifdef XLAT_VAL_0
44 | XLAT_VAL_0
45 # endif
46 # ifdef XLAT_VAL_1
47 | XLAT_VAL_1
48 # endif
49 # ifdef XLAT_VAL_2
50 | XLAT_VAL_2
51 # endif
52 # ifdef XLAT_VAL_3
53 | XLAT_VAL_3
54 # endif
55 # ifdef XLAT_VAL_4
56 | XLAT_VAL_4
57 # endif
58 # ifdef XLAT_VAL_5
59 | XLAT_VAL_5
60 # endif
61 ,
62 .flags_strsz = 0
63 # ifdef XLAT_STR_0
64 + sizeof(XLAT_STR_0)
65 # endif
66 # ifdef XLAT_STR_1
67 + sizeof(XLAT_STR_1)
68 # endif
69 # ifdef XLAT_STR_2
70 + sizeof(XLAT_STR_2)
71 # endif
72 # ifdef XLAT_STR_3
73 + sizeof(XLAT_STR_3)
74 # endif
75 # ifdef XLAT_STR_4
76 + sizeof(XLAT_STR_4)
77 # endif
78 # ifdef XLAT_STR_5
79 + sizeof(XLAT_STR_5)
80 # endif
81 ,
82 } };
83 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
84
85 # undef XLAT_STR_0
86 # undef XLAT_VAL_0
87 # undef XLAT_STR_1
88 # undef XLAT_VAL_1
89 # undef XLAT_STR_2
90 # undef XLAT_VAL_2
91 # undef XLAT_STR_3
92 # undef XLAT_VAL_3
93 # undef XLAT_STR_4
94 # undef XLAT_VAL_4
95 # undef XLAT_STR_5
96 # undef XLAT_VAL_5
97 # endif /* !IN_MPERS */
98
99 #endif /* !XLAT_MACROS_ONLY */