developer | 1d31274 | 2023-09-11 11:05:46 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2023 MediaTek Incorporation. All Rights Reserved. |
| 4 | * |
| 5 | * Author: Alvin Kuo <Alvin.Kuo@mediatek.com> |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TOPS_TOOL_H__ |
| 9 | #define __TOPS_TOOL_H__ |
| 10 | |
| 11 | #include "tops-tool-cmds.h" |
| 12 | |
| 13 | #define TOPS_TOOL_CMD(cmd_name) TOPS_TOOL_CMD_ ## cmd_name |
| 14 | |
| 15 | typedef int (*tops_tool_cmd_func_t)(int argc, char *argv[]); |
| 16 | |
| 17 | struct tops_tool_cmd { |
| 18 | char *name; |
| 19 | char *usage; |
| 20 | char *desc; |
| 21 | tops_tool_cmd_func_t func; |
| 22 | uint8_t num_of_parms; |
| 23 | }; |
| 24 | |
| 25 | #endif /* __TOPS_TOOL_H__ */ |