dmi.h 878 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef __DMI_H__
  2. #define __DMI_H__
  3. enum dmi_field {
  4. DMI_NONE,
  5. DMI_BIOS_VENDOR,
  6. DMI_BIOS_VERSION,
  7. DMI_BIOS_DATE,
  8. DMI_SYS_VENDOR,
  9. DMI_PRODUCT_NAME,
  10. DMI_PRODUCT_VERSION,
  11. DMI_PRODUCT_SERIAL,
  12. DMI_BOARD_VENDOR,
  13. DMI_BOARD_NAME,
  14. DMI_BOARD_VERSION,
  15. DMI_STRING_MAX,
  16. };
  17. /*
  18. * DMI callbacks for problem boards
  19. */
  20. struct dmi_strmatch {
  21. u8 slot;
  22. char *substr;
  23. };
  24. struct dmi_system_id {
  25. int (*callback)(struct dmi_system_id *);
  26. char *ident;
  27. struct dmi_strmatch matches[4];
  28. void *driver_data;
  29. };
  30. #define DMI_MATCH(a,b) { a, b }
  31. #if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
  32. extern int dmi_check_system(struct dmi_system_id *list);
  33. extern char * dmi_get_system_info(int field);
  34. #else
  35. static inline int dmi_check_system(struct dmi_system_id *list) { return 0; }
  36. static inline char * dmi_get_system_info(int field) { return NULL; }
  37. #endif
  38. #endif /* __DMI_H__ */