diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-10-09 00:32:36 -0700 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-10-11 01:26:20 -0500 |
commit | 9a830ee06c66058b1421c017b25a65a22921e9f6 (patch) | |
tree | fad2405598bb7f620b3915599b0de948b614b91a /hw/ipmi | |
parent | dd554bacd13c6dea481ea4e1ec9f3c32087295d9 (diff) | |
download | skiboot-9a830ee06c66058b1421c017b25a65a22921e9f6.zip skiboot-9a830ee06c66058b1421c017b25a65a22921e9f6.tar.gz skiboot-9a830ee06c66058b1421c017b25a65a22921e9f6.tar.bz2 |
platform: Restructure bmc_platform type
Segregate the BMC platform configuration into hardware and software
components. This allows population of platform default values for
hardware configuration that may no-longer be accessible by the host.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
[stewart: fixup pci-quirk unit test]
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/ipmi')
-rw-r--r-- | hw/ipmi/ipmi-sel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c index cfcd1d4..0996275 100644 --- a/hw/ipmi/ipmi-sel.c +++ b/hw/ipmi/ipmi-sel.c @@ -334,7 +334,7 @@ static void ipmi_elog_poll(struct ipmi_msg *msg) struct errorlog *elog_buf = (struct errorlog *) msg->user_data; size_t req_size; - if (bmc_platform->ipmi_oem_partial_add_esel == 0) { + if (bmc_platform->sw->ipmi_oem_partial_add_esel == 0) { prlog(PR_WARNING, "Dropped eSEL: BMC code is buggy/missing\n"); return; } @@ -392,7 +392,7 @@ static void ipmi_elog_poll(struct ipmi_msg *msg) } ipmi_init_msg(msg, IPMI_DEFAULT_INTERFACE, - bmc_platform->ipmi_oem_partial_add_esel, + bmc_platform->sw->ipmi_oem_partial_add_esel, ipmi_elog_poll, elog_buf, req_size, 2); msg->data[0] = reservation_id & 0xff; @@ -464,7 +464,7 @@ static void sel_pnor(uint8_t access, void *context __unused) switch (access) { case REQUEST_PNOR: prlog(PR_NOTICE, "PNOR access requested\n"); - if (bmc_platform->ipmi_oem_pnor_access_status == 0) { + if (bmc_platform->sw->ipmi_oem_pnor_access_status == 0) { /** * @fwts-label PNORAccessYeahButNoBut * @fwts-advice OPAL doesn't know that the BMC supports @@ -479,7 +479,7 @@ static void sel_pnor(uint8_t access, void *context __unused) if (granted) occ_pnor_set_owner(PNOR_OWNER_EXTERNAL); /* Ack the request */ - msg = ipmi_mkmsg_simple(bmc_platform->ipmi_oem_pnor_access_status, &granted, 1); + msg = ipmi_mkmsg_simple(bmc_platform->sw->ipmi_oem_pnor_access_status, &granted, 1); ipmi_queue_msg(msg); break; case RELEASE_PNOR: |