diff options
author | Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | 2021-10-22 01:02:32 +0300 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-10-02 22:01:50 +0000 |
commit | ef7dd5d54df9137b8167e86838270a7c812b21f3 (patch) | |
tree | 7f21c3e30b189c6cfa1e00380f302f269d9f6ca6 /src/drivers/ipmi/ipmi_kcs.c | |
parent | 36d7f82d98ff9127f38c2517d03b90107514bf33 (diff) |
drivers/ipmi: prepare for adding more interfaces
De-duplicate common initialization code (self-test and device
identification) and put it in a new ipmi_if.c unit, which is
supposed to work with any underlying IPMI interface.
Change-Id: Ia99da6fb63adb7bf556d3d6f7964b34831be8a2f
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67056
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Diffstat (limited to 'src/drivers/ipmi/ipmi_kcs.c')
-rw-r--r-- | src/drivers/ipmi/ipmi_kcs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/ipmi/ipmi_kcs.c b/src/drivers/ipmi/ipmi_kcs.c index 12cbe82f14..667827224f 100644 --- a/src/drivers/ipmi/ipmi_kcs.c +++ b/src/drivers/ipmi/ipmi_kcs.c @@ -4,7 +4,7 @@ #include <device/device.h> #include <arch/io.h> #include <timer.h> -#include "ipmi_kcs.h" +#include "ipmi_if.h" #define IPMI_KCS_STATE(_x) ((_x) >> 6) @@ -219,9 +219,9 @@ static int ipmi_kcs_read_message(int port, unsigned char *msg, int len) return ret; } -int ipmi_kcs_message(int port, int netfn, int lun, int cmd, - const unsigned char *inmsg, int inlen, - unsigned char *outmsg, int outlen) +int ipmi_message(int port, int netfn, int lun, int cmd, + const unsigned char *inmsg, int inlen, + unsigned char *outmsg, int outlen) { if (ipmi_kcs_send_message(port, netfn, lun, cmd, inmsg, inlen)) { printk(BIOS_ERR, "ipmi_kcs_send_message failed\n"); |