18 IPMI_BOOTDEV_NONE = 0x00,
19 IPMI_BOOTDEV_NETWORK = 0x01,
20 IPMI_BOOTDEV_DISK = 0x2,
21 IPMI_BOOTDEV_SAFE = 0x3,
22 IPMI_BOOTDEV_CDROM = 0x5,
23 IPMI_BOOTDEV_SETUP = 0x6,
24 IPMI_BOOTDEV_INVALID = 0xff,
27 const char *ipmi_bootdev_display_name(enum ipmi_bootdev bootdev);
28 const char *device_type_display_name(enum device_type type);
29 const char *device_type_name(enum device_type type);
30 enum device_type find_device_type(const char *str);
34 enum device_type type;
40 struct list boot_options;
51 char *boot_image_file;
58 struct list_item list;
63 struct plugin_option {
72 unsigned int n_executables;
80 char *boot_image_file;
97 struct statuslog_entry {
98 struct status *status;
99 struct list_item list;
102 struct interface_info {
103 unsigned int hwaddr_size;
110 struct blockdev_info {
119 char **platform_primary;
120 char **platform_other;
121 unsigned int n_primary;
122 unsigned int n_other;
125 unsigned int n_bmc_current;
126 unsigned int n_bmc_golden;
128 struct interface_info **interfaces;
129 unsigned int n_interfaces;
130 struct blockdev_info **blockdevs;
131 unsigned int n_blockdevs;
134 #define HWADDR_SIZE 6
136 struct interface_config {
137 uint8_t hwaddr[HWADDR_SIZE];
141 CONFIG_METHOD_STATIC,
155 struct network_config {
156 struct interface_config **interfaces;
157 unsigned int n_interfaces;
158 const char **dns_servers;
159 unsigned int n_dns_servers;
162 struct autoboot_option {
168 enum device_type type;
174 bool autoboot_enabled;
175 unsigned int autoboot_timeout_sec;
176 struct network_config network;
178 struct autoboot_option *autoboot_opts;
179 unsigned int n_autoboot_opts;
181 unsigned int ipmi_bootdev;
182 bool ipmi_bootdev_persistent;
193 /* not user-settable */
194 unsigned int n_consoles;
196 bool disable_snapshots;
201 bool config_autoboot_active(const struct config *config);
203 #endif /* _TYPES_H */