/* Generated by ./xlat/gen.sh from ./xlat/v4l2_tuner_types.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(V4L2_TUNER_RADIO) || (defined(HAVE_DECL_V4L2_TUNER_RADIO) && HAVE_DECL_V4L2_TUNER_RADIO)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((V4L2_TUNER_RADIO) == (1), "V4L2_TUNER_RADIO != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define V4L2_TUNER_RADIO 1
#endif
#if defined(V4L2_TUNER_ANALOG_TV) || (defined(HAVE_DECL_V4L2_TUNER_ANALOG_TV) && HAVE_DECL_V4L2_TUNER_ANALOG_TV)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((V4L2_TUNER_ANALOG_TV) == (2), "V4L2_TUNER_ANALOG_TV != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define V4L2_TUNER_ANALOG_TV 2
#endif
#if defined(V4L2_TUNER_DIGITAL_TV) || (defined(HAVE_DECL_V4L2_TUNER_DIGITAL_TV) && HAVE_DECL_V4L2_TUNER_DIGITAL_TV)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((V4L2_TUNER_DIGITAL_TV) == (3), "V4L2_TUNER_DIGITAL_TV != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define V4L2_TUNER_DIGITAL_TV 3
#endif
#if defined(V4L2_TUNER_SDR) || (defined(HAVE_DECL_V4L2_TUNER_SDR) && HAVE_DECL_V4L2_TUNER_SDR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((V4L2_TUNER_SDR) == (4), "V4L2_TUNER_SDR != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define V4L2_TUNER_SDR 4
#endif
#if defined(V4L2_TUNER_RF) || (defined(HAVE_DECL_V4L2_TUNER_RF) && HAVE_DECL_V4L2_TUNER_RF)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((V4L2_TUNER_RF) == (5), "V4L2_TUNER_RF != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define V4L2_TUNER_RF 5
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

extern const struct xlat v4l2_tuner_types[];

# else

static const struct xlat_data v4l2_tuner_types_xdata[] = {
 [V4L2_TUNER_RADIO] = XLAT(V4L2_TUNER_RADIO),
 #define XLAT_VAL_0 ((unsigned) (V4L2_TUNER_RADIO))
 #define XLAT_STR_0 STRINGIFY(V4L2_TUNER_RADIO)
 [V4L2_TUNER_ANALOG_TV] = XLAT(V4L2_TUNER_ANALOG_TV),
 #define XLAT_VAL_1 ((unsigned) (V4L2_TUNER_ANALOG_TV))
 #define XLAT_STR_1 STRINGIFY(V4L2_TUNER_ANALOG_TV)
 [V4L2_TUNER_DIGITAL_TV] = XLAT(V4L2_TUNER_DIGITAL_TV),
 #define XLAT_VAL_2 ((unsigned) (V4L2_TUNER_DIGITAL_TV))
 #define XLAT_STR_2 STRINGIFY(V4L2_TUNER_DIGITAL_TV)
 [V4L2_TUNER_SDR] = XLAT(V4L2_TUNER_SDR),
 #define XLAT_VAL_3 ((unsigned) (V4L2_TUNER_SDR))
 #define XLAT_STR_3 STRINGIFY(V4L2_TUNER_SDR)
 [V4L2_TUNER_RF] = XLAT(V4L2_TUNER_RF),
 #define XLAT_VAL_4 ((unsigned) (V4L2_TUNER_RF))
 #define XLAT_STR_4 STRINGIFY(V4L2_TUNER_RF)
};
#  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
static
#  endif
const struct xlat v4l2_tuner_types[1] = { {
 .data = v4l2_tuner_types_xdata,
 .size = ARRAY_SIZE(v4l2_tuner_types_xdata),
 .type = XT_INDEXED,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
#  ifdef XLAT_STR_4
  + sizeof(XLAT_STR_4)
#  endif
  ,
} };

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
#  undef XLAT_STR_4
#  undef XLAT_VAL_4
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
