You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sys_info.h 842B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef SYS_INFO_H
  2. #define SYS_INFO_H
  3. /* Information collected from firmware/bootloader */
  4. struct sys_info {
  5. /* Values passed by bootloader */
  6. unsigned long boot_type;
  7. unsigned long boot_data;
  8. unsigned long boot_arg;
  9. char *firmware; /* "PCBIOS", "LinuxBIOS", etc. */
  10. char *command_line; /* command line given to us */
  11. #if 0
  12. //By LYH
  13. //Will use meminfo in Etherboot
  14. /* memory map */
  15. int n_memranges;
  16. struct memrange {
  17. unsigned long long base;
  18. unsigned long long size;
  19. } *memrange;
  20. #endif
  21. };
  22. void collect_sys_info(struct sys_info *info);
  23. void collect_elfboot_info(struct sys_info *info);
  24. void collect_linuxbios_info(struct sys_info *info);
  25. /* Our name and version. I want to see single instance of these in the image */
  26. extern const char *program_name, *program_version;
  27. #endif /* SYS_INFO_H */