Make code c portable

Changing struct init to compile with C

Tested:
Built code with cmake --build .

Change-Id: I72836a897e73cf1a3b13ffa21d2254cc9db9529b
Signed-off-by: Nirav Shah <nirav.j2.shah@intel.com>
2 files changed
tree: ec39ac17ab12229a3eae9b1f21479f3bf19d8733
  1. linux/
  2. service_files/
  3. .clang-format
  4. .clang-ignore
  5. CMakeLists.txt
  6. dbus_raw_peci.cpp
  7. LICENSE
  8. MAINTAINERS
  9. OWNERS
  10. peci.c
  11. peci.h
  12. peci_cmds.c
  13. 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.