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;
65 char *boot_image_file;
82 struct statuslog_entry {
83 struct status *status;
84 struct list_item list;
87 struct interface_info {
88 unsigned int hwaddr_size;
95 struct blockdev_info {
104 char **platform_primary;
105 char **platform_other;
106 unsigned int n_primary;
107 unsigned int n_other;
110 unsigned int n_bmc_current;
111 unsigned int n_bmc_golden;
113 struct interface_info **interfaces;
114 unsigned int n_interfaces;
115 struct blockdev_info **blockdevs;
116 unsigned int n_blockdevs;
119 #define HWADDR_SIZE 6
121 struct interface_config {
122 uint8_t hwaddr[HWADDR_SIZE];
126 CONFIG_METHOD_STATIC,
140 struct network_config {
141 struct interface_config **interfaces;
142 unsigned int n_interfaces;
143 const char **dns_servers;
144 unsigned int n_dns_servers;
147 struct autoboot_option {
153 enum device_type type;
159 bool autoboot_enabled;
160 unsigned int autoboot_timeout_sec;
161 struct network_config network;
163 struct autoboot_option *autoboot_opts;
164 unsigned int n_autoboot_opts;
166 unsigned int ipmi_bootdev;
167 bool ipmi_bootdev_persistent;
178 /* not user-settable */
179 unsigned int n_consoles;
181 bool disable_snapshots;
186 bool config_autoboot_active(const struct config *config);
188 #endif /* _TYPES_H */