summaryrefslogtreecommitdiffstats
path: root/host-ipmid/ipmid-api.h
Commit message (Collapse)AuthorAgeFilesLines
* Add kcs selfchannel support & define for LAN toossekar2018-11-201-0/+17
| | | | | | | | | | Define sudo API's for returning channel index for self channel. At moment, This API returns KCS for host-ipmi Change-Id: Icefd5d949e94d4399adaffdad102ccb18c1b7cdc Signed-off-by: ssekar <suryakanth.sekar@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* host-ipmid: add more ipmi error codesPatrick Venture2018-11-181-0/+4
| | | | | | | Add more IPMI error codes to header for use by ipmi handlers. Change-Id: Iceef9cabcb07ad67024275fd15e886706ba7698d Signed-off-by: Patrick Venture <venture@google.com>
* host-ipmid: ipmid-api: drop extern C linkingPatrick Venture2018-10-251-10/+1
| | | | | | | | Header not used by any C code at this point, drop extern C linking and unused headers associated with C compilation. Change-Id: Icdb1dd220d158256562a2529d9aa7b03ed1e2196 Signed-off-by: Patrick Venture <venture@google.com>
* Fix IPMI SEL reservations and cancellationsJason M. Bills2018-10-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Per the IPMI Spec, the SEL must be reserved to Delete an entry Clear the SEL Get a partial entry Add a partial entry The current SEL reservation must be cancelled when A SEL entry is added A SEL entry is deleted The SEL is cleared The device is reset A new reservation is requested This change adds a reservation status to track when a reservation is active and a method to cancel the current reservation, and it uses that to cancel the reservation in the Delete, Clear, and Add SEL methods. Change-Id: Ifd72e6d06ecc622855bd9ce8cc3928cbd0f2c34b Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* apphandler: Implement Get/Set System Info ParameterXo Wang2018-09-251-0/+2
| | | | | | | | | | | | | | | | Implement Get System Info Parameter using the parameter storage code to back the string-type parameters. Supports up to 255 chunks (known as "sets" in the spec) for those parameters. Currently, iterated reads by chunk of a string parameter will repeatedly invoke that parameter's callback, which can result in chunks being incoherent with each other if the string changes between invocations. This is noted in a TODO comment. Stub out Set System Info Parameter. Full implementation for that is pending support for read-only flags in the parameter storage code. Change-Id: If0a9d807725ccf1f1f62e931010024841575469c Signed-off-by: Xo Wang <xow@google.com> Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-09-071-33/+34
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Add OemRouter facility.Peter Hanson2018-07-251-0/+1
| | | | | | | | | | | | | OemRouter adds a facility to register OEM Group Message handlers, then dispatch matching messages to the registered handler. Added as a core source so that any dynamic provider can register its messages without requiring any specific load order. Includes code fixes for x86 portability. Change-Id: I47b8fe7873e3c7fdf35a00d3c8a7e17d30c398c4 Signed-off-by: Peter Hanson <peterh@google.com> Signed-off-by: Patrick Venture <venture@google.com>
* Remove trailing spacesGunnar Mills2018-04-181-1/+1
| | | | | Change-Id: I3a58137b3300fcfe51a4182eb304a1b70885ad30 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* sensorhandler: Enable mutability based set functionJayanth Othayoth2018-04-111-0/+1
| | | | | | | Resolves openbmc/openbmc#2980 Change-Id: I67afd4e84ec96e5cfc2dd315604d70f41c67a438 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* watchdog: Consistently return errors for dbus failuresWilliam A. Kennington III2018-02-061-0/+1
| | | | | | | | | This adds return codes for all of the dbus failures which inform the host that it should retry the IPMI command as dbus related errors should be ephemeral. Change-Id: I090f488535625a996347677a0c8addbdff0996c0 Signed-off-by: William A. Kennington III <wak@google.com>
* watchdog: Implement error on reset of disabled watchdogWilliam A. Kennington III2018-01-241-0/+1
| | | | | | | | | This enables the host to recover when the BMC resets or the daemon loses state for some reason. A well formed host will resend the SetTimeout command if it encounters this error code. Change-Id: Ib5fd50ac3ad83ef820f0209354aa8f084a563995 Signed-off-by: William A. Kennington III <wak@google.com>
* Add IBM OEM NetFn(0x3A)Tom Joseph2017-10-251-1/+2
| | | | | Change-Id: If6c4b2c031981f0dba70799dc8cb42840def2dd2 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add sd_event processing to host ipmid applicationAndrew Geissler2017-05-091-0/+1
| | | | | | | | In order to support the timer function, it's required to use the sd_event loop instead of sdbus loop Change-Id: I3a30fee1a21cbfadd0cbb5478bf46bea4b5ca0b8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add IPMI completion code for Invalid data field in requestTom Joseph2017-03-201-0/+1
| | | | | Change-Id: I7ae21be6eefb8c09835277249793a5f97657aee6 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add privilege level for each IPMI commandTom2017-01-171-2/+20
| | | | | Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Completion Code for Requested Length invalidTom2016-09-231-0/+1
| | | | | Change-Id: If186487d7118010c30e39ab96f13558ba5d7f6fb Signed-off-by: Tom <tomjoseph@in.ibm.com>
* Allow out-of-tree buildsPatrick Williams2016-09-061-0/+111
Change-Id: If4b97e65f63c3abbf23140dd97b9febe00b3be0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud