|
OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>#include <shell/shell.h>#include "plat_pldm_sensor.h"#include "plat_cpld.h"#include "plat_class.h"
Macros | |
| #define | ENABLE 1 |
| #define | DISABLE 0 |
| #define | VR_HOT_SWITCH_BIT 0 |
Functions | |
| LOG_MODULE_REGISTER (plat_vr_hot_switch_shell) | |
| void | set_cmd_vr_hot_switch_enable (const struct shell *shell, size_t argc, char **argv) |
| void | set_cmd_vr_hot_switch_disable (const struct shell *shell, size_t argc, char **argv) |
| void | vr_hot_switch_get_cmds (const struct shell *shell, size_t argc, char **argv) |
| SHELL_STATIC_SUBCMD_SET_CREATE (vr_hot_switch_set_cmds, SHELL_CMD(enable, NULL, "enable", set_cmd_vr_hot_switch_enable), SHELL_CMD(disable, NULL, "disable", set_cmd_vr_hot_switch_disable), SHELL_SUBCMD_SET_END) | |
| SHELL_STATIC_SUBCMD_SET_CREATE (vr_hot_switch_sub_cmds, SHELL_CMD(get, NULL, "get vr_hot_switch status", vr_hot_switch_get_cmds), SHELL_CMD(set, &vr_hot_switch_set_cmds, "set vr_hot_switch status", NULL), SHELL_SUBCMD_SET_END) | |
| SHELL_CMD_REGISTER (vr_hot_switch, &vr_hot_switch_sub_cmds, "vr_hot_switch commands", NULL) | |
| #define DISABLE 0 |
| #define ENABLE 1 |
| #define VR_HOT_SWITCH_BIT 0 |
| LOG_MODULE_REGISTER | ( | plat_vr_hot_switch_shell | ) |
| void set_cmd_vr_hot_switch_disable | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |

| void set_cmd_vr_hot_switch_enable | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |

| SHELL_CMD_REGISTER | ( | vr_hot_switch | , |
| & | vr_hot_switch_sub_cmds, | ||
| "vr_hot_switch commands" | , | ||
| NULL | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | vr_hot_switch_set_cmds | , |
| SHELL_CMD(enable, NULL, "enable", set_cmd_vr_hot_switch_enable) | , | ||
| SHELL_CMD(disable, NULL, "disable", set_cmd_vr_hot_switch_disable) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | vr_hot_switch_sub_cmds | , |
| SHELL_CMD(get, NULL, "get vr_hot_switch status", vr_hot_switch_get_cmds) | , | ||
| SHELL_CMD(set, &vr_hot_switch_set_cmds, "set vr_hot_switch status", NULL) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |
| void vr_hot_switch_get_cmds | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |
