Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/adjtimex_status.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(STA_PLL) || (defined(HAVE_DECL_STA_PLL) && HAVE_DECL_STA_PLL)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((STA_PLL) == (0x0001), "STA_PLL != 0x0001");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define STA_PLL 0x0001
     12 #endif
     13 #if defined(STA_PPSFREQ) || (defined(HAVE_DECL_STA_PPSFREQ) && HAVE_DECL_STA_PPSFREQ)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((STA_PPSFREQ) == (0x0002), "STA_PPSFREQ != 0x0002");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define STA_PPSFREQ 0x0002
     19 #endif
     20 #if defined(STA_PPSTIME) || (defined(HAVE_DECL_STA_PPSTIME) && HAVE_DECL_STA_PPSTIME)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((STA_PPSTIME) == (0x0004), "STA_PPSTIME != 0x0004");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define STA_PPSTIME 0x0004
     26 #endif
     27 #if defined(STA_FLL) || (defined(HAVE_DECL_STA_FLL) && HAVE_DECL_STA_FLL)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((STA_FLL) == (0x0008), "STA_FLL != 0x0008");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define STA_FLL 0x0008
     33 #endif
     34 #if defined(STA_INS) || (defined(HAVE_DECL_STA_INS) && HAVE_DECL_STA_INS)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((STA_INS) == (0x0010), "STA_INS != 0x0010");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define STA_INS 0x0010
     40 #endif
     41 #if defined(STA_DEL) || (defined(HAVE_DECL_STA_DEL) && HAVE_DECL_STA_DEL)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((STA_DEL) == (0x0020), "STA_DEL != 0x0020");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define STA_DEL 0x0020
     47 #endif
     48 #if defined(STA_UNSYNC) || (defined(HAVE_DECL_STA_UNSYNC) && HAVE_DECL_STA_UNSYNC)
     49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     50 static_assert((STA_UNSYNC) == (0x0040), "STA_UNSYNC != 0x0040");
     51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     52 #else
     53 # define STA_UNSYNC 0x0040
     54 #endif
     55 #if defined(STA_FREQHOLD) || (defined(HAVE_DECL_STA_FREQHOLD) && HAVE_DECL_STA_FREQHOLD)
     56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     57 static_assert((STA_FREQHOLD) == (0x0080), "STA_FREQHOLD != 0x0080");
     58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     59 #else
     60 # define STA_FREQHOLD 0x0080
     61 #endif
     62 #if defined(STA_PPSSIGNAL) || (defined(HAVE_DECL_STA_PPSSIGNAL) && HAVE_DECL_STA_PPSSIGNAL)
     63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     64 static_assert((STA_PPSSIGNAL) == (0x0100), "STA_PPSSIGNAL != 0x0100");
     65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     66 #else
     67 # define STA_PPSSIGNAL 0x0100
     68 #endif
     69 #if defined(STA_PPSJITTER) || (defined(HAVE_DECL_STA_PPSJITTER) && HAVE_DECL_STA_PPSJITTER)
     70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     71 static_assert((STA_PPSJITTER) == (0x0200), "STA_PPSJITTER != 0x0200");
     72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     73 #else
     74 # define STA_PPSJITTER 0x0200
     75 #endif
     76 #if defined(STA_PPSWANDER) || (defined(HAVE_DECL_STA_PPSWANDER) && HAVE_DECL_STA_PPSWANDER)
     77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     78 static_assert((STA_PPSWANDER) == (0x0400), "STA_PPSWANDER != 0x0400");
     79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     80 #else
     81 # define STA_PPSWANDER 0x0400
     82 #endif
     83 #if defined(STA_PPSERROR) || (defined(HAVE_DECL_STA_PPSERROR) && HAVE_DECL_STA_PPSERROR)
     84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     85 static_assert((STA_PPSERROR) == (0x0800), "STA_PPSERROR != 0x0800");
     86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     87 #else
     88 # define STA_PPSERROR 0x0800
     89 #endif
     90 #if defined(STA_CLOCKERR) || (defined(HAVE_DECL_STA_CLOCKERR) && HAVE_DECL_STA_CLOCKERR)
     91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     92 static_assert((STA_CLOCKERR) == (0x1000), "STA_CLOCKERR != 0x1000");
     93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     94 #else
     95 # define STA_CLOCKERR 0x1000
     96 #endif
     97 #if defined(STA_NANO) || (defined(HAVE_DECL_STA_NANO) && HAVE_DECL_STA_NANO)
     98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     99 static_assert((STA_NANO) == (0x2000), "STA_NANO != 0x2000");
    100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    101 #else
    102 # define STA_NANO 0x2000
    103 #endif
    104 #if defined(STA_MODE) || (defined(HAVE_DECL_STA_MODE) && HAVE_DECL_STA_MODE)
    105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    106 static_assert((STA_MODE) == (0x4000), "STA_MODE != 0x4000");
    107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    108 #else
    109 # define STA_MODE 0x4000
    110 #endif
    111 #if defined(STA_CLK) || (defined(HAVE_DECL_STA_CLK) && HAVE_DECL_STA_CLK)
    112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    113 static_assert((STA_CLK) == (0x8000), "STA_CLK != 0x8000");
    114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    115 #else
    116 # define STA_CLK 0x8000
    117 #endif
    118 
    119 #ifndef XLAT_MACROS_ONLY
    120 
    121 # ifdef IN_MPERS
    122 
    123 extern const struct xlat adjtimex_status[];
    124 
    125 # else
    126 
    127 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
    128 static
    129 #  endif
    130 const struct xlat adjtimex_status[] = {
    131  XLAT(STA_PLL),
    132  XLAT(STA_PPSFREQ),
    133  XLAT(STA_PPSTIME),
    134  XLAT(STA_FLL),
    135  XLAT(STA_INS),
    136  XLAT(STA_DEL),
    137  XLAT(STA_UNSYNC),
    138  XLAT(STA_FREQHOLD),
    139  XLAT(STA_PPSSIGNAL),
    140  XLAT(STA_PPSJITTER),
    141  XLAT(STA_PPSWANDER),
    142  XLAT(STA_PPSERROR),
    143  XLAT(STA_CLOCKERR),
    144  XLAT(STA_NANO),
    145  XLAT(STA_MODE),
    146  XLAT(STA_CLK),
    147  XLAT_END
    148 };
    149 
    150 # endif /* !IN_MPERS */
    151 
    152 #endif /* !XLAT_MACROS_ONLY */
    153