OpenBIC
OpenSource Bridge-IC
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cpld_shell.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef CPLD_SHELL_H
18#define CPLD_SHELL_H
19
20#include <shell/shell.h>
21
22void cmd_cpld_dump(const struct shell *shell, size_t argc, char **argv);
23void set_cpld_polling(const struct shell *shell, size_t argc, char **argv);
24void get_cpld_polling(const struct shell *shell, size_t argc, char **argv);
25
26SHELL_STATIC_SUBCMD_SET_CREATE(sub_cpld_control_polling_cmds,
27 SHELL_CMD(set, NULL, "cpld polling set", set_cpld_polling),
28 SHELL_CMD(get, NULL, "cpld polling get", get_cpld_polling),
29 SHELL_SUBCMD_SET_END);
30
31SHELL_STATIC_SUBCMD_SET_CREATE(sub_cpld_cmd, SHELL_CMD(dump, NULL, "cpld dump", cmd_cpld_dump),
32 SHELL_CMD(control_polling, &sub_cpld_control_polling_cmds,
33 "cpld control polling", NULL),
34 SHELL_SUBCMD_SET_END);
35
36#endif
void cmd_cpld_dump(const struct shell *shell, size_t argc, char **argv)
Definition: cpld_shell.c:26
void set_cpld_polling(const struct shell *shell, size_t argc, char **argv)
Definition: cpld_shell.c:67
SHELL_STATIC_SUBCMD_SET_CREATE(sub_cpld_control_polling_cmds, SHELL_CMD(set, NULL, "cpld polling set", set_cpld_polling), SHELL_CMD(get, NULL, "cpld polling get", get_cpld_polling), SHELL_SUBCMD_SET_END)
void get_cpld_polling(const struct shell *shell, size_t argc, char **argv)
Definition: cpld_shell.c:84