blob: b59cd028502319bef4e9d9508a1c0b5c35d63d62 [file] [log] [blame]
Patrick Venture46470a32018-09-07 19:26:25 -07001#pragma once
vishwabmcba0bd5f2015-09-30 16:50:23 +05302
Patrick Venture46470a32018-09-07 19:26:25 -07003#include <host-ipmid/ipmid-api.h>
4#include <stdio.h>
Patrick Venture0b02be92018-08-31 11:55:55 -07005
vishwabmcba0bd5f2015-09-30 16:50:23 +05306// 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]
Patrick Venture0b02be92018-08-31 11:55:55 -07008// and will make a call to that plugin implementation and send back the
9// response.
10ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t,
11 ipmi_request_t, ipmi_response_t,
12 unsigned int* data_len);
vishwabmcba0bd5f2015-09-30 16:50:23 +053013
14// Plugin libraries need to _end_ with .so
15#define IPMI_PLUGIN_EXTN ".so"
Adriana Kobylak87e080b2016-07-10 13:16:53 -050016// Plugin libraries can be versioned with suffix .so.*
17#define IPMI_PLUGIN_SONAME_EXTN ".so."
Chris Austen4f1c79d2015-10-13 12:32:13 -050018
Gunnar Millsd8249ee2018-04-12 16:33:53 -050019// The BT FIFO in the AST2400 can only handle 64 bytes.
20// Can only allow 63 because the BT interface still
21// needs 1 byte for the length field.
Chris Austen2278d902015-12-07 22:37:26 -060022#define MAX_IPMI_BUFFER 64
vishwabmcba0bd5f2015-09-30 16:50:23 +053023
Chris Austen41a4b312015-10-25 03:45:42 -050024extern FILE *ipmiio, *ipmidbus, *ipmicmddetails;