1 /* Generated by ./xlat/gen.sh from ./xlat/evdev_leds.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(LED_NUML) || (defined(HAVE_DECL_LED_NUML) && HAVE_DECL_LED_NUML) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((LED_NUML) == (0x00), "LED_NUML != 0x00"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define LED_NUML 0x00 12 #endif 13 #if defined(LED_CAPSL) || (defined(HAVE_DECL_LED_CAPSL) && HAVE_DECL_LED_CAPSL) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((LED_CAPSL) == (0x01), "LED_CAPSL != 0x01"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define LED_CAPSL 0x01 19 #endif 20 #if defined(LED_SCROLLL) || (defined(HAVE_DECL_LED_SCROLLL) && HAVE_DECL_LED_SCROLLL) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((LED_SCROLLL) == (0x02), "LED_SCROLLL != 0x02"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define LED_SCROLLL 0x02 26 #endif 27 #if defined(LED_COMPOSE) || (defined(HAVE_DECL_LED_COMPOSE) && HAVE_DECL_LED_COMPOSE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((LED_COMPOSE) == (0x03), "LED_COMPOSE != 0x03"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define LED_COMPOSE 0x03 33 #endif 34 #if defined(LED_KANA) || (defined(HAVE_DECL_LED_KANA) && HAVE_DECL_LED_KANA) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((LED_KANA) == (0x04), "LED_KANA != 0x04"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define LED_KANA 0x04 40 #endif 41 #if defined(LED_SLEEP) || (defined(HAVE_DECL_LED_SLEEP) && HAVE_DECL_LED_SLEEP) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((LED_SLEEP) == (0x05), "LED_SLEEP != 0x05"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define LED_SLEEP 0x05 47 #endif 48 #if defined(LED_SUSPEND) || (defined(HAVE_DECL_LED_SUSPEND) && HAVE_DECL_LED_SUSPEND) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((LED_SUSPEND) == (0x06), "LED_SUSPEND != 0x06"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define LED_SUSPEND 0x06 54 #endif 55 #if defined(LED_MUTE) || (defined(HAVE_DECL_LED_MUTE) && HAVE_DECL_LED_MUTE) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((LED_MUTE) == (0x07), "LED_MUTE != 0x07"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define LED_MUTE 0x07 61 #endif 62 #if defined(LED_MISC) || (defined(HAVE_DECL_LED_MISC) && HAVE_DECL_LED_MISC) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((LED_MISC) == (0x08), "LED_MISC != 0x08"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define LED_MISC 0x08 68 #endif 69 #if defined(LED_MAIL) || (defined(HAVE_DECL_LED_MAIL) && HAVE_DECL_LED_MAIL) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((LED_MAIL) == (0x09), "LED_MAIL != 0x09"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define LED_MAIL 0x09 75 #endif 76 #if defined(LED_CHARGING) || (defined(HAVE_DECL_LED_CHARGING) && HAVE_DECL_LED_CHARGING) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((LED_CHARGING) == (0x0a), "LED_CHARGING != 0x0a"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define LED_CHARGING 0x0a 82 #endif 83 84 #ifndef XLAT_MACROS_ONLY 85 86 # ifdef IN_MPERS 87 88 # error static const struct xlat evdev_leds in mpers mode 89 90 # else 91 92 static 93 const struct xlat evdev_leds[] = { 94 [LED_NUML] = XLAT(LED_NUML), 95 [LED_CAPSL] = XLAT(LED_CAPSL), 96 [LED_SCROLLL] = XLAT(LED_SCROLLL), 97 [LED_COMPOSE] = XLAT(LED_COMPOSE), 98 [LED_KANA] = XLAT(LED_KANA), 99 [LED_SLEEP] = XLAT(LED_SLEEP), 100 [LED_SUSPEND] = XLAT(LED_SUSPEND), 101 [LED_MUTE] = XLAT(LED_MUTE), 102 [LED_MISC] = XLAT(LED_MISC), 103 [LED_MAIL] = XLAT(LED_MAIL), 104 [LED_CHARGING] = XLAT(LED_CHARGING), 105 XLAT_END 106 }; 107 108 # endif /* !IN_MPERS */ 109 110 #endif /* !XLAT_MACROS_ONLY */ 111