powerpc/papr_scm: Add support for reporting dirty-shutdown-count
[linux-2.6-microblaze.git] / arch / powerpc / include / uapi / asm / papr_pdsm.h
index 50ef95e..82488b1 100644 (file)
@@ -77,6 +77,9 @@
 /* Indicate that the 'dimm_fuel_gauge' field is valid */
 #define PDSM_DIMM_HEALTH_RUN_GAUGE_VALID 1
 
+/* Indicate that the 'dimm_dsc' field is valid */
+#define PDSM_DIMM_DSC_VALID 2
+
 /*
  * Struct exchanged between kernel & ndctl in for PAPR_PDSM_HEALTH
  * Various flags indicate the health status of the dimm.
@@ -105,6 +108,9 @@ struct nd_papr_pdsm_health {
 
                        /* Extension flag PDSM_DIMM_HEALTH_RUN_GAUGE_VALID */
                        __u16 dimm_fuel_gauge;
+
+                       /* Extension flag PDSM_DIMM_DSC_VALID */
+                       __u64 dimm_dsc;
                };
                __u8 buf[ND_PDSM_PAYLOAD_MAX_SIZE];
        };