Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
intel-nvme.h
1 
29 #include <linux/types.h>
30 
31 #ifdef __CHECKER__
32 #define __force __attribute__((force))
33 #else
34 #define __force
35 #endif
36 
37 #define NVME_SMART_INTEL_CDW10 0x008000ca
38 #define INTEL_VENDOR_ID 0x8086
39 
40 struct __attribute__((packed)) nvme_additional_smart_log_item {
41  __u8 key;
42  __u8 _kp[2];
43  __u8 norm;
44  __u8 _np;
45  union __attribute__((packed)) {
46  __u8 raw[6];
47  struct __attribute__((packed)) wear_level {
48  __le16 min;
49  __le16 max;
50  __le16 avg;
51  } wear_level;
52  struct __attribute__((packed)) thermal_throttle {
53  __u8 pct;
54  __u32 count;
55  } thermal_throttle;
56  };
57  __u8 _rp;
58 };
59 
61  struct nvme_additional_smart_log_item program_fail_cnt;
62  struct nvme_additional_smart_log_item erase_fail_cnt;
63  struct nvme_additional_smart_log_item wear_leveling_cnt;
64  struct nvme_additional_smart_log_item e2e_err_cnt;
65  struct nvme_additional_smart_log_item crc_err_cnt;
66  struct nvme_additional_smart_log_item timed_workload_media_wear;
67  struct nvme_additional_smart_log_item timed_workload_host_reads;
68  struct nvme_additional_smart_log_item timed_workload_timer;
69  struct nvme_additional_smart_log_item thermal_throttle_status;
70  struct nvme_additional_smart_log_item retry_buffer_overflow_cnt;
71  struct nvme_additional_smart_log_item pll_lock_loss_cnt;
72  struct nvme_additional_smart_log_item nand_bytes_written;
73  struct nvme_additional_smart_log_item host_bytes_written;
74 };
nvme_additional_smart_log
Definition: intel-nvme.h:60