summaryrefslogtreecommitdiffstats
path: root/fan_enclosure.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move getInvService() into utility function.Brandon Wyman2017-03-201-36/+2
| | | | | | | Resolves openbmc/openbmc#1299 Change-Id: I61f511dcc15e67393a47bd0395b752d2e6f17f11 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
* ObjectMapper: revert service and intf name changePatrick Williams2017-03-201-2/+2
| | | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: I6080bcefeb2c4fbeff2311aeb3abe1af74652994 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Move object_mapper per dbus path conventions.Leonel Gonzalez2017-03-201-3/+3
| | | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: Ibd1f35ef2410c7c9519095796279af0485adc3b3 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* Documentation only, no functional changeMatthew Barth2017-03-151-0/+15
| | | | | | | | | Added copyrights and comments within headers Resolves openbmc/openbmc#959 Change-Id: If58d78a39fb08251a34a88c2b6340c9fa33d2569 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Only update inventory when presence state changesMatthew Barth2017-03-151-29/+43
| | | | | | | | When the presence state of a fan enclosure, determined from all the sensors part of that fan enclosure, changes then update inventory. Change-Id: Ie80e83fa7d0200239ced7b9d2ef84664e599e8ca Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Trace mapper and inventory errorsMatthew Barth2017-03-151-4/+20
| | | | | | | | Add journal error entries for error conditions on mapper and inventory manager update calls. Change-Id: Iecb310575414878f4b83c24136e6ae1312c6f7aa Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Update inventory with latest presence stateMatthew Barth2017-03-151-1/+11
| | | | | | | | Inventory is attempted to be updated with the current presence state, which is determined from all of the fan's sensor readings. Change-Id: Ic869cf5e5fdeada8d07b3deeabf347e40da3d8ba Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Get inventory manager service nameMatthew Barth2017-03-151-2/+35
| | | | | | | Retrieve the inventory manager's service name from object mapper. Change-Id: I56c67012105b5bc389763608c998ccc756b1104a Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Function to setup fan inventory object mapMatthew Barth2017-03-151-9/+22
| | | | | | | | | The getObjectMap() function constructs the object map needed by inventory manager for the object path, interface, and properties of a fan. Change-Id: I8cce5cd611d3a0f7a2079b81f280b261aee486e2 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Enable tach signal handlerMatthew Barth2017-03-151-0/+14
| | | | | | | | | Register and handle tach change signals for each tach sensor. Inventory would be updated when all tach sensors for a specific fan enclosure have a tach value of zero. Change-Id: Idd3f53c29c68c6171d858e616fbfe868f30a4ea9 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Add tach sensors to each fan enclosureMatthew Barth2017-03-151-0/+6
| | | | | | | | | | Create a tach sensor instance for each sensor listed within a fan enclosure that uses 'tach' based presence detection. Each tach sensor has a pointer to the fan it's associated with and is added to the list of sensors for that fan enclosure. Change-Id: I9a83ec52d1a5d01e39702e185336a09edeb4d158 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Create fan enclosure objectsMatthew Barth2017-03-151-0/+4
| | | | | | | | For tach feedback based presence detected fans, a fan enclosure object is created from the properties given within the yaml file. Change-Id: I698dd7c8d05863aaaab4dcb5d4c696b15fdf941d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Add fan presence application frameworkMatthew Barth2017-03-091-0/+14
Add class framework for detecting fans by tach Change-Id: I45295fd6bcd81c62cef36320dfbc4f0da6092557 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud