1 /* Generated by ./xlat/gen.sh from ./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 42 #ifndef XLAT_MACROS_ONLY 43 44 # ifdef IN_MPERS 45 46 # error static const struct xlat s390_guarded_storage_commands in mpers mode 47 48 # else 49 50 static 51 const struct xlat s390_guarded_storage_commands[] = { 52 XLAT(GS_ENABLE), 53 XLAT(GS_DISABLE), 54 XLAT(GS_SET_BC_CB), 55 XLAT(GS_CLEAR_BC_CB), 56 XLAT(GS_BROADCAST), 57 XLAT_END 58 }; 59 60 # endif /* !IN_MPERS */ 61 62 #endif /* !XLAT_MACROS_ONLY */ 63