OpenBIC
OpenSource Bridge-IC
shell_plat_hamsa_avdd_pcie.c File Reference
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "sensor.h"
#include "plat_class.h"
#include "plat_hook.h"
#include "plat_hamsa_avdd_pcie.h"
Include dependency graph for shell_plat_hamsa_avdd_pcie.c:

Functions

 LOG_MODULE_REGISTER (plat_hamsa_avdd_pcie_shell, LOG_LEVEL_DBG)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_hamsa_avdd_pcie_cmds, SHELL_CMD(get, NULL, "get", cmd_hamsa_avdd_pcie_get), SHELL_CMD(set, NULL, "set <new-voltage> perm", cmd_hamsa_avdd_pcie_set), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (hamsa_avdd_pcie, &sub_hamsa_avdd_pcie_cmds, "hamsa_avdd_pcie voltage set/get commands", NULL)
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_hamsa_avdd_pcie_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( hamsa_avdd_pcie  ,
sub_hamsa_avdd_pcie_cmds,
"hamsa_avdd_pcie voltage set/get commands"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_hamsa_avdd_pcie_cmds  ,
SHELL_CMD(get, NULL, "get", cmd_hamsa_avdd_pcie_get)  ,
SHELL_CMD(set, NULL, "set <new-voltage> perm", cmd_hamsa_avdd_pcie_set)  ,
SHELL_SUBCMD_SET_END   
)