(root)/
strace-6.5/
src/
xlat/
gpio_event_flags.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/gpio_event_flags.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #undef XLAT_PREV_VAL
       7  
       8  #ifndef XLAT_MACROS_ONLY
       9  
      10  # ifdef IN_MPERS
      11  
      12  #  error static const struct xlat gpio_event_flags in mpers mode
      13  
      14  # else
      15  
      16  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      17  static const struct xlat_data gpio_event_flags_xdata[] = {
      18   XLAT(GPIOEVENT_REQUEST_BOTH_EDGES),
      19   #define XLAT_VAL_0 ((unsigned) (GPIOEVENT_REQUEST_BOTH_EDGES))
      20   #define XLAT_STR_0 STRINGIFY(GPIOEVENT_REQUEST_BOTH_EDGES)
      21   XLAT(GPIOEVENT_REQUEST_RISING_EDGE),
      22   #define XLAT_VAL_1 ((unsigned) (GPIOEVENT_REQUEST_RISING_EDGE))
      23   #define XLAT_STR_1 STRINGIFY(GPIOEVENT_REQUEST_RISING_EDGE)
      24   XLAT(GPIOEVENT_REQUEST_FALLING_EDGE),
      25   #define XLAT_VAL_2 ((unsigned) (GPIOEVENT_REQUEST_FALLING_EDGE))
      26   #define XLAT_STR_2 STRINGIFY(GPIOEVENT_REQUEST_FALLING_EDGE)
      27  };
      28  static
      29  const struct xlat gpio_event_flags[1] = { {
      30   .data = gpio_event_flags_xdata,
      31   .size = ARRAY_SIZE(gpio_event_flags_xdata),
      32   .type = XT_NORMAL,
      33   .flags_mask = 0
      34  #  ifdef XLAT_VAL_0
      35    | XLAT_VAL_0
      36  #  endif
      37  #  ifdef XLAT_VAL_1
      38    | XLAT_VAL_1
      39  #  endif
      40  #  ifdef XLAT_VAL_2
      41    | XLAT_VAL_2
      42  #  endif
      43    ,
      44   .flags_strsz = 0
      45  #  ifdef XLAT_STR_0
      46    + sizeof(XLAT_STR_0)
      47  #  endif
      48  #  ifdef XLAT_STR_1
      49    + sizeof(XLAT_STR_1)
      50  #  endif
      51  #  ifdef XLAT_STR_2
      52    + sizeof(XLAT_STR_2)
      53  #  endif
      54    ,
      55  } };
      56  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      57  
      58  #  undef XLAT_STR_0
      59  #  undef XLAT_VAL_0
      60  #  undef XLAT_STR_1
      61  #  undef XLAT_VAL_1
      62  #  undef XLAT_STR_2
      63  #  undef XLAT_VAL_2
      64  # endif /* !IN_MPERS */
      65  
      66  #endif /* !XLAT_MACROS_ONLY */