Add sequenced version of peci_raw method
Most of libpeci methods have its sequenced version,
in case of intensive peci method usage it allows to
avoid unnecessary file opening and closing with each
function call.
This change adds such sequenced version of peci_raw
because for some reason it was not implemented before.
Tested: I have successfully use this new method with my
tesing application.
Change-Id: Id3d8e3459e8c5f17efc803b3847ff0ae700b74d1
Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com>
diff --git a/peci.h b/peci.h
index c2e0200..7aea0ae 100644
--- a/peci.h
+++ b/peci.h
@@ -430,6 +430,11 @@
const uint32_t cmdSize, uint8_t* pRawResp,
uint32_t respSize);
+// Provides sequential raw PECI command access
+EPECIStatus peci_raw_seq(uint8_t target, uint8_t u8ReadLen,
+ const uint8_t* pRawCmd, const uint32_t cmdSize,
+ uint8_t* pRawResp, uint32_t respSize, int peci_fd);
+
EPECIStatus peci_Lock(int* peci_fd, int timeout_ms);
void peci_Unlock(int peci_fd);
EPECIStatus peci_Ping(uint8_t target);