OpenBIC
OpenSource Bridge-IC
plat_bootstrap_shell.c File Reference
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "plat_isr.h"
#include "plat_i2c.h"
#include "plat_hook.h"
Include dependency graph for plat_bootstrap_shell.c:

Macros

#define AEGIS_CPLD_ADDR   (0x4C >> 1)
 

Functions

 LOG_MODULE_REGISTER (plat_bootstrap_shell, LOG_LEVEL_DBG)
 
 SHELL_DYNAMIC_CMD_CREATE (strap_name, strap_rname_get_)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_bootstrap_get_cmds, SHELL_CMD(all, NULL, "bootstrap get all", cmd_bootstrap_get_all), SHELL_SUBCMD_SET_END)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_bootstrap_cmds, SHELL_CMD(get, &sub_bootstrap_get_cmds, "get all", NULL), SHELL_CMD_ARG(set, &strap_name, "set <strap-name>|all <drive-level>|default [perm]", cmd_bootstrap_set, 3, 1), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (bootstrap, &sub_bootstrap_cmds, "bootstrap set/get commands", NULL)
 

Macro Definition Documentation

◆ AEGIS_CPLD_ADDR

#define AEGIS_CPLD_ADDR   (0x4C >> 1)

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_bootstrap_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( bootstrap  ,
sub_bootstrap_cmds,
"bootstrap set/get commands"  ,
NULL   
)

◆ SHELL_DYNAMIC_CMD_CREATE()

SHELL_DYNAMIC_CMD_CREATE ( strap_name  ,
strap_rname_get_   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [1/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_bootstrap_cmds  ,
SHELL_CMD(get, &sub_bootstrap_get_cmds, "get all", NULL)  ,
SHELL_CMD_ARG(set, &strap_name, "set <strap-name>|all <drive-level>|default [perm]", cmd_bootstrap_set, 3, 1)  ,
SHELL_SUBCMD_SET_END   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [2/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_bootstrap_get_cmds  ,
SHELL_CMD(all, NULL, "bootstrap get all", cmd_bootstrap_get_all)  ,
SHELL_SUBCMD_SET_END   
)