summaryrefslogtreecommitdiffstats
path: root/globalhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the global warm reset ipmi commandYong Li2019-05-171-4/+0
| | | | | | | | | | | | | | | This warm reset command is using the duplicated API as cold reset. As per IPMI spec, warm reset should not alter volatile settings, and has to just reset the interface which is not what current code does. Hence to avoid confusion, remove this warm reset command Tested: "ipmitool raw 6 3" command return "Invalid command", and BMC does not reboot Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I62f37c9b8386a817ce069c26ade6760de73b1d16 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* globalhandler: move cold & warm reset to new APIanil kumar appana2019-05-071-14/+15
| | | | | | | | | | | | | | | | | | Rewritten "cold & warm reset" command to use the newly introduced IPMI provider API. Tested: verified ipmitool cold reset and warm reset commands ipmitool raw 6 2 //cold reset command system reboots ipmitool raw 6 3 //warm reset command system reboots Change-Id: I4638fffe33deb1c97f51f97c8f09fef6a8688fba Signed-off-by: anil kumar appana <anil.kumarx.appana@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Only include ipmid/api.hpp for the new APIVernon Mauery2019-04-081-2/+1
| | | | | | | | | | | | | | After some feedback from users of the new IPMI API, they wanted to see two things: 1) don't require ipmid/api.hpp and ipmid/registration.hpp to be able to write new handlers 2) only require including ipmid/api.hpp (instead of ipmid/api.h) So now, by simply including ipmid/api.hpp instead of ipmid/api.h (deprecated), handlers incorporating the new IPMI API can be written. Change-Id: I446dcce70cff03d4ecc28c658292d052485f77fc Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Move util.cpp/util.hpp to libipmidVernon Mauery2019-03-251-2/+1
| | | | | | | | | | | | | | | | These are functions that are used widely by ipmid providers, so it makes sense to put them in libipmi.so (the library that all providers must link against). Tested-by: use nm to inspect the binaries to see that the symbols are in the expected library. arm-openbmc-linux-gnueabi-nm libipmid.so.0.0.0 \ | grep getDbusObject 0001063c T _ZN4ipmi13getDbusObjectERN9sdbusplus.... Change-Id: I1221f807f2711c5301c5574623564ea1ae48a437 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Create libipmid and libipmid-hostWilliam A. Kennington III2019-02-071-1/+1
| | | | | | | | | | | | | | | | | | | This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and daemon type specific code. This is needed so we can resolve all of the symbols in the providers at link time instead of discovering bad linkage by building and running a full ipmi daemon. In future commits libraries will be packaged for libipmid and libipmid-host which provide all of the symbols used by the current set of ipmid providers. This is the first step, it just separates and renames the headers. Legacy symlinks are still kept around for compatability. It also adds stub libraries so that external users can start linking as intended. Change-Id: I6bbd7a146362012d26812a7b039d1c4075862cbd Signed-off-by: William A. Kennington III <wak@google.com>
* replaced c headers with cpp where applicablePatrick Venture2018-09-251-1/+0
| | | | | Change-Id: I23a70eb540ccde5d2aba467426769feffb07b516 Signed-off-by: Patrick Venture <venture@google.com>
* rename headers to match stylePatrick Venture2018-09-251-4/+4
| | | | | | | | | | | | | | | | | | 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-9/+12
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Remove use of legacy bmc control interfaceNagaraju Goruganti2018-03-121-77/+36
| | | | | | | | | | | Tested: Tested using below given command for cold/warm resets >ipmitool mc reset [ warm | cold ] -I dbus Resolves openbmc/openbmc#2919 Change-Id: I15fc5ab53b7d8b2b17bc9fa8f3f2030e93bd0483 Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Add privilege level for each IPMI commandTom2017-01-171-2/+6
| | | | | Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* global: replace mapper method with library callBrad Bishop2016-10-101-70/+5
| | | | | | | | Use the sdbus client binding for this to protect from changes within the binding itself. Change-Id: I152b254bbf21360a5096d9e0f48bd99fc29d737b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add IPMI coldReset command supportNan Li2016-10-061-4/+22
| | | | | | | | | | | * Implement by calling dbus method for coldReset * Optimize warmReset/coldReset code * Be implemented with related changes in skeleton repository Resolves openbmc/openbmc#437 Change-Id: Ia33805c73b5d345419918c467ef7b9cf6fbb246d Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
* Ensure all tools are building with -Wall and -WerrorMatthew Barth2016-09-211-3/+1
| | | | | | | | Corrected resulting compiler errors from correctly adding -Wall & -Werror within configure.ac. Change-Id: Ia7aaafa83103322ad4b50171d62144624dd71e42 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Allow out-of-tree buildsPatrick Williams2016-09-061-1/+1
| | | | | Change-Id: If4b97e65f63c3abbf23140dd97b9febe00b3be0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Switch C++ source files to .cpp extensionMatthew Barth2016-08-081-0/+152
Change-Id: I495186b4afd58ec1e5d9d5c6472394f96541d17d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud