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;
81 struct interface_info {
82 unsigned int hwaddr_size;
88 struct blockdev_info {
97 char **platform_primary;
98 char **platform_other;
99 unsigned int n_primary;
100 unsigned int n_other;
103 unsigned int n_bmc_current;
104 unsigned int n_bmc_golden;
106 struct interface_info **interfaces;
107 unsigned int n_interfaces;
108 struct blockdev_info **blockdevs;
109 unsigned int n_blockdevs;
112 #define HWADDR_SIZE 6
114 struct interface_config {
115 uint8_t hwaddr[HWADDR_SIZE];
119 CONFIG_METHOD_STATIC,
133 struct network_config {
134 struct interface_config **interfaces;
135 unsigned int n_interfaces;
136 const char **dns_servers;
137 unsigned int n_dns_servers;
140 struct autoboot_option {
146 enum device_type type;
152 bool autoboot_enabled;
153 unsigned int autoboot_timeout_sec;
154 struct network_config network;
156 struct autoboot_option *autoboot_opts;
157 unsigned int n_autoboot_opts;
159 unsigned int ipmi_bootdev;
160 bool ipmi_bootdev_persistent;
171 /* not user-settable */
172 unsigned int n_consoles;
174 bool disable_snapshots;
179 #endif /* _TYPES_H */