summaryrefslogtreecommitdiff
path: root/src/drivers/ipmi/ipmi_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/ipmi/ipmi_ops.c')
-rw-r--r--src/drivers/ipmi/ipmi_ops.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/drivers/ipmi/ipmi_ops.c b/src/drivers/ipmi/ipmi_ops.c
index 73a02e1f37..d9b3256eec 100644
--- a/src/drivers/ipmi/ipmi_ops.c
+++ b/src/drivers/ipmi/ipmi_ops.c
@@ -2,6 +2,7 @@
#include <console/console.h>
#include "ipmi_ops.h"
+#include "ipmi_if.h"
#include <string.h>
#include <types.h>
@@ -18,7 +19,7 @@ enum cb_err ipmi_init_and_start_bmc_wdt(const int port, uint16_t countdown,
/* clear BIOS FRB2 expiration flag */
req.timer_use_expiration_flags_clr = 2;
req.initial_countdown_val = countdown;
- ret = ipmi_kcs_message(port, IPMI_NETFN_APPLICATION, 0x0,
+ ret = ipmi_message(port, IPMI_NETFN_APPLICATION, 0x0,
IPMI_BMC_SET_WDG_TIMER,
(const unsigned char *) &req, sizeof(req),
(unsigned char *) &rsp, sizeof(rsp));
@@ -32,7 +33,7 @@ enum cb_err ipmi_init_and_start_bmc_wdt(const int port, uint16_t countdown,
}
/* Reset command to start timer */
- ret = ipmi_kcs_message(port, IPMI_NETFN_APPLICATION, 0x0,
+ ret = ipmi_message(port, IPMI_NETFN_APPLICATION, 0x0,
IPMI_BMC_RESET_WDG_TIMER, NULL, 0,
(unsigned char *) &rsp, sizeof(rsp));
@@ -56,7 +57,7 @@ enum cb_err ipmi_stop_bmc_wdt(const int port)
struct ipmi_rsp resp;
/* Get current timer first */
- ret = ipmi_kcs_message(port, IPMI_NETFN_APPLICATION, 0x0,
+ ret = ipmi_message(port, IPMI_NETFN_APPLICATION, 0x0,
IPMI_BMC_GET_WDG_TIMER, NULL, 0,
(unsigned char *) &rsp, sizeof(rsp));
@@ -76,7 +77,7 @@ enum cb_err ipmi_stop_bmc_wdt(const int port)
rsp.data.timer_use &= ~(1 << 6);
rsp.data.initial_countdown_val = 0;
req = rsp.data;
- ret = ipmi_kcs_message(port, IPMI_NETFN_APPLICATION, 0x0,
+ ret = ipmi_message(port, IPMI_NETFN_APPLICATION, 0x0,
IPMI_BMC_SET_WDG_TIMER,
(const unsigned char *) &req, sizeof(req),
(unsigned char *) &resp, sizeof(resp));
@@ -104,7 +105,7 @@ enum cb_err ipmi_get_system_guid(const int port, uint8_t *uuid)
return CB_ERR;
}
- ret = ipmi_kcs_message(port, IPMI_NETFN_APPLICATION, 0x0,
+ ret = ipmi_message(port, IPMI_NETFN_APPLICATION, 0x0,
IPMI_BMC_GET_SYSTEM_GUID, NULL, 0,
(unsigned char *) &rsp, sizeof(rsp));
@@ -128,7 +129,7 @@ enum cb_err ipmi_add_sel(const int port, struct sel_event_record *sel)
return CB_ERR;
}
- ret = ipmi_kcs_message(port, IPMI_NETFN_STORAGE, 0x0,
+ ret = ipmi_message(port, IPMI_NETFN_STORAGE, 0x0,
IPMI_ADD_SEL_ENTRY, (const unsigned char *) sel,
16, (unsigned char *) &rsp, sizeof(rsp));