aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorChen, Gong <gong.chen@linux.intel.com>2014-06-11 16:59:45 -0400
committerTony Luck <tony.luck@intel.com>2014-06-25 14:19:44 -0400
commit3760cd20402d4c131e1994c968ecb055fa0f74bc (patch)
tree3f8009d970b3aa7e5d445791381969ba137339e3 /include/linux
parent0a2409aad38e97b1db55e6515b990be7b17060f6 (diff)
CPER: Adjust code flow of some functions
Some codes can be reorganzied as a common function for other usages. Signed-off-by: Chen, Gong <gong.chen@linux.intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/cper.h b/include/linux/cper.h
index 2fc0ec3d89cc..ed088b9c1298 100644
--- a/include/linux/cper.h
+++ b/include/linux/cper.h
@@ -36,6 +36,13 @@
36#define CPER_RECORD_REV 0x0100 36#define CPER_RECORD_REV 0x0100
37 37
38/* 38/*
39 * CPER record length contains the CPER fields which are relevant for further
40 * handling of a memory error in userspace (we don't carry all the fields
41 * defined in the UEFI spec because some of them don't make any sense.)
42 * Currently, a length of 256 should be more than enough.
43 */
44#define CPER_REC_LEN 256
45/*
39 * Severity difinition for error_severity in struct cper_record_header 46 * Severity difinition for error_severity in struct cper_record_header
40 * and section_severity in struct cper_section_descriptor 47 * and section_severity in struct cper_section_descriptor
41 */ 48 */
@@ -395,6 +402,8 @@ struct cper_sec_pcie {
395#pragma pack() 402#pragma pack()
396 403
397u64 cper_next_record_id(void); 404u64 cper_next_record_id(void);
405const char *cper_severity_str(unsigned int);
406const char *cper_mem_err_type_str(unsigned int);
398void cper_print_bits(const char *prefix, unsigned int bits, 407void cper_print_bits(const char *prefix, unsigned int bits,
399 const char * const strs[], unsigned int strs_size); 408 const char * const strs[], unsigned int strs_size);
400 409