vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 1 | #ifndef __HOST_IPMID_IPMI_H__ |
| 2 | #define __HOST_IPMID_IPMI_H__ |
Chris Austen | 41a4b31 | 2015-10-25 03:45:42 -0500 | [diff] [blame] | 3 | #include <stdio.h> |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 4 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 5 | #include "host-ipmid/ipmid-api.h" |
| 6 | |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 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] |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 9 | // and will make a call to that plugin implementation and send back the |
| 10 | // response. |
| 11 | ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t, |
| 12 | ipmi_request_t, ipmi_response_t, |
| 13 | unsigned int* data_len); |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 14 | |
| 15 | // Plugin libraries need to _end_ with .so |
| 16 | #define IPMI_PLUGIN_EXTN ".so" |
Adriana Kobylak | 87e080b | 2016-07-10 13:16:53 -0500 | [diff] [blame] | 17 | // Plugin libraries can be versioned with suffix .so.* |
| 18 | #define IPMI_PLUGIN_SONAME_EXTN ".so." |
Chris Austen | 4f1c79d | 2015-10-13 12:32:13 -0500 | [diff] [blame] | 19 | |
Gunnar Mills | d8249ee | 2018-04-12 16:33:53 -0500 | [diff] [blame] | 20 | // The BT FIFO in the AST2400 can only handle 64 bytes. |
| 21 | // Can only allow 63 because the BT interface still |
| 22 | // needs 1 byte for the length field. |
Chris Austen | 2278d90 | 2015-12-07 22:37:26 -0600 | [diff] [blame] | 23 | #define MAX_IPMI_BUFFER 64 |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 24 | |
Chris Austen | 41a4b31 | 2015-10-25 03:45:42 -0500 | [diff] [blame] | 25 | extern FILE *ipmiio, *ipmidbus, *ipmicmddetails; |
| 26 | |
Adriana Kobylak | 87e080b | 2016-07-10 13:16:53 -0500 | [diff] [blame] | 27 | #endif |