diff options
author | Patrick Venture <venture@google.com> | 2019-03-07 12:48:32 -0800 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-03-08 13:10:01 -0800 |
commit | de8a16e2e85f49e142461b7e6fe901d3f8740fdf (patch) | |
tree | 065055f299e232874190c8e921d7960b9f434cd4 /process.hpp | |
parent | b15d654ed1f6804fb2e82a5cfe97eaf35b83529e (diff) | |
download | phosphor-ipmi-blobs-de8a16e2e85f49e142461b7e6fe901d3f8740fdf.tar.gz phosphor-ipmi-blobs-de8a16e2e85f49e142461b7e6fe901d3f8740fdf.zip |
use ipmiblob library from ipmi-blob-tool
Drop all code that is now handled by the ipmiblob library provided by
the new ipmi-blob-tool. This is a library that can be included on the
BMC if necessary, but relies on nothing that is strictly meant for the
BMC.
Change-Id: I2b02ae0d432e84c08e598d27eef85b57c06a70fc
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'process.hpp')
-rw-r--r-- | process.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/process.hpp b/process.hpp index 390bc1a..cdd7f72 100644 --- a/process.hpp +++ b/process.hpp @@ -1,6 +1,5 @@ #pragma once -#include "crc.hpp" #include "manager.hpp" #include <ipmid/api.h> @@ -17,7 +16,6 @@ using IpmiBlobHandler = /** * Validate the IPMI request and determine routing. * - * @param[in] crc - a pointer to the crc interface. * @param[in] reqBuf - a pointer to the ipmi request packet buffer. * @param[in,out] replyCmdBuf - a pointer to the ipmi reply packet buffer. * @param[in,out] dataLen - initially the request length, set to reply length @@ -25,9 +23,8 @@ using IpmiBlobHandler = * @param[out] code - set to the IPMI error on failure, otherwise unset. * @return the ipmi command handler, or nullptr on failure. */ -IpmiBlobHandler validateBlobCommand(CrcInterface* crc, const uint8_t* reqBuf, - uint8_t* replyCmdBuf, size_t* dataLen, - ipmi_ret_t* code); +IpmiBlobHandler validateBlobCommand(const uint8_t* reqBuf, uint8_t* replyCmdBuf, + size_t* dataLen, ipmi_ret_t* code); /** * Call the IPMI command and process the result, including running the CRC @@ -35,7 +32,6 @@ IpmiBlobHandler validateBlobCommand(CrcInterface* crc, const uint8_t* reqBuf, * * @param[in] cmd - a funtion pointer to the ipmi command to process. * @param[in] mgr - a pointer to the manager interface. - * @param[in] crc - a pointer to the crc interface. * @param[in] reqBuf - a pointer to the ipmi request packet buffer. * @param[in,out] replyCmdBuf - a pointer to the ipmi reply packet buffer. * @param[in,out] dataLen - initially the request length, set to reply length @@ -43,6 +39,6 @@ IpmiBlobHandler validateBlobCommand(CrcInterface* crc, const uint8_t* reqBuf, * @return the ipmi command result. */ ipmi_ret_t processBlobCommand(IpmiBlobHandler cmd, ManagerInterface* mgr, - CrcInterface* crc, const uint8_t* reqBuf, - uint8_t* replyCmdBuf, size_t* dataLen); + const uint8_t* reqBuf, uint8_t* replyCmdBuf, + size_t* dataLen); } // namespace blobs |