You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
675 B

/*
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2022-2022. All rights reserved.
* Description: pdm adpater
* Author: Hisilicon
*/
#ifndef _PDMH_
#define _PDMH_
typedef enum {
START_FLAG_A,
START_FLAG_B,
START_FLAG_MAX,
} start_flag;
typedef enum {
UPGRADED,
UPGRADING,
UPGRADEFLAG_MAX,
} upgrade_flag;
int pdm_get_bios_upgrade_flag(upgrade_flag *flag);
int pdm_set_bios_start_flag(start_flag partition);
int pdm_get_bios_start_flag(start_flag *partition);
int pdm_get_soc_firmware_upgrade_flag(upgrade_flag *flag);
int pdm_get_soc_firmware_start_flag(start_flag *flag);
int pdm_set_soc_firmware_start_flag(start_flag flag);
#endif