diff options
author | Chen, Gong <gong.chen@linux.intel.com> | 2014-06-11 13:59:45 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2014-06-25 11:19:44 -0700 |
commit | 3760cd20402d4c131e1994c968ecb055fa0f74bc (patch) | |
tree | 3f8009d970b3aa7e5d445791381969ba137339e3 /include/linux | |
parent | 0a2409aad38e97b1db55e6515b990be7b17060f6 (diff) | |
download | op-kernel-dev-3760cd20402d4c131e1994c968ecb055fa0f74bc.zip op-kernel-dev-3760cd20402d4c131e1994c968ecb055fa0f74bc.tar.gz |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/cper.h b/include/linux/cper.h index 2fc0ec3..ed088b9 100644 --- a/include/linux/cper.h +++ b/include/linux/cper.h @@ -36,6 +36,13 @@ #define CPER_RECORD_REV 0x0100 /* + * CPER record length contains the CPER fields which are relevant for further + * handling of a memory error in userspace (we don't carry all the fields + * defined in the UEFI spec because some of them don't make any sense.) + * Currently, a length of 256 should be more than enough. + */ +#define CPER_REC_LEN 256 +/* * Severity difinition for error_severity in struct cper_record_header * and section_severity in struct cper_section_descriptor */ @@ -395,6 +402,8 @@ struct cper_sec_pcie { #pragma pack() u64 cper_next_record_id(void); +const char *cper_severity_str(unsigned int); +const char *cper_mem_err_type_str(unsigned int); void cper_print_bits(const char *prefix, unsigned int bits, const char * const strs[], unsigned int strs_size); |