diff options
author | William <bjlinan@cn.ibm.com> | 2015-12-31 19:15:17 +0800 |
---|---|---|
committer | Nan Li <bjlinan@cn.ibm.com> | 2016-02-01 14:29:04 +0800 |
commit | cb8ac8872af1c5088c0bca427014c57f19f4715d (patch) | |
tree | 1ff2593690e490ef0990b875862975945cfedf4e /globalhandler.h | |
parent | 83371df275afea1dd369fc338ccdf57e70cb243b (diff) | |
download | phosphor-host-ipmid-cb8ac8872af1c5088c0bca427014c57f19f4715d.tar.gz phosphor-host-ipmid-cb8ac8872af1c5088c0bca427014c57f19f4715d.zip |
Add ipmi coldReset command, which call a dbus method, belongs to NETFUN_APP.
1. A method dbus_warm_reset() to talk with the dbus method 'warmRest';
2. Also get service name by ipmid_get_sd_bus_connection() instead of object_mapper_get_connection();
3. Register the ipmi command;
4. Add related .o to the Makefile;
5. Add wildcard function.
Diffstat (limited to 'globalhandler.h')
-rw-r--r-- | globalhandler.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/globalhandler.h b/globalhandler.h new file mode 100644 index 0000000..608df3b --- /dev/null +++ b/globalhandler.h @@ -0,0 +1,12 @@ +#ifndef __HOST_IPMI_GLOBAL_HANDLER_H__ +#define __HOST_IPMI_GLOBAL_HANDLER_H__ + +#include <stdint.h> + +// Various GLOBAL operations under a single command. +enum ipmi_global_control_cmds : uint8_t +{ +IPMI_CMD_WARM_RESET = 0x02, +}; + +#endif |