Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | Today | - | ||||
msl/ | H | 08-Dec-2022 | - | 105 | 73 | |
subprojects/ | H | 29-Mar-2024 | - | 36 | 26 | |
test/ | H | 17-Aug-2024 | - | 294 | 216 | |
tools/ | H | 06-May-2021 | - | 95 | 50 | |
.clang-format | H A D | 17-Aug-2024 | 3.7 KiB | 137 | 135 | |
.gitignore | H A D | 06-May-2021 | 25 | 3 | 2 | |
.lcovrc | H A D | 07-Mar-2021 | 80 | 4 | 3 | |
.shellcheck | H A D | 14-Apr-2021 | 0 | |||
70-hwmon.rules | H A D | 06-May-2021 | 182 | 3 | 2 | |
70-iio.rules | H A D | 06-May-2021 | 178 | 3 | 2 | |
LICENSE | H A D | 07-Mar-2021 | 11.1 KiB | 203 | 169 | |
OWNERS | H A D | 22-Jul-2022 | 1.6 KiB | 49 | 44 | |
README.iio.md | H A D | 08-Dec-2022 | 732 | 14 | 10 | |
README.md | H A D | 08-Dec-2022 | 953 | 28 | 18 | |
average.cpp | H A D | 17-Aug-2024 | 1.4 KiB | 51 | 33 | |
average.hpp | H A D | 17-Aug-2024 | 2.4 KiB | 71 | 21 | |
env.cpp | H A D | 07-Mar-2021 | 855 | 35 | 11 | |
env.hpp | H A D | 07-Mar-2021 | 3 KiB | 124 | 59 | |
fan_pwm.cpp | H A D | 17-Aug-2024 | 1.3 KiB | 55 | 41 | |
fan_pwm.hpp | H A D | 25-Jul-2022 | 1.6 KiB | 62 | 29 | |
fan_speed.cpp | H A D | 15-Feb-2024 | 2.6 KiB | 90 | 71 | |
fan_speed.hpp | H A D | 25-Jul-2022 | 1.9 KiB | 69 | 30 | |
gpio_handle.cpp | H A D | 11-May-2023 | 1.5 KiB | 57 | 46 | |
gpio_handle.hpp | H A D | 11-May-2023 | 496 | 22 | 9 | |
hwmon.cpp | H A D | 07-Mar-2021 | 497 | 29 | 21 | |
hwmon.hpp | H A D | 07-Mar-2021 | 3 KiB | 103 | 75 | |
hwmonio.cpp | H A D | 11-May-2023 | 5.9 KiB | 226 | 129 | |
hwmonio.hpp | H A D | 07-Mar-2021 | 4.4 KiB | 140 | 57 | |
interface.hpp | H A D | 01-Dec-2023 | 2 KiB | 56 | 47 | |
mainloop.cpp | H A D | 11-Nov-2024 | 24.9 KiB | 705 | 505 | |
mainloop.hpp | H A D | 01-Dec-2023 | 5.1 KiB | 171 | 75 | |
meson.build | H A D | 30-Jul-2024 | 3.3 KiB | 139 | 120 | |
meson.options | H A D | 30-Jul-2024 | 1.1 KiB | 42 | 38 | |
phosphor-hwmon.conf | H A D | 06-May-2021 | 257 | 8 | 7 | |
readd.cpp | H A D | 11-May-2023 | 2.5 KiB | 93 | 57 | |
sensor.cpp | H A D | 17-Aug-2024 | 11.9 KiB | 379 | 279 | |
sensor.hpp | H A D | 11-Nov-2024 | 7.5 KiB | 249 | 85 | |
sensorset.cpp | H A D | 07-Mar-2021 | 1.6 KiB | 55 | 27 | |
sensorset.hpp | H A D | 07-Mar-2021 | 2 KiB | 75 | 29 | |
start_hwmon.sh.in | H A D | 30-Jul-2024 | 977 | 42 | 32 | |
sysfs.cpp | H A D | 17-Aug-2024 | 6.5 KiB | 245 | 165 | |
sysfs.hpp | H A D | 17-Aug-2024 | 2.3 KiB | 78 | 21 | |
targets.hpp | H A D | 17-Aug-2024 | 5 KiB | 178 | 130 | |
thresholds.hpp | H A D | 25-Jul-2022 | 6.2 KiB | 180 | 138 | |
types.hpp | H A D | 25-Jul-2022 | 399 | 16 | 12 | |
util.hpp | H A D | 07-Mar-2021 | 674 | 36 | 21 | |
xyz.openbmc_project.Hwmon@.service | H A D | 11-Apr-2022 | 323 | 11 | 9 |
README.iio.md
1# Phosphor OpenBMC and IIO devices 2 3Phosphor OpenBMC currently does not provide an IIO device to DBUS bridge in the 4same way that hwmon devices are bridged by the phosphor-hwmon-readd application. 5 6Until a daemon can be written, the hwmon-iio bridge driver can be used with the 7phosphor-hwmon-readd application, with the limitation that only a single iio 8channel can be configured per iio-hwmon platform instance. Typically device 9trees are setup with all the iio-channels under a single iio-hwmon platform 10device - doing this will result in undefined behavior from phosphor-hwmon-readd. 11 12If a true IIO bridging daemon becomes available in the future, 13phosphor-hwmon-readd will not support hwmon-iio bridge devices in any capacity. 14
README.md
1# phosphor-hwmon 2 3Exposes generic hwmon entries as DBus objects. More information can be found at 4[Sensor Architecture](https://github.com/openbmc/docs/blob/master/architecture/sensor-architecture.md) 5 6## To Build 7 8To build this package, do the following steps: 9 101. meson setup build 112. ninja -C build 12 13To clean the repository run `rm -rf build`. 14 15## D-Bus bus names 16 17To enable the use of Linux features like cgroups prioritization and udev/systemd 18control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs 19class instance. 20 21This requires an algorithm for selecting a stable, well-known D-Bus busname. 22 23The algorithm is `<PREFIX>-<ID>.Hwmon<N>` where PREFIX is a meson configurable 24prefix (`BUSNAME_PREFIX=xyz.openbmc_project` by default), ID is either a 25`std::hash` of the `/sys/devices` path backing the hwmon class instance or 26provided suffix value from the command line, and N is the implemented 27phosphor-hwmon D-Bus API version. 28