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;
57 struct list_item list;
64 char *boot_image_file;
80 struct interface_info {
81 unsigned int hwaddr_size;
87 struct blockdev_info {
96 struct interface_info **interfaces;
97 unsigned int n_interfaces;
98 struct blockdev_info **blockdevs;
99 unsigned int n_blockdevs;
102 #define HWADDR_SIZE 6
104 struct interface_config {
105 uint8_t hwaddr[HWADDR_SIZE];
109 CONFIG_METHOD_STATIC,
121 struct network_config {
122 struct interface_config **interfaces;
123 unsigned int n_interfaces;
124 const char **dns_servers;
125 unsigned int n_dns_servers;
128 struct autoboot_option {
134 enum device_type type;
140 bool autoboot_enabled;
141 unsigned int autoboot_timeout_sec;
142 struct network_config network;
144 struct autoboot_option *autoboot_opts;
145 unsigned int n_autoboot_opts;
147 unsigned int ipmi_bootdev;
148 bool ipmi_bootdev_persistent;
154 /* not user-settable */
155 bool disable_snapshots;
160 #endif /* _TYPES_H */