3 #include <l4/sys/types.h>
5 // To generate the kernel version:
6 // perl -p -e 's/l4_uint(\d+)_t/Unsigned$1/;s/^#inc.+/#include "types.h"/' koptions-def.h
8 namespace L4_kernel_options
13 F_serial_esc = 1 << 1,
26 F_profstart = 1 << 14,
28 F_jdb_never_stop = 1 << 16,
31 F_tbuf_entries = 1 << 18,
33 F_uart_baud = 1 << 20,
34 F_uart_base = 1 << 21,
47 Uart_type_invalid = 0,
54 l4_uint32_t access_type; ///< Accesstype of UART: unset, MMIO or ports
55 l4_uint32_t baud; ///< Baud rate
56 l4_uint32_t irqno; ///< (Receive) IRQ
57 l4_uint64_t base_address; ///< Start address of UART
58 } __attribute__((packed));
62 l4_uint32_t magic; ///< Magic value
63 l4_uint32_t version; ///< Version of this structure
65 l4_uint32_t flags; ///< Option flags
67 l4_uint32_t kmemsize; ///< Wanted kernel memory size in KiB
69 Uart uart; ///< Kernel UART
72 l4_uint32_t tbuf_entries;
75 l4_uint32_t opt(Flags flag) const { return flags & flag; }
77 } __attribute__((packed));