Chris Austen | ac4604a | 2015-10-13 12:43:27 -0500 | [diff] [blame] | 1 | #ifndef __HOST_IPMI_SEN_HANDLER_H__ |
| 2 | #define __HOST_IPMI_SEN_HANDLER_H__ |
| 3 | |
Chris Austen | 0012e9b | 2015-10-22 01:37:46 -0500 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | |
Chris Austen | ac4604a | 2015-10-13 12:43:27 -0500 | [diff] [blame] | 6 | // IPMI commands for net functions. |
| 7 | enum ipmi_netfn_sen_cmds |
| 8 | { |
Chris Austen | 10ccc0f | 2015-12-10 18:27:04 -0600 | [diff] [blame] | 9 | IPMI_CMD_GET_SENSOR_READING = 0x2D, |
Chris Austen | ac4604a | 2015-10-13 12:43:27 -0500 | [diff] [blame] | 10 | IPMI_CMD_GET_SENSOR_TYPE = 0x2F, |
| 11 | IPMI_CMD_SET_SENSOR = 0x30, |
Chris Austen | ac4604a | 2015-10-13 12:43:27 -0500 | [diff] [blame] | 12 | }; |
| 13 | |
Chris Austen | 0012e9b | 2015-10-22 01:37:46 -0500 | [diff] [blame] | 14 | #define MAX_DBUS_PATH 128 |
| 15 | struct dbus_interface_t { |
| 16 | uint8_t sensornumber; |
| 17 | uint8_t sensortype; |
| 18 | |
| 19 | char bus[MAX_DBUS_PATH]; |
| 20 | char path[MAX_DBUS_PATH]; |
| 21 | char interface[MAX_DBUS_PATH]; |
| 22 | }; |
Chris Austen | ac4604a | 2015-10-13 12:43:27 -0500 | [diff] [blame] | 23 | #endif |