summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--host-ipmid/iana.hpp19
-rw-r--r--host-ipmid/oemopenbmc.hpp6
-rw-r--r--host-ipmid/oemrouter.hpp6
4 files changed, 23 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index cf45c3b..8286fd4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -121,6 +121,7 @@ libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
-flto
nobase_include_HEADERS = \
+ host-ipmid/iana.hpp \
host-ipmid/ipmid-api.h \
host-ipmid/ipmid-host-cmd.hpp \
host-ipmid/ipmid-host-cmd-utils.hpp \
diff --git a/host-ipmid/iana.hpp b/host-ipmid/iana.hpp
new file mode 100644
index 0000000..aa9e173
--- /dev/null
+++ b/host-ipmid/iana.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <cstdint>
+
+namespace oem
+{
+using Number = std::uint32_t; // smallest standard size >= 24.
+
+/*
+ * This is the OpenBMC IANA OEM Number
+ */
+constexpr Number obmcOemNumber = 49871;
+
+/*
+ * This is the Google IANA OEM Number
+ */
+constexpr Number googOemNumber = 11129;
+
+} // namespace oem
diff --git a/host-ipmid/oemopenbmc.hpp b/host-ipmid/oemopenbmc.hpp
index 8b5dc0c..f8b96af 100644
--- a/host-ipmid/oemopenbmc.hpp
+++ b/host-ipmid/oemopenbmc.hpp
@@ -6,12 +6,6 @@
namespace oem
{
-
-/*
- * This is the OpenBMC IANA OEM Number
- */
-constexpr Number obmcOemNumber = 49871;
-
/*
* OpenBMC OEM Extension IPMI Command codes.
*/
diff --git a/host-ipmid/oemrouter.hpp b/host-ipmid/oemrouter.hpp
index d6f0735..fb12750 100644
--- a/host-ipmid/oemrouter.hpp
+++ b/host-ipmid/oemrouter.hpp
@@ -1,18 +1,18 @@
#pragma once
+#include <host-ipmid/ipmid-api.h>
+
#include <array>
#include <cstdint>
#include <functional>
+#include <host-ipmid/iana.hpp>
#include <vector>
-#include "host-ipmid/ipmid-api.h"
-
namespace oem
{
constexpr size_t groupMagicSize = 3;
using Group = std::array<uint8_t, groupMagicSize>;
-using Number = uint32_t; // smallest standard size >= 24.
// Handler signature includes ipmi cmd to support wildcard cmd match.
// Buffers and lengths exclude the OemGroup bytes in the IPMI message.
OpenPOWER on IntegriCloud