17 IPMI_BOOTDEV_NONE = 0x00,
18 IPMI_BOOTDEV_NETWORK = 0x01,
19 IPMI_BOOTDEV_DISK = 0x2,
20 IPMI_BOOTDEV_SAFE = 0x3,
21 IPMI_BOOTDEV_CDROM = 0x5,
22 IPMI_BOOTDEV_SETUP = 0x6,
23 IPMI_BOOTDEV_INVALID = 0xff,
26 const char *ipmi_bootdev_display_name(enum ipmi_bootdev bootdev);
27 const char *device_type_display_name(enum device_type type);
28 const char *device_type_name(enum device_type type);
29 enum device_type find_device_type(const char *str);
33 enum device_type type;
39 struct list boot_options;
50 char *boot_image_file;
56 struct list_item list;
63 char *boot_image_file;
79 struct interface_info {
80 unsigned int hwaddr_size;
86 struct blockdev_info {
95 struct interface_info **interfaces;
96 unsigned int n_interfaces;
97 struct blockdev_info **blockdevs;
98 unsigned int n_blockdevs;
101 #define HWADDR_SIZE 6
103 struct interface_config {
104 uint8_t hwaddr[HWADDR_SIZE];
108 CONFIG_METHOD_STATIC,
120 struct network_config {
121 struct interface_config **interfaces;
122 unsigned int n_interfaces;
123 const char **dns_servers;
124 unsigned int n_dns_servers;
127 struct autoboot_option {
133 enum device_type type;
139 bool autoboot_enabled;
140 unsigned int autoboot_timeout_sec;
141 struct network_config network;
143 struct autoboot_option *autoboot_opts;
144 unsigned int n_autoboot_opts;
146 unsigned int ipmi_bootdev;
147 bool ipmi_bootdev_persistent;
153 /* not user-settable */
154 bool disable_snapshots;
159 #endif /* _TYPES_H */