vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 1 | #ifndef __HOST_IPMID_IPMI_H__ |
| 2 | #define __HOST_IPMID_IPMI_H__ |
| 3 | #include "ipmid-api.h" |
Chris Austen | 41a4b31 | 2015-10-25 03:45:42 -0500 | [diff] [blame] | 4 | #include <stdio.h> |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 5 | #include "host-services.h" |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 6 | |
| 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. |
| 10 | ipmi_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" |
Chris Austen | 4f1c79d | 2015-10-13 12:32:13 -0500 | [diff] [blame] | 15 | |
| 16 | // The BT FIFO in the AST2400 can only handle 64 bytes. |
| 17 | // Can only allow 63 because the BT interface still |
| 18 | // needs 1 byte for the length field. |
Chris Austen | 2278d90 | 2015-12-07 22:37:26 -0600 | [diff] [blame] | 19 | #define MAX_IPMI_BUFFER 64 |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 20 | |
Chris Austen | 41a4b31 | 2015-10-25 03:45:42 -0500 | [diff] [blame] | 21 | extern FILE *ipmiio, *ipmidbus, *ipmicmddetails; |
| 22 | |
Chris Austen | 10ccc0f | 2015-12-10 18:27:04 -0600 | [diff] [blame] | 23 | int set_sensor_dbus_state_s(uint8_t , const char *, const char *); |
| 24 | int set_sensor_dbus_state_y(uint8_t , const char *, const uint8_t); |
| 25 | #endif |