Add Fii-oem-ipmi command
Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
Change-Id: I6026b28564ad9c689347aac19d41234c150ebb67
diff --git a/include/bioscommands.hpp b/include/bioscommands.hpp
new file mode 100644
index 0000000..15b6c13
--- /dev/null
+++ b/include/bioscommands.hpp
@@ -0,0 +1,26 @@
+/********************************************************************************
+* HON HAI Precision IND.Co., LTD. *
+* Personal Computer & Enterprise Product Business Group *
+* Enterprise Product Business Group *
+* *
+* Copyright (c) 2010 by FOXCONN/CESBG/CABG/SRD. All rights reserved. *
+* All data and information contained in this document is confidential *
+* and proprietary information of FOXCONN/CESBG/CABG/SRD and all rights *
+* are reserved. By accepting this material the recipient agrees that *
+* the information contained therein is held in confidence and in trust *
+* and will not be used, copied, reproduced in whole or in part, nor its *
+* contents revealed in any manner to others without the express written *
+* permission of FOXCONN/CESBG/CABG/SRD. *
+* *
+********************************************************************************/
+
+#pragma once
+
+#define BOOT_COUNT_FILE "/etc/conf/bios.cnt"
+
+enum fii_bios_cmds
+{
+ FII_CMD_BIOS_BOOT_COUNT = 0x71,
+};
+
+#define FII_CMD_BIOS_BOOT_COUNT_LEN 5
diff --git a/include/common.hpp b/include/common.hpp
new file mode 100644
index 0000000..c2d64a9
--- /dev/null
+++ b/include/common.hpp
@@ -0,0 +1,32 @@
+/********************************************************************************
+* HON HAI Precision IND.Co., LTD. *
+* Personal Computer & Enterprise Product Business Group *
+* Enterprise Product Business Gro:qup *
+* *
+* Copyright (c) 2010 by FOXCONN/CESBG/CABG/SRD. All rights reserved. *
+* All data and information contained in this document is confidential *
+* and proprietary information of FOXCONN/CESBG/CABG/SRD and all rights *
+* are reserved. By accepting this material the recipient agrees that *
+* the information contained therein is held in confidence and in trust *
+* and will not be used, copied, reproduced in whole or in part, nor its *
+* contents revealed in any manner to others without the express written *
+* permission of FOXCONN/CESBG/CABG/SRD. *
+* *
+********************************************************************************/
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <iostream>
+#include <iomanip>
+#include <sstream>
+#include <fstream>
+
+#include <ipmid/api.hpp>
+#include <ipmid/utils.hpp>
+#include <ipmid/message.hpp>
+#include <phosphor-logging/log.hpp>
+#include <sdbusplus/message/types.hpp>
+
+#define OP_CODE_READ 0b00
+#define OP_CODE_WRITE 0b01
+
diff --git a/include/systemcommands.hpp b/include/systemcommands.hpp
new file mode 100644
index 0000000..2a67a0b
--- /dev/null
+++ b/include/systemcommands.hpp
@@ -0,0 +1,24 @@
+/********************************************************************************
+* HON HAI Precision IND.Co., LTD. *
+* Personal Computer & Enterprise Product Business Group *
+* Enterprise Product Business Group *
+* *
+* Copyright (c) 2010 by FOXCONN/CESBG/CABG/SRD. All rights reserved. *
+* All data and information contained in this document is confidential *
+* and proprietary information of FOXCONN/CESBG/CABG/SRD and all rights *
+* are reserved. By accepting this material the recipient agrees that *
+* the information contained therein is held in confidence and in trust *
+* and will not be used, copied, reproduced in whole or in part, nor its *
+* contents revealed in any manner to others without the express written *
+* permission of FOXCONN/CESBG/CABG/SRD. *
+* *
+********************************************************************************/
+
+#pragma once
+
+#define PCIEINFO_COMMAND "i2cget -y -a -f 26 0x76 0x01 i 2"
+
+enum fii_sys_cmds
+{
+ FII_CMD_SYS_PCIE_INFO = 0x03,
+};