Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __CMD_WRAPPER_H |
| 7 | #define __CMD_WRAPPER_H |
| 8 | |
| 9 | typedef int (*bootctl_cmd_func)(cmd_tbl_t *cmdtp, |
| 10 | int flag, |
| 11 | int argc, |
| 12 | char * const argv[]); |
| 13 | |
| 14 | typedef struct _bootctl_func_handles { |
| 15 | bootctl_cmd_func do_GetValidSlot_func; |
| 16 | bootctl_cmd_func do_SetActiveSlot_func; |
| 17 | bootctl_cmd_func do_SetRollFlag_func; |
| 18 | bootctl_cmd_func do_CopySlot_func; |
| 19 | bootctl_cmd_func do_SetUpdateTries_func; |
| 20 | bootctl_cmd_func do_GetSystemMode_func; |
| 21 | bootctl_cmd_func do_GetAvbMode_func; |
| 22 | } bootctl_func_handles; |
| 23 | |
| 24 | bootctl_func_handles *get_bootctl_cmd_func_vab(void); |
| 25 | bootctl_func_handles *get_bootctl_cmd_func_avb(void); |
| 26 | bootctl_func_handles *get_bootctl_cmd_func(void); |
| 27 | |
| 28 | #endif |