summaryrefslogtreecommitdiffstats
path: root/ipmid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ipmid.hpp')
-rw-r--r--ipmid.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/ipmid.hpp b/ipmid.hpp
new file mode 100644
index 0000000..f465072
--- /dev/null
+++ b/ipmid.hpp
@@ -0,0 +1,27 @@
+#ifndef __HOST_IPMID_IPMI_H__
+#define __HOST_IPMID_IPMI_H__
+#include "ipmid-api.h"
+#include <stdio.h>
+#include "host-services.h"
+
+// When the requester sends in a netfn and a command along with data, this
+// function will look for registered handlers that will handle that [netfn,cmd]
+// and will make a call to that plugin implementation and send back the response.
+ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t, ipmi_request_t,
+ ipmi_response_t, unsigned int *data_len);
+
+// Plugin libraries need to _end_ with .so
+#define IPMI_PLUGIN_EXTN ".so"
+// Plugin libraries can be versioned with suffix .so.*
+#define IPMI_PLUGIN_SONAME_EXTN ".so."
+
+// The BT FIFO in the AST2400 can only handle 64 bytes.
+// Can only allow 63 because the BT interface still
+// needs 1 byte for the length field.
+#define MAX_IPMI_BUFFER 64
+
+extern FILE *ipmiio, *ipmidbus, *ipmicmddetails;
+
+int set_sensor_dbus_state_s(uint8_t , const char *, const char *);
+int set_sensor_dbus_state_y(uint8_t , const char *, const uint8_t);
+#endif
OpenPOWER on IntegriCloud