intel.h 777 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright(c) 2018 Intel Corporation. All rights reserved.
  4. * Intel specific definitions for NVDIMM Firmware Interface Table - NFIT
  5. */
  6. #ifndef _NFIT_INTEL_H_
  7. #define _NFIT_INTEL_H_
  8. #define ND_INTEL_SMART 1
  9. #define ND_INTEL_SMART_SHUTDOWN_COUNT_VALID (1 << 5)
  10. #define ND_INTEL_SMART_SHUTDOWN_VALID (1 << 10)
  11. struct nd_intel_smart {
  12. u32 status;
  13. union {
  14. struct {
  15. u32 flags;
  16. u8 reserved0[4];
  17. u8 health;
  18. u8 spares;
  19. u8 life_used;
  20. u8 alarm_flags;
  21. u16 media_temperature;
  22. u16 ctrl_temperature;
  23. u32 shutdown_count;
  24. u8 ait_status;
  25. u16 pmic_temperature;
  26. u8 reserved1[8];
  27. u8 shutdown_state;
  28. u32 vendor_size;
  29. u8 vendor_data[92];
  30. } __packed;
  31. u8 data[128];
  32. };
  33. } __packed;
  34. #endif