123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- #ifndef __CLI_H
- #define __CLI_H
- void cli_simple_loop(void);
- int cli_simple_run_command(const char *cmd, int flag);
- void cli_simple_process_macros(const char *input, char *output);
- int cli_simple_run_command_list(char *cmd, int flag);
- int cli_readline(const char *const prompt);
- int cli_readline_into_buffer(const char *const prompt, char *buffer,
- int timeout);
- int cli_simple_parse_line(char *line, char *argv[]);
- #if CONFIG_IS_ENABLED(OF_CONTROL)
- bool cli_process_fdt(const char **cmdp);
- void cli_secure_boot_cmd(const char *cmd);
- #else
- static inline bool cli_process_fdt(const char **cmdp)
- {
- return false;
- }
- static inline void cli_secure_boot_cmd(const char *cmd)
- {
- }
- #endif
- void cli_loop(void);
- void cli_init(void);
- #define endtick(seconds) (get_ticks() + (uint64_t)(seconds) * get_tbclk())
- #endif
|