1 /* Generated by ./xlat/gen.sh from ./xlat/sock_llc_options.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(LLC_OPT_UNKNOWN) || (defined(HAVE_DECL_LLC_OPT_UNKNOWN) && HAVE_DECL_LLC_OPT_UNKNOWN) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((LLC_OPT_UNKNOWN) == (0), "LLC_OPT_UNKNOWN != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define LLC_OPT_UNKNOWN 0 12 #endif 13 #if defined(LLC_OPT_RETRY) || (defined(HAVE_DECL_LLC_OPT_RETRY) && HAVE_DECL_LLC_OPT_RETRY) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((LLC_OPT_RETRY) == (1), "LLC_OPT_RETRY != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define LLC_OPT_RETRY 1 19 #endif 20 #if defined(LLC_OPT_SIZE) || (defined(HAVE_DECL_LLC_OPT_SIZE) && HAVE_DECL_LLC_OPT_SIZE) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((LLC_OPT_SIZE) == (2), "LLC_OPT_SIZE != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define LLC_OPT_SIZE 2 26 #endif 27 #if defined(LLC_OPT_ACK_TMR_EXP) || (defined(HAVE_DECL_LLC_OPT_ACK_TMR_EXP) && HAVE_DECL_LLC_OPT_ACK_TMR_EXP) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((LLC_OPT_ACK_TMR_EXP) == (3), "LLC_OPT_ACK_TMR_EXP != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define LLC_OPT_ACK_TMR_EXP 3 33 #endif 34 #if defined(LLC_OPT_P_TMR_EXP) || (defined(HAVE_DECL_LLC_OPT_P_TMR_EXP) && HAVE_DECL_LLC_OPT_P_TMR_EXP) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((LLC_OPT_P_TMR_EXP) == (4), "LLC_OPT_P_TMR_EXP != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define LLC_OPT_P_TMR_EXP 4 40 #endif 41 #if defined(LLC_OPT_REJ_TMR_EXP) || (defined(HAVE_DECL_LLC_OPT_REJ_TMR_EXP) && HAVE_DECL_LLC_OPT_REJ_TMR_EXP) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((LLC_OPT_REJ_TMR_EXP) == (5), "LLC_OPT_REJ_TMR_EXP != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define LLC_OPT_REJ_TMR_EXP 5 47 #endif 48 #if defined(LLC_OPT_BUSY_TMR_EXP) || (defined(HAVE_DECL_LLC_OPT_BUSY_TMR_EXP) && HAVE_DECL_LLC_OPT_BUSY_TMR_EXP) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((LLC_OPT_BUSY_TMR_EXP) == (6), "LLC_OPT_BUSY_TMR_EXP != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define LLC_OPT_BUSY_TMR_EXP 6 54 #endif 55 #if defined(LLC_OPT_TX_WIN) || (defined(HAVE_DECL_LLC_OPT_TX_WIN) && HAVE_DECL_LLC_OPT_TX_WIN) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((LLC_OPT_TX_WIN) == (7), "LLC_OPT_TX_WIN != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define LLC_OPT_TX_WIN 7 61 #endif 62 #if defined(LLC_OPT_RX_WIN) || (defined(HAVE_DECL_LLC_OPT_RX_WIN) && HAVE_DECL_LLC_OPT_RX_WIN) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((LLC_OPT_RX_WIN) == (8), "LLC_OPT_RX_WIN != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define LLC_OPT_RX_WIN 8 68 #endif 69 #if defined(LLC_OPT_PKTINFO) || (defined(HAVE_DECL_LLC_OPT_PKTINFO) && HAVE_DECL_LLC_OPT_PKTINFO) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((LLC_OPT_PKTINFO) == (9), "LLC_OPT_PKTINFO != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define LLC_OPT_PKTINFO 9 75 #endif 76 77 #ifndef XLAT_MACROS_ONLY 78 79 # ifdef IN_MPERS 80 81 # error static const struct xlat sock_llc_options in mpers mode 82 83 # else 84 85 static 86 const struct xlat sock_llc_options[] = { 87 [LLC_OPT_UNKNOWN] = XLAT(LLC_OPT_UNKNOWN), 88 [LLC_OPT_RETRY] = XLAT(LLC_OPT_RETRY), 89 [LLC_OPT_SIZE] = XLAT(LLC_OPT_SIZE), 90 [LLC_OPT_ACK_TMR_EXP] = XLAT(LLC_OPT_ACK_TMR_EXP), 91 [LLC_OPT_P_TMR_EXP] = XLAT(LLC_OPT_P_TMR_EXP), 92 [LLC_OPT_REJ_TMR_EXP] = XLAT(LLC_OPT_REJ_TMR_EXP), 93 [LLC_OPT_BUSY_TMR_EXP] = XLAT(LLC_OPT_BUSY_TMR_EXP), 94 [LLC_OPT_TX_WIN] = XLAT(LLC_OPT_TX_WIN), 95 [LLC_OPT_RX_WIN] = XLAT(LLC_OPT_RX_WIN), 96 [LLC_OPT_PKTINFO] = XLAT(LLC_OPT_PKTINFO), 97 XLAT_END 98 }; 99 100 # endif /* !IN_MPERS */ 101 102 #endif /* !XLAT_MACROS_ONLY */ 103