diff options
author | Johnny Lin <johnny_lin@wiwynn.com> | 2020-04-20 17:32:47 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-28 21:43:59 +0000 |
commit | db654eae79840f759c5645005d77770186513a5f (patch) | |
tree | 96ef7c87f22d526e78c7b3a5c052e3ec1185c540 /src/drivers/ipmi/ipmi_ops.h | |
parent | ba26aa8981b403927c921c09419579d4f57140be (diff) |
drivers/ipmi: Read more FRU data fields for Product and Board Info
Tested on OCP Tioga Pass
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Change-Id: Ib05fdb34b2b324b6eb766de15727668ce91d2844
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40522
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/ipmi/ipmi_ops.h')
-rw-r--r-- | src/drivers/ipmi/ipmi_ops.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/drivers/ipmi/ipmi_ops.h b/src/drivers/ipmi/ipmi_ops.h index 82296a92f0..60983b4568 100644 --- a/src/drivers/ipmi/ipmi_ops.h +++ b/src/drivers/ipmi/ipmi_ops.h @@ -109,6 +109,9 @@ struct fru_product_info { char *product_version; char *serial_number; char *asset_tag; + char *fru_file_id; + char **product_custom; + int custom_count; /* Number of custom fields */ }; struct fru_board_info { @@ -116,6 +119,9 @@ struct fru_board_info { char *product_name; char *serial_number; char *part_number; + char *fru_file_id; + char **board_custom; + int custom_count; }; struct fru_chassis_info { @@ -123,7 +129,7 @@ struct fru_chassis_info { char *chassis_partnumber; char *serial_number; char **chassis_custom; - int custom_count; /* Number of custom fields */ + int custom_count; }; struct fru_info_str { @@ -172,4 +178,7 @@ void read_fru_one_area(const int port, uint8_t id, uint16_t offset, /* Add a SEL record entry, returns CB_SUCCESS on success and CB_ERR * if an error occurred */ enum cb_err ipmi_add_sel(const int port, struct sel_event_record *sel); + +/* Print all IPMI read FRU data */ +void print_fru_areas(struct fru_info_str *fru_info_str); #endif |