(root)/
strace-6.5/
src/
xlat/
evdev_ff_types.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/evdev_ff_types.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined XLAT_PREV_VAL
       7  static_assert((unsigned long long) (FF_RUMBLE)
       8        > (unsigned long long) (XLAT_PREV_VAL),
       9        "Incorrect order in #sorted xlat: FF_RUMBLE"
      10        " is not larger than the previous value");
      11  #endif
      12  #undef XLAT_PREV_VAL
      13  #define XLAT_PREV_VAL (FF_RUMBLE)
      14  #if defined XLAT_PREV_VAL
      15  static_assert((unsigned long long) (FF_PERIODIC)
      16        > (unsigned long long) (XLAT_PREV_VAL),
      17        "Incorrect order in #sorted xlat: FF_PERIODIC"
      18        " is not larger than the previous value");
      19  #endif
      20  #undef XLAT_PREV_VAL
      21  #define XLAT_PREV_VAL (FF_PERIODIC)
      22  #if defined XLAT_PREV_VAL
      23  static_assert((unsigned long long) (FF_CONSTANT)
      24        > (unsigned long long) (XLAT_PREV_VAL),
      25        "Incorrect order in #sorted xlat: FF_CONSTANT"
      26        " is not larger than the previous value");
      27  #endif
      28  #undef XLAT_PREV_VAL
      29  #define XLAT_PREV_VAL (FF_CONSTANT)
      30  #if defined XLAT_PREV_VAL
      31  static_assert((unsigned long long) (FF_SPRING)
      32        > (unsigned long long) (XLAT_PREV_VAL),
      33        "Incorrect order in #sorted xlat: FF_SPRING"
      34        " is not larger than the previous value");
      35  #endif
      36  #undef XLAT_PREV_VAL
      37  #define XLAT_PREV_VAL (FF_SPRING)
      38  #if defined XLAT_PREV_VAL
      39  static_assert((unsigned long long) (FF_FRICTION)
      40        > (unsigned long long) (XLAT_PREV_VAL),
      41        "Incorrect order in #sorted xlat: FF_FRICTION"
      42        " is not larger than the previous value");
      43  #endif
      44  #undef XLAT_PREV_VAL
      45  #define XLAT_PREV_VAL (FF_FRICTION)
      46  #if defined XLAT_PREV_VAL
      47  static_assert((unsigned long long) (FF_DAMPER)
      48        > (unsigned long long) (XLAT_PREV_VAL),
      49        "Incorrect order in #sorted xlat: FF_DAMPER"
      50        " is not larger than the previous value");
      51  #endif
      52  #undef XLAT_PREV_VAL
      53  #define XLAT_PREV_VAL (FF_DAMPER)
      54  #if defined XLAT_PREV_VAL
      55  static_assert((unsigned long long) (FF_INERTIA)
      56        > (unsigned long long) (XLAT_PREV_VAL),
      57        "Incorrect order in #sorted xlat: FF_INERTIA"
      58        " is not larger than the previous value");
      59  #endif
      60  #undef XLAT_PREV_VAL
      61  #define XLAT_PREV_VAL (FF_INERTIA)
      62  #if defined XLAT_PREV_VAL
      63  static_assert((unsigned long long) (FF_RAMP)
      64        > (unsigned long long) (XLAT_PREV_VAL),
      65        "Incorrect order in #sorted xlat: FF_RAMP"
      66        " is not larger than the previous value");
      67  #endif
      68  #undef XLAT_PREV_VAL
      69  #define XLAT_PREV_VAL (FF_RAMP)
      70  #if defined XLAT_PREV_VAL
      71  static_assert((unsigned long long) (FF_SQUARE)
      72        > (unsigned long long) (XLAT_PREV_VAL),
      73        "Incorrect order in #sorted xlat: FF_SQUARE"
      74        " is not larger than the previous value");
      75  #endif
      76  #undef XLAT_PREV_VAL
      77  #define XLAT_PREV_VAL (FF_SQUARE)
      78  #if defined XLAT_PREV_VAL
      79  static_assert((unsigned long long) (FF_TRIANGLE)
      80        > (unsigned long long) (XLAT_PREV_VAL),
      81        "Incorrect order in #sorted xlat: FF_TRIANGLE"
      82        " is not larger than the previous value");
      83  #endif
      84  #undef XLAT_PREV_VAL
      85  #define XLAT_PREV_VAL (FF_TRIANGLE)
      86  #if defined XLAT_PREV_VAL
      87  static_assert((unsigned long long) (FF_SINE)
      88        > (unsigned long long) (XLAT_PREV_VAL),
      89        "Incorrect order in #sorted xlat: FF_SINE"
      90        " is not larger than the previous value");
      91  #endif
      92  #undef XLAT_PREV_VAL
      93  #define XLAT_PREV_VAL (FF_SINE)
      94  #if defined XLAT_PREV_VAL
      95  static_assert((unsigned long long) (FF_SAW_UP)
      96        > (unsigned long long) (XLAT_PREV_VAL),
      97        "Incorrect order in #sorted xlat: FF_SAW_UP"
      98        " is not larger than the previous value");
      99  #endif
     100  #undef XLAT_PREV_VAL
     101  #define XLAT_PREV_VAL (FF_SAW_UP)
     102  #if defined XLAT_PREV_VAL
     103  static_assert((unsigned long long) (FF_SAW_DOWN)
     104        > (unsigned long long) (XLAT_PREV_VAL),
     105        "Incorrect order in #sorted xlat: FF_SAW_DOWN"
     106        " is not larger than the previous value");
     107  #endif
     108  #undef XLAT_PREV_VAL
     109  #define XLAT_PREV_VAL (FF_SAW_DOWN)
     110  #if defined XLAT_PREV_VAL
     111  static_assert((unsigned long long) (FF_CUSTOM)
     112        > (unsigned long long) (XLAT_PREV_VAL),
     113        "Incorrect order in #sorted xlat: FF_CUSTOM"
     114        " is not larger than the previous value");
     115  #endif
     116  #undef XLAT_PREV_VAL
     117  #define XLAT_PREV_VAL (FF_CUSTOM)
     118  #if defined XLAT_PREV_VAL
     119  static_assert((unsigned long long) (FF_GAIN)
     120        > (unsigned long long) (XLAT_PREV_VAL),
     121        "Incorrect order in #sorted xlat: FF_GAIN"
     122        " is not larger than the previous value");
     123  #endif
     124  #undef XLAT_PREV_VAL
     125  #define XLAT_PREV_VAL (FF_GAIN)
     126  #if defined XLAT_PREV_VAL
     127  static_assert((unsigned long long) (FF_AUTOCENTER)
     128        > (unsigned long long) (XLAT_PREV_VAL),
     129        "Incorrect order in #sorted xlat: FF_AUTOCENTER"
     130        " is not larger than the previous value");
     131  #endif
     132  #undef XLAT_PREV_VAL
     133  #define XLAT_PREV_VAL (FF_AUTOCENTER)
     134  #undef XLAT_PREV_VAL
     135  
     136  #ifndef XLAT_MACROS_ONLY
     137  
     138  # ifdef IN_MPERS
     139  
     140  #  error static const struct xlat evdev_ff_types in mpers mode
     141  
     142  # else
     143  
     144  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     145  static const struct xlat_data evdev_ff_types_xdata[] = {
     146   XLAT(FF_RUMBLE),
     147   #define XLAT_VAL_0 ((unsigned) (FF_RUMBLE))
     148   #define XLAT_STR_0 STRINGIFY(FF_RUMBLE)
     149   XLAT(FF_PERIODIC),
     150   #define XLAT_VAL_1 ((unsigned) (FF_PERIODIC))
     151   #define XLAT_STR_1 STRINGIFY(FF_PERIODIC)
     152   XLAT(FF_CONSTANT),
     153   #define XLAT_VAL_2 ((unsigned) (FF_CONSTANT))
     154   #define XLAT_STR_2 STRINGIFY(FF_CONSTANT)
     155   XLAT(FF_SPRING),
     156   #define XLAT_VAL_3 ((unsigned) (FF_SPRING))
     157   #define XLAT_STR_3 STRINGIFY(FF_SPRING)
     158   XLAT(FF_FRICTION),
     159   #define XLAT_VAL_4 ((unsigned) (FF_FRICTION))
     160   #define XLAT_STR_4 STRINGIFY(FF_FRICTION)
     161   XLAT(FF_DAMPER),
     162   #define XLAT_VAL_5 ((unsigned) (FF_DAMPER))
     163   #define XLAT_STR_5 STRINGIFY(FF_DAMPER)
     164   XLAT(FF_INERTIA),
     165   #define XLAT_VAL_6 ((unsigned) (FF_INERTIA))
     166   #define XLAT_STR_6 STRINGIFY(FF_INERTIA)
     167   XLAT(FF_RAMP),
     168   #define XLAT_VAL_7 ((unsigned) (FF_RAMP))
     169   #define XLAT_STR_7 STRINGIFY(FF_RAMP)
     170   XLAT(FF_SQUARE),
     171   #define XLAT_VAL_8 ((unsigned) (FF_SQUARE))
     172   #define XLAT_STR_8 STRINGIFY(FF_SQUARE)
     173   XLAT(FF_TRIANGLE),
     174   #define XLAT_VAL_9 ((unsigned) (FF_TRIANGLE))
     175   #define XLAT_STR_9 STRINGIFY(FF_TRIANGLE)
     176   XLAT(FF_SINE),
     177   #define XLAT_VAL_10 ((unsigned) (FF_SINE))
     178   #define XLAT_STR_10 STRINGIFY(FF_SINE)
     179   XLAT(FF_SAW_UP),
     180   #define XLAT_VAL_11 ((unsigned) (FF_SAW_UP))
     181   #define XLAT_STR_11 STRINGIFY(FF_SAW_UP)
     182   XLAT(FF_SAW_DOWN),
     183   #define XLAT_VAL_12 ((unsigned) (FF_SAW_DOWN))
     184   #define XLAT_STR_12 STRINGIFY(FF_SAW_DOWN)
     185   XLAT(FF_CUSTOM),
     186   #define XLAT_VAL_13 ((unsigned) (FF_CUSTOM))
     187   #define XLAT_STR_13 STRINGIFY(FF_CUSTOM)
     188   XLAT(FF_GAIN),
     189   #define XLAT_VAL_14 ((unsigned) (FF_GAIN))
     190   #define XLAT_STR_14 STRINGIFY(FF_GAIN)
     191   XLAT(FF_AUTOCENTER),
     192   #define XLAT_VAL_15 ((unsigned) (FF_AUTOCENTER))
     193   #define XLAT_STR_15 STRINGIFY(FF_AUTOCENTER)
     194  };
     195  static
     196  const struct xlat evdev_ff_types[1] = { {
     197   .data = evdev_ff_types_xdata,
     198   .size = ARRAY_SIZE(evdev_ff_types_xdata),
     199   .type = XT_SORTED,
     200   .flags_mask = 0
     201  #  ifdef XLAT_VAL_0
     202    | XLAT_VAL_0
     203  #  endif
     204  #  ifdef XLAT_VAL_1
     205    | XLAT_VAL_1
     206  #  endif
     207  #  ifdef XLAT_VAL_2
     208    | XLAT_VAL_2
     209  #  endif
     210  #  ifdef XLAT_VAL_3
     211    | XLAT_VAL_3
     212  #  endif
     213  #  ifdef XLAT_VAL_4
     214    | XLAT_VAL_4
     215  #  endif
     216  #  ifdef XLAT_VAL_5
     217    | XLAT_VAL_5
     218  #  endif
     219  #  ifdef XLAT_VAL_6
     220    | XLAT_VAL_6
     221  #  endif
     222  #  ifdef XLAT_VAL_7
     223    | XLAT_VAL_7
     224  #  endif
     225  #  ifdef XLAT_VAL_8
     226    | XLAT_VAL_8
     227  #  endif
     228  #  ifdef XLAT_VAL_9
     229    | XLAT_VAL_9
     230  #  endif
     231  #  ifdef XLAT_VAL_10
     232    | XLAT_VAL_10
     233  #  endif
     234  #  ifdef XLAT_VAL_11
     235    | XLAT_VAL_11
     236  #  endif
     237  #  ifdef XLAT_VAL_12
     238    | XLAT_VAL_12
     239  #  endif
     240  #  ifdef XLAT_VAL_13
     241    | XLAT_VAL_13
     242  #  endif
     243  #  ifdef XLAT_VAL_14
     244    | XLAT_VAL_14
     245  #  endif
     246  #  ifdef XLAT_VAL_15
     247    | XLAT_VAL_15
     248  #  endif
     249    ,
     250   .flags_strsz = 0
     251  #  ifdef XLAT_STR_0
     252    + sizeof(XLAT_STR_0)
     253  #  endif
     254  #  ifdef XLAT_STR_1
     255    + sizeof(XLAT_STR_1)
     256  #  endif
     257  #  ifdef XLAT_STR_2
     258    + sizeof(XLAT_STR_2)
     259  #  endif
     260  #  ifdef XLAT_STR_3
     261    + sizeof(XLAT_STR_3)
     262  #  endif
     263  #  ifdef XLAT_STR_4
     264    + sizeof(XLAT_STR_4)
     265  #  endif
     266  #  ifdef XLAT_STR_5
     267    + sizeof(XLAT_STR_5)
     268  #  endif
     269  #  ifdef XLAT_STR_6
     270    + sizeof(XLAT_STR_6)
     271  #  endif
     272  #  ifdef XLAT_STR_7
     273    + sizeof(XLAT_STR_7)
     274  #  endif
     275  #  ifdef XLAT_STR_8
     276    + sizeof(XLAT_STR_8)
     277  #  endif
     278  #  ifdef XLAT_STR_9
     279    + sizeof(XLAT_STR_9)
     280  #  endif
     281  #  ifdef XLAT_STR_10
     282    + sizeof(XLAT_STR_10)
     283  #  endif
     284  #  ifdef XLAT_STR_11
     285    + sizeof(XLAT_STR_11)
     286  #  endif
     287  #  ifdef XLAT_STR_12
     288    + sizeof(XLAT_STR_12)
     289  #  endif
     290  #  ifdef XLAT_STR_13
     291    + sizeof(XLAT_STR_13)
     292  #  endif
     293  #  ifdef XLAT_STR_14
     294    + sizeof(XLAT_STR_14)
     295  #  endif
     296  #  ifdef XLAT_STR_15
     297    + sizeof(XLAT_STR_15)
     298  #  endif
     299    ,
     300  } };
     301  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     302  
     303  #  undef XLAT_STR_0
     304  #  undef XLAT_VAL_0
     305  #  undef XLAT_STR_1
     306  #  undef XLAT_VAL_1
     307  #  undef XLAT_STR_2
     308  #  undef XLAT_VAL_2
     309  #  undef XLAT_STR_3
     310  #  undef XLAT_VAL_3
     311  #  undef XLAT_STR_4
     312  #  undef XLAT_VAL_4
     313  #  undef XLAT_STR_5
     314  #  undef XLAT_VAL_5
     315  #  undef XLAT_STR_6
     316  #  undef XLAT_VAL_6
     317  #  undef XLAT_STR_7
     318  #  undef XLAT_VAL_7
     319  #  undef XLAT_STR_8
     320  #  undef XLAT_VAL_8
     321  #  undef XLAT_STR_9
     322  #  undef XLAT_VAL_9
     323  #  undef XLAT_STR_10
     324  #  undef XLAT_VAL_10
     325  #  undef XLAT_STR_11
     326  #  undef XLAT_VAL_11
     327  #  undef XLAT_STR_12
     328  #  undef XLAT_VAL_12
     329  #  undef XLAT_STR_13
     330  #  undef XLAT_VAL_13
     331  #  undef XLAT_STR_14
     332  #  undef XLAT_VAL_14
     333  #  undef XLAT_STR_15
     334  #  undef XLAT_VAL_15
     335  # endif /* !IN_MPERS */
     336  
     337  #endif /* !XLAT_MACROS_ONLY */