commit | a2ceec2aa139277cebb62e1eda449ef60fa4c962 | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@linux.intel.com> | Tue May 05 13:16:00 2020 -0700 |
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | Thu May 07 14:42:20 2020 -0700 |
tree | 46a1b0c486199ac60e94c4402d7eea9e68d02676 | |
parent | 62cbc719c89b971efdd409cd5af8ee43bc4e1e83 [diff] |
Move linux header include to peci.c The linux header is only needed by libpeci, so moving it to peci.c so applications can include peci.h without also having to include the linux header. Tested: Ran PECI commands from various applications and utilities and confirmed that PECI still works correctly without the need to include kernel headers. Change-Id: Icb3420a8ea7c72d2349bb2540c4c9965fe2c9e89 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
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
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.