diff options
Diffstat (limited to 'include/linux/edac.h')
-rw-r--r-- | include/linux/edac.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h index 52bceca85e63..87aa07d2ee28 100644 --- a/include/linux/edac.h +++ b/include/linux/edac.h | |||
@@ -318,6 +318,13 @@ struct dimm_info { | |||
318 | unsigned memory_controller; | 318 | unsigned memory_controller; |
319 | unsigned csrow; | 319 | unsigned csrow; |
320 | unsigned csrow_channel; | 320 | unsigned csrow_channel; |
321 | |||
322 | u32 grain; /* granularity of reported error in bytes */ | ||
323 | enum dev_type dtype; /* memory device type */ | ||
324 | enum mem_type mtype; /* memory dimm type */ | ||
325 | enum edac_type edac_mode; /* EDAC mode for this dimm */ | ||
326 | |||
327 | u32 ce_count; /* Correctable Errors for this dimm */ | ||
321 | }; | 328 | }; |
322 | 329 | ||
323 | /** | 330 | /** |
@@ -343,19 +350,17 @@ struct rank_info { | |||
343 | }; | 350 | }; |
344 | 351 | ||
345 | struct csrow_info { | 352 | struct csrow_info { |
346 | unsigned long first_page; /* first page number in dimm */ | 353 | unsigned long first_page; /* first page number in csrow */ |
347 | unsigned long last_page; /* last page number in dimm */ | 354 | unsigned long last_page; /* last page number in csrow */ |
355 | u32 nr_pages; /* number of pages in csrow */ | ||
348 | unsigned long page_mask; /* used for interleaving - | 356 | unsigned long page_mask; /* used for interleaving - |
349 | * 0UL for non intlv | 357 | * 0UL for non intlv |
350 | */ | 358 | */ |
351 | u32 nr_pages; /* number of pages in csrow */ | 359 | int csrow_idx; /* the chip-select row */ |
352 | u32 grain; /* granularity of reported error in bytes */ | 360 | |
353 | int csrow_idx; /* the chip-select row */ | ||
354 | enum dev_type dtype; /* memory device type */ | ||
355 | u32 ue_count; /* Uncorrectable Errors for this csrow */ | 361 | u32 ue_count; /* Uncorrectable Errors for this csrow */ |
356 | u32 ce_count; /* Correctable Errors for this csrow */ | 362 | u32 ce_count; /* Correctable Errors for this csrow */ |
357 | enum mem_type mtype; /* memory csrow type */ | 363 | |
358 | enum edac_type edac_mode; /* EDAC mode for this csrow */ | ||
359 | struct mem_ctl_info *mci; /* the parent */ | 364 | struct mem_ctl_info *mci; /* the parent */ |
360 | 365 | ||
361 | struct kobject kobj; /* sysfs kobject for this csrow */ | 366 | struct kobject kobj; /* sysfs kobject for this csrow */ |