dmi.h 857 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_BOARD_VENDOR,
  12. DMI_BOARD_NAME,
  13. DMI_BOARD_VERSION,
  14. DMI_STRING_MAX,
  15. };
  16. /*
  17. * DMI callbacks for problem boards
  18. */
  19. struct dmi_strmatch {
  20. u8 slot;
  21. char *substr;
  22. };
  23. struct dmi_system_id {
  24. int (*callback)(struct dmi_system_id *);
  25. char *ident;
  26. struct dmi_strmatch matches[4];
  27. void *driver_data;
  28. };
  29. #define DMI_MATCH(a,b) { a, b }
  30. #if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
  31. extern int dmi_check_system(struct dmi_system_id *list);
  32. extern char * dmi_get_system_info(int field);
  33. #else
  34. static inline int dmi_check_system(struct dmi_system_id *list) { return 0; }
  35. static inline char * dmi_get_system_info(int field) { return NULL; }
  36. #endif
  37. #endif /* __DMI_H__ */