1 /* Generated by ./xlat/gen.sh from ./xlat/evdev_ev.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(EV_SYN) || (defined(HAVE_DECL_EV_SYN) && HAVE_DECL_EV_SYN) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((EV_SYN) == (0x00), "EV_SYN != 0x00"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define EV_SYN 0x00 12 #endif 13 #if defined(EV_KEY) || (defined(HAVE_DECL_EV_KEY) && HAVE_DECL_EV_KEY) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((EV_KEY) == (0x01), "EV_KEY != 0x01"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define EV_KEY 0x01 19 #endif 20 #if defined(EV_REL) || (defined(HAVE_DECL_EV_REL) && HAVE_DECL_EV_REL) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((EV_REL) == (0x02), "EV_REL != 0x02"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define EV_REL 0x02 26 #endif 27 #if defined(EV_ABS) || (defined(HAVE_DECL_EV_ABS) && HAVE_DECL_EV_ABS) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((EV_ABS) == (0x03), "EV_ABS != 0x03"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define EV_ABS 0x03 33 #endif 34 #if defined(EV_MSC) || (defined(HAVE_DECL_EV_MSC) && HAVE_DECL_EV_MSC) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((EV_MSC) == (0x04), "EV_MSC != 0x04"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define EV_MSC 0x04 40 #endif 41 #if defined(EV_SW) || (defined(HAVE_DECL_EV_SW) && HAVE_DECL_EV_SW) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((EV_SW) == (0x05), "EV_SW != 0x05"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define EV_SW 0x05 47 #endif 48 #if defined(EV_LED) || (defined(HAVE_DECL_EV_LED) && HAVE_DECL_EV_LED) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((EV_LED) == (0x11), "EV_LED != 0x11"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define EV_LED 0x11 54 #endif 55 #if defined(EV_SND) || (defined(HAVE_DECL_EV_SND) && HAVE_DECL_EV_SND) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((EV_SND) == (0x12), "EV_SND != 0x12"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define EV_SND 0x12 61 #endif 62 #if defined(EV_REP) || (defined(HAVE_DECL_EV_REP) && HAVE_DECL_EV_REP) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((EV_REP) == (0x14), "EV_REP != 0x14"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define EV_REP 0x14 68 #endif 69 #if defined(EV_FF) || (defined(HAVE_DECL_EV_FF) && HAVE_DECL_EV_FF) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((EV_FF) == (0x15), "EV_FF != 0x15"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define EV_FF 0x15 75 #endif 76 #if defined(EV_PWR) || (defined(HAVE_DECL_EV_PWR) && HAVE_DECL_EV_PWR) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((EV_PWR) == (0x16), "EV_PWR != 0x16"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define EV_PWR 0x16 82 #endif 83 #if defined(EV_FF_STATUS) || (defined(HAVE_DECL_EV_FF_STATUS) && HAVE_DECL_EV_FF_STATUS) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((EV_FF_STATUS) == (0x17), "EV_FF_STATUS != 0x17"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define EV_FF_STATUS 0x17 89 #endif 90 91 #ifndef XLAT_MACROS_ONLY 92 93 # ifndef IN_MPERS 94 95 const struct xlat evdev_ev[] = { 96 XLAT(EV_SYN), 97 XLAT(EV_KEY), 98 XLAT(EV_REL), 99 XLAT(EV_ABS), 100 XLAT(EV_MSC), 101 XLAT(EV_SW), 102 XLAT(EV_LED), 103 XLAT(EV_SND), 104 XLAT(EV_REP), 105 XLAT(EV_FF), 106 XLAT(EV_PWR), 107 XLAT(EV_FF_STATUS), 108 XLAT_END 109 }; 110 111 # endif /* !IN_MPERS */ 112 113 #endif /* !XLAT_MACROS_ONLY */ 114