diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-09-04 16:55:10 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-09 15:18:26 +1000 |
commit | 960bd711b2381f4a31048884955b9715d51ea6ea (patch) | |
tree | 589382e8fb8c35771797783ea8c70a7e364348dd /hw | |
parent | 425a89ba2f4264a9215b176fe7b2ebf38a29cf09 (diff) | |
download | skiboot-960bd711b2381f4a31048884955b9715d51ea6ea.zip skiboot-960bd711b2381f4a31048884955b9715d51ea6ea.tar.gz skiboot-960bd711b2381f4a31048884955b9715d51ea6ea.tar.bz2 |
IPMI: Move MAX_PEL_SIZE to ipmi.h
We want to use MAX_PEL_SIZE in other code (like attention) as well.
Hence move this to ipmi.h.
Also rename MAX_PEL_SIZE as IPMI_MAX_PEL_SIZE to reflect its IPMI
specific macro.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ipmi/ipmi-sel.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c index 5556b65..4626d9d 100644 --- a/hw/ipmi/ipmi-sel.c +++ b/hw/ipmi/ipmi-sel.c @@ -125,13 +125,6 @@ struct oem_sel { uint8_t data[4]; }; -/* As far as I can tell the size of PEL record is unbounded (due to - * the possible presence of the user defined section). We chose this - * size because it's what hostboot also uses and most of the OPAL logs - * are few hundred bytes. - */ -#define MAX_PEL_SIZE 0x800 - #define ESEL_HDR_SIZE 7 /* Used for sending PANIC events like abort() path */ @@ -316,7 +309,7 @@ static void ipmi_log_sel_event(struct ipmi_msg *msg, static void ipmi_elog_poll(struct ipmi_msg *msg) { static bool first = false; - static char pel_buf[MAX_PEL_SIZE]; + static char pel_buf[IPMI_MAX_PEL_SIZE]; static size_t pel_size; static size_t esel_size; static int esel_index = 0; @@ -342,7 +335,8 @@ static void ipmi_elog_poll(struct ipmi_msg *msg) return; } - pel_size = create_pel_log(elog_buf, pel_buf, MAX_PEL_SIZE); + pel_size = create_pel_log(elog_buf, + pel_buf, IPMI_MAX_PEL_SIZE); esel_size = pel_size + sizeof(struct sel_record); esel_index = 0; record_id = 0; |