Add PECI library and peci_cmds utility source

This adds the PECI library and peci_cmds utility source ported
from Intel-BMC.

Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
5 files changed
tree: 9fda1a14e76bf05b4a48f4cdb5ef9e08ea91dc85
  1. .clang-format
  2. CMakeLists.txt
  3. LICENSE
  4. MAINTAINERS
  5. peci.c
  6. peci.h
  7. peci_cmds.c
  8. 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.