summaryrefslogtreecommitdiffstats
path: root/dcmihandler.hpp
Commit message (Collapse)AuthorAgeFilesLines
* dcmihandler: Add DCMI Power management support checkKirill Pakhomov2019-02-121-0/+9
| | | | | | | | | | According to section 6.6 Power management of DCMI specification, if power management feature is disabled, the related commands (Get/Set/Activate/Deactive Power Limit) should be unsupported. Change-Id: I887f33babb2fe7a1ab97bb2d0720a693171e48a1 Signed-off-by: Kirill Pakhomov <k.pakhomov@yadro.com>
* dcmihandler: Add parameterization to JSON parser method.Kirill Pakhomov2019-02-121-4/+7
| | | | | | | | Pass JSON config file name as a parameter to make parser re-usable with various config files. Change-Id: I5bf1e91121e0e75be58383151f265b32f39a5b60 Signed-off-by: Kirill Pakhomov <k.pakhomov@yadro.com>
* rename headers to match stylePatrick Venture2018-09-251-4/+1
| | | | | | | | | | | | | | | | | | Moving headers from ".h" to ".hpp" Reworked the header inclusion a bit so that host-ipmid is treated as a library, and local headers aren't. renamed apphandler.h => apphandler.hpp renamed chassishandler.h => chassishandler.hpp renamed globalhandler.h => globalhandler.hpp renamed sensorhandler.h => sensorhandler.hpp renamed storageaddsel.h => storageaddsel.hpp renamed storagehandler.h => storagehandler.hpp renamed systemintfcmds.h => systemintfcmds.hpp Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914 Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-09-071-222/+220
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* DCMI: Add get/set Configuration Parameters commandNagaraju Goruganti2018-02-221-0/+76
| | | | | | | | | | | | | | | | 1.Systemd-networkd doesn't allow to configure DHCP timings, so set is not implemented. 2.Get command to DHCP timings will return hardcoded values from systemd-networkd source code. 3.Systemd-networkd doesn't support Random Back off, so not implemented. 4.As the info about VendorClassIdentifier is not clear in the spec, Right now we are not supporting DHCP Option 60 and Option 43. We will open new issue for it. Resolves openbmc/openbmc#2752 Change-Id: I2682e5e43ceb19647e5240b095f601777213530b Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* dcmi: get sensor info: read configDeepak Kodihalli2018-02-161-0/+8
| | | | | | | | | | This commit adds the code to read dcmi sensor config, in order to respond to the 'get sensor info' command. Resolves openbmc/openbmc#2623. Change-Id: Id661ec2c1bae214b503308577d7f825a5dfeb629 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* dcmi: implement get sensor infoDeepak Kodihalli2018-02-161-12/+88
| | | | | | | | | | | | This commit implements the plumbing around the 'Get Sensor Info' command. It doesn't read the sensor information yet. That code is coming up in a subsequent commit. Refactor some of the get temperature readings code, in order to reuse certain common aspects for this commit. Change-Id: I0cb531b5b75e98cc9e76509f84f832be9997fee0 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* DCMI: Read power value from the configured D-Bus object pathMarri Devender Rao2018-02-061-0/+42
| | | | | | | | | 1) Parse the power_reading JSON configuration file to get the D-Bus object path for the power reading. 2) Read the power reading value from the specified D-Bus object. Change-Id: I4b9f0703318e8db2c86d0b337e524eee6da33d08 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* dcmi: fix max temperature constantDeepak Kodihalli2018-02-061-1/+1
| | | | | | | | Change the max temperature constant from 128 (degrees C) to 127, because the temperature is represented with 7 bits (the 8th bit being the sign). Change-Id: I43d2edf8235ca69a4f31a72949079601c38355b1 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* dcmi: get temperature readings: read temp sensorsDeepak Kodihalli2018-02-011-0/+25
| | | | | | | | | | | This commit adds the code to read temperatures from various sensors. A JSON config file tells what D-Bus object(s) to look up for a specific temperature reading. Resolves openbmc/openbmc#2626 Change-Id: Ic357ec2a53ff250a2517d68defe5850ef353568a Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* dcmi : implement get temperature readingsDeepak Kodihalli2018-02-011-0/+82
| | | | | | | | | This commit implements the plumbing around the 'Get Temperature Readings' command. It doesn't read the temperatures from the relevant sensors. That code is coming up in a subsequent commit. Change-Id: I4514b65eb3ca65d52dd35185338a2c397e9a76ca Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* DCMI: Implement Get DCMI capabilities info command.Dhruvaraj Subhashchandran2018-01-311-0/+62
| | | | | | | | | | This commit adds ipmi changes for supporting the get DCMI capabilities command Resolves openbmc/openbmc#2618 Change-Id: I7d0e7c132f4a8d459351e025fa2bfca9fcf1340b Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Add DCMI Get/Set Management Controller Id StringVladislav Vovchenko2017-10-161-1/+53
| | | | | | | Resolves openbmc/openbmc#1855 Change-Id: I878c7bcb1ea8b46cd3e932b1cbb2290fe612f652 Signed-off-by: Vladislav Vovchenko <vlad.vovchenko93@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* dcmi: Put enum ipmi_netfn_sen_cmds inside namespaceRatan Gupta2017-08-111-9/+9
| | | | | | | | | The enum is defined in sensorhandler.h as well as here it may happen that some cpp will include both header files and it may lead to multiple definition error. Change-Id: I848de8cbde42831303493862a7bdf8966176b9d1 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* dcmi: Implement activate/deactivate power limitTom Joseph2017-07-281-0/+28
| | | | | | | Resolves openbmc/openbmc#1955 Change-Id: I4f97e3f22e9a36879dba56a06ae3c6bb5d34e34c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: Implement set power limit commandTom Joseph2017-07-281-0/+33
| | | | | Change-Id: I6427a0715a4bba5e18a5e483309a23f8493ea370 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: Refactor get power limit commandTom Joseph2017-07-281-1/+44
| | | | | Change-Id: I31755eaccb17c013fd2c1a3e43e7ec95a1947ba3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Add API to write asset tag to the DBUS objectTom Joseph2017-07-181-0/+6
| | | | | Change-Id: Ia4bf3f99a865617535c65a023c8e697792cd43b4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Implement Set Asset tag commandTom Joseph2017-07-181-0/+22
| | | | | | | Resolves openbmc/openbmc#1854 Change-Id: Iba00a732aa30fb60fc0b1550daec0e4055af74fa Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Implement the Get Asset Tag commandTom Joseph2017-07-181-0/+28
| | | | | Change-Id: Ic2fb1e707174ece63fbb758bf1422c2c4d95723b Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Add API to read asset tag from dbusTom Joseph2017-07-181-0/+51
Change-Id: I00958d4bb54896ea7d13aaffd7e0ebf3c20ef3de Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud