1 /* Generated by ./xlat/gen.sh from ./xlat/hci_channels.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(HCI_CHANNEL_RAW) || (defined(HAVE_DECL_HCI_CHANNEL_RAW) && HAVE_DECL_HCI_CHANNEL_RAW)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((HCI_CHANNEL_RAW) == (0), "HCI_CHANNEL_RAW != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define HCI_CHANNEL_RAW 0
12 #endif
13 #if defined(HCI_CHANNEL_USER) || (defined(HAVE_DECL_HCI_CHANNEL_USER) && HAVE_DECL_HCI_CHANNEL_USER)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((HCI_CHANNEL_USER) == (1), "HCI_CHANNEL_USER != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define HCI_CHANNEL_USER 1
19 #endif
20 #if defined(HCI_CHANNEL_MONITOR) || (defined(HAVE_DECL_HCI_CHANNEL_MONITOR) && HAVE_DECL_HCI_CHANNEL_MONITOR)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((HCI_CHANNEL_MONITOR) == (2), "HCI_CHANNEL_MONITOR != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define HCI_CHANNEL_MONITOR 2
26 #endif
27 #if defined(HCI_CHANNEL_CONTROL) || (defined(HAVE_DECL_HCI_CHANNEL_CONTROL) && HAVE_DECL_HCI_CHANNEL_CONTROL)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((HCI_CHANNEL_CONTROL) == (3), "HCI_CHANNEL_CONTROL != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define HCI_CHANNEL_CONTROL 3
33 #endif
34 #if defined(HCI_CHANNEL_LOGGING) || (defined(HAVE_DECL_HCI_CHANNEL_LOGGING) && HAVE_DECL_HCI_CHANNEL_LOGGING)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((HCI_CHANNEL_LOGGING) == (4), "HCI_CHANNEL_LOGGING != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define HCI_CHANNEL_LOGGING 4
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifdef IN_MPERS
45 
46 #  error static const struct xlat hci_channels in mpers mode
47 
48 # else
49 
50 static
51 const struct xlat hci_channels[] = {
52  [HCI_CHANNEL_RAW] = XLAT(HCI_CHANNEL_RAW),
53  [HCI_CHANNEL_USER] = XLAT(HCI_CHANNEL_USER),
54  [HCI_CHANNEL_MONITOR] = XLAT(HCI_CHANNEL_MONITOR),
55  [HCI_CHANNEL_CONTROL] = XLAT(HCI_CHANNEL_CONTROL),
56  [HCI_CHANNEL_LOGGING] = XLAT(HCI_CHANNEL_LOGGING),
57  XLAT_END
58 };
59 
60 # endif /* !IN_MPERS */
61 
62 #endif /* !XLAT_MACROS_ONLY */
63