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>
2 files changed
tree: 46a1b0c486199ac60e94c4402d7eea9e68d02676
  1. linux/
  2. .clang-format
  3. .clang-ignore
  4. CMakeLists.txt
  5. LICENSE
  6. MAINTAINERS
  7. peci.c
  8. peci.h
  9. peci_cmds.c
  10. 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.