blob: 3b622b0a6a1d870dbb6eb3b40c565f41e70aff30 [file] [log] [blame]
Patrick Venture54c3b532018-08-01 11:45:49 -07001#pragma once
2
3#include "host-ipmid/ipmid-api.h"
4
5#include "flash-ipmi.hpp"
6
7/**
8 * Prepare to receive a BMC image and then a signature.
9 *
10 * @param[in] updater - Pointer to Updater object.
11 * @param[in] reqBuf - the IPMI packet.
12 * @param[in] replyBuf - Pointer to buffer for any response.
13 * @param[in,out] dataLen - Initially reqBuf length, set to replyBuf
14 * length when done.
15 * @return corresponding IPMI return code.
16 */
17ipmi_ret_t startTransfer(UpdateInterface* updater, const uint8_t* reqBuf,
18 uint8_t* replyBuf, size_t* dataLen);