iPXE
|
00001 #ifndef SYS_INFO_H 00002 #define SYS_INFO_H 00003 00004 /* Information collected from firmware/bootloader */ 00005 00006 struct sys_info { 00007 /* Values passed by bootloader */ 00008 unsigned long boot_type; 00009 unsigned long boot_data; 00010 unsigned long boot_arg; 00011 00012 char *firmware; /* "PCBIOS", "LinuxBIOS", etc. */ 00013 char *command_line; /* command line given to us */ 00014 #if 0 00015 //By LYH 00016 //Will use meminfo in Etherboot 00017 /* memory map */ 00018 int n_memranges; 00019 struct memrange { 00020 unsigned long long base; 00021 unsigned long long size; 00022 } *memrange; 00023 #endif 00024 }; 00025 00026 void collect_sys_info(struct sys_info *info); 00027 void collect_elfboot_info(struct sys_info *info); 00028 void collect_linuxbios_info(struct sys_info *info); 00029 00030 /* Our name and version. I want to see single instance of these in the image */ 00031 extern const char *program_name, *program_version; 00032 00033 #endif /* SYS_INFO_H */