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>
2 files changed
tree: c82a8d4fd17f5b792422cfac42b77b4501c3f64e
  1. linux/
  2. service_files/
  3. subprojects/
  4. .clang-format
  5. .clang-format-ignore
  6. dbus_raw_peci.cpp
  7. LICENSE
  8. meson.build
  9. meson.options
  10. OWNERS
  11. peci.c
  12. peci.h
  13. peci.pc.in
  14. peci_cmds.c
  15. README.md
README.md

libpeci

libpeci is a library that provides various APIs to interface with the IOCTLs provided by the PECI driver in the OpenBMC kernel. Currently available here:

https://github.com/openbmc/linux/blob/dev-5.4/include/uapi/linux/peci-ioctl.h

peci_cmds

This repo also includes a peci_cmds command-line utility with functions that map to the libpeci APIs. It can be used to test PECI functionality across the library, driver, and hardware.

dbus_raw_peci

This repo also includes dbus_raw_peci which provides a raw-peci daemon that exposes a raw PECI interface that is accessible over D-Bus. It can be used when an application needs to send a raw PECI command without loading the full PECI library.