1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/s390_guarded_storage_commands.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #if defined(GS_ENABLE) || (defined(HAVE_DECL_GS_ENABLE) && HAVE_DECL_GS_ENABLE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((GS_ENABLE) == (0), "GS_ENABLE != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define GS_ENABLE 0
12 #endif
13 #if defined(GS_DISABLE) || (defined(HAVE_DECL_GS_DISABLE) && HAVE_DECL_GS_DISABLE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((GS_DISABLE) == (1), "GS_DISABLE != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define GS_DISABLE 1
19 #endif
20 #if defined(GS_SET_BC_CB) || (defined(HAVE_DECL_GS_SET_BC_CB) && HAVE_DECL_GS_SET_BC_CB)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((GS_SET_BC_CB) == (2), "GS_SET_BC_CB != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define GS_SET_BC_CB 2
26 #endif
27 #if defined(GS_CLEAR_BC_CB) || (defined(HAVE_DECL_GS_CLEAR_BC_CB) && HAVE_DECL_GS_CLEAR_BC_CB)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((GS_CLEAR_BC_CB) == (3), "GS_CLEAR_BC_CB != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define GS_CLEAR_BC_CB 3
33 #endif
34 #if defined(GS_BROADCAST) || (defined(HAVE_DECL_GS_BROADCAST) && HAVE_DECL_GS_BROADCAST)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((GS_BROADCAST) == (4), "GS_BROADCAST != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define GS_BROADCAST 4
40 #endif
41 #undef XLAT_PREV_VAL
42
43 #ifndef XLAT_MACROS_ONLY
44
45 # ifdef IN_MPERS
46
47 # error static const struct xlat s390_guarded_storage_commands in mpers mode
48
49 # else
50
51 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
52 static const struct xlat_data s390_guarded_storage_commands_xdata[] = {
53 [GS_ENABLE] = XLAT(GS_ENABLE),
54 #define XLAT_VAL_0 ((unsigned) (GS_ENABLE))
55 #define XLAT_STR_0 STRINGIFY(GS_ENABLE)
56 [GS_DISABLE] = XLAT(GS_DISABLE),
57 #define XLAT_VAL_1 ((unsigned) (GS_DISABLE))
58 #define XLAT_STR_1 STRINGIFY(GS_DISABLE)
59 [GS_SET_BC_CB] = XLAT(GS_SET_BC_CB),
60 #define XLAT_VAL_2 ((unsigned) (GS_SET_BC_CB))
61 #define XLAT_STR_2 STRINGIFY(GS_SET_BC_CB)
62 [GS_CLEAR_BC_CB] = XLAT(GS_CLEAR_BC_CB),
63 #define XLAT_VAL_3 ((unsigned) (GS_CLEAR_BC_CB))
64 #define XLAT_STR_3 STRINGIFY(GS_CLEAR_BC_CB)
65 [GS_BROADCAST] = XLAT(GS_BROADCAST),
66 #define XLAT_VAL_4 ((unsigned) (GS_BROADCAST))
67 #define XLAT_STR_4 STRINGIFY(GS_BROADCAST)
68 };
69 static
70 const struct xlat s390_guarded_storage_commands[1] = { {
71 .data = s390_guarded_storage_commands_xdata,
72 .size = ARRAY_SIZE(s390_guarded_storage_commands_xdata),
73 .type = XT_INDEXED,
74 .flags_mask = 0
75 # ifdef XLAT_VAL_0
76 | XLAT_VAL_0
77 # endif
78 # ifdef XLAT_VAL_1
79 | XLAT_VAL_1
80 # endif
81 # ifdef XLAT_VAL_2
82 | XLAT_VAL_2
83 # endif
84 # ifdef XLAT_VAL_3
85 | XLAT_VAL_3
86 # endif
87 # ifdef XLAT_VAL_4
88 | XLAT_VAL_4
89 # endif
90 ,
91 .flags_strsz = 0
92 # ifdef XLAT_STR_0
93 + sizeof(XLAT_STR_0)
94 # endif
95 # ifdef XLAT_STR_1
96 + sizeof(XLAT_STR_1)
97 # endif
98 # ifdef XLAT_STR_2
99 + sizeof(XLAT_STR_2)
100 # endif
101 # ifdef XLAT_STR_3
102 + sizeof(XLAT_STR_3)
103 # endif
104 # ifdef XLAT_STR_4
105 + sizeof(XLAT_STR_4)
106 # endif
107 ,
108 } };
109 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
110
111 # undef XLAT_STR_0
112 # undef XLAT_VAL_0
113 # undef XLAT_STR_1
114 # undef XLAT_VAL_1
115 # undef XLAT_STR_2
116 # undef XLAT_VAL_2
117 # undef XLAT_STR_3
118 # undef XLAT_VAL_3
119 # undef XLAT_STR_4
120 # undef XLAT_VAL_4
121 # endif /* !IN_MPERS */
122
123 #endif /* !XLAT_MACROS_ONLY */