blob: 73b60e63383d88d9365c6005ddd26b78c9717fdb [file] [log] [blame]
vishwabmcba0bd5f2015-09-30 16:50:23 +05301#ifndef __HOST_IPMID_IPMI_H__
2#define __HOST_IPMID_IPMI_H__
3#include "ipmid-api.h"
Chris Austen41a4b312015-10-25 03:45:42 -05004#include <stdio.h>
vishwabmcba0bd5f2015-09-30 16:50:23 +05305
6// When the requester sends in a netfn and a command along with data, this
7// function will look for registered handlers that will handle that [netfn,cmd]
8// and will make a call to that plugin implementation and send back the response.
9ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t, ipmi_request_t,
10 ipmi_response_t, unsigned int *data_len);
11
12// Plugin libraries need to _end_ with .so
13#define IPMI_PLUGIN_EXTN ".so"
Chris Austen4f1c79d2015-10-13 12:32:13 -050014
15// The BT FIFO in the AST2400 can only handle 64 bytes.
16// Can only allow 63 because the BT interface still
17// needs 1 byte for the length field.
18#define MAX_IPMI_BUFFER 63
vishwabmcba0bd5f2015-09-30 16:50:23 +053019
Chris Austen41a4b312015-10-25 03:45:42 -050020extern FILE *ipmiio, *ipmidbus, *ipmicmddetails;
21
vishwabmcba0bd5f2015-09-30 16:50:23 +053022#endif