diff options
author | Peter Hanson <peterh@google.com> | 2017-06-07 17:40:45 -0700 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2018-07-25 17:31:48 +0000 |
commit | 4a58985ce0cfb24bc0eb8678a4aa9a0ac42ba524 (patch) | |
tree | c267c333630f61e249a1f9fcc4144d8438241d75 /host-ipmid/oemopenbmc.hpp | |
parent | 15309efc2c1cebadbabdb0ef5f74a38fb8b78cfd (diff) | |
download | phosphor-host-ipmid-4a58985ce0cfb24bc0eb8678a4aa9a0ac42ba524.tar.gz phosphor-host-ipmid-4a58985ce0cfb24bc0eb8678a4aa9a0ac42ba524.zip |
Add OemRouter facility.
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>
Diffstat (limited to 'host-ipmid/oemopenbmc.hpp')
-rw-r--r-- | host-ipmid/oemopenbmc.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/host-ipmid/oemopenbmc.hpp b/host-ipmid/oemopenbmc.hpp new file mode 100644 index 0000000..c3bfaa4 --- /dev/null +++ b/host-ipmid/oemopenbmc.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include "host-ipmid/ipmid-api.h" +#include "host-ipmid/oemrouter.hpp" + +namespace oem +{ + +/* + * This is the OpenBMC IANA OEM Number + */ +constexpr Number obmcOemNumber = 49871; + +/* + * OpenBMC OEM Extension IPMI Command codes. + */ +enum Cmd +{ + gpioCmd = 1, + i2cCmd = 2, + flashCmd = 3, + fanManualCmd = 4, +}; + +} // namespace oem |