Files
BPI-CM9-Linux/aml-comp/uboot/bl33/v2025/cmd/amlogic/cmd_bootctl_wrapper.h
T
2026-08-24 10:03:24 +08:00

30 lines
813 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __CMD_WRAPPER_H
#define __CMD_WRAPPER_H
typedef int (*bootctl_cmd_func)(cmd_tbl_t *cmdtp,
int flag,
int argc,
char * const argv[]);
typedef struct _bootctl_func_handles {
bootctl_cmd_func do_GetValidSlot_func;
bootctl_cmd_func do_SetActiveSlot_func;
bootctl_cmd_func do_SetRollFlag_func;
bootctl_cmd_func do_CopySlot_func;
bootctl_cmd_func do_SetUpdateTries_func;
bootctl_cmd_func do_GetSystemMode_func;
bootctl_cmd_func do_UpdateDt_func;
bootctl_cmd_func do_CheckABState_func;
} bootctl_func_handles;
bootctl_func_handles *get_bootctl_cmd_func_vab(void);
bootctl_func_handles *get_bootctl_cmd_func_avb(void);
bootctl_func_handles *get_bootctl_cmd_func(void);
#endif