Add hwmon support to PMBus class

Add support to allow the class to handle accessing
hwmon files even though the device path passed to
the constructor wasn't a hwmon path.

This is useful because the users of this class have
to access files in both locations.

For example:
  PMBus p(basePath);

  p.write("myfile", 1, Type::Base)
    -> writes to basePath/myfile

  p.write("myfile", 1, Type::Hwmon)
    -> writes to basePath/hwmon/hwmonN/myfile
       where hwmonN is the hwmon dir for the device

Change-Id: Ic66835dace2a9958310c9f4ee8cbcaae3669dd0f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2 files changed
tree: 6c3d2356bc218a367281f78c0e5f87ed93a01188
  1. .gitignore
  2. argument.hpp
  3. bootstrap.sh
  4. configure.ac
  5. device.hpp
  6. device_monitor.hpp
  7. event.hpp
  8. LICENSE
  9. Makefile.am
  10. pmbus.cpp
  11. pmbus.hpp
  12. README.md
  13. timer.cpp
  14. timer.hpp
  15. utility.cpp
  16. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.