blob: 9f1ee9512e259a66a861b0fe33792a3d5e1386f2 [file] [log] [blame]
vishwabmcba0bd5f2015-09-30 16:50:23 +05301#ifndef __HOST_IPMID_IPMI_H__
2#define __HOST_IPMID_IPMI_H__
Patrick Williams37af7332016-09-02 21:21:42 -05003#include "host-ipmid/ipmid-api.h"
Chris Austen41a4b312015-10-25 03:45:42 -05004#include <stdio.h>
vishwa36993272015-11-20 12:43:49 -06005#include "host-services.h"
vishwabmcba0bd5f2015-09-30 16:50:23 +05306
7// When the requester sends in a netfn and a command along with data, this
8// function will look for registered handlers that will handle that [netfn,cmd]
9// and will make a call to that plugin implementation and send back the response.
10ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t, ipmi_request_t,
11 ipmi_response_t, unsigned int *data_len);
12
13// Plugin libraries need to _end_ with .so
14#define IPMI_PLUGIN_EXTN ".so"
Adriana Kobylak87e080b2016-07-10 13:16:53 -050015// Plugin libraries can be versioned with suffix .so.*
16#define IPMI_PLUGIN_SONAME_EXTN ".so."
Chris Austen4f1c79d2015-10-13 12:32:13 -050017
18// The BT FIFO in the AST2400 can only handle 64 bytes.
19// Can only allow 63 because the BT interface still
20// needs 1 byte for the length field.
Chris Austen2278d902015-12-07 22:37:26 -060021#define MAX_IPMI_BUFFER 64
vishwabmcba0bd5f2015-09-30 16:50:23 +053022
Chris Austen41a4b312015-10-25 03:45:42 -050023extern FILE *ipmiio, *ipmidbus, *ipmicmddetails;
24
Adriana Kobylak87e080b2016-07-10 13:16:53 -050025#endif