30 if (!
CONFIG(VBOOT_VBNV_CMOS_BACKUP_TO_FLASH))
53 vbnv_copy[i] =
cmos_read(CONFIG_VBOOT_VBNV_OFFSET + 14 + i);
67 cmos_write(vbnv_copy[i], CONFIG_VBOOT_VBNV_OFFSET + 14 + i);
96 vbnv->size =
sizeof(*vbnv);
97 vbnv->range_start = CONFIG_VBOOT_VBNV_OFFSET + 14;
101 #if CONFIG(VBOOT_VBNV_CMOS_BACKUP_TO_FLASH)
102 static void back_up_vbnv_cmos(
void *unused)
struct arm64_kernel_header header
#define BOOT_STATE_INIT_ENTRY(state_, when_, func_, arg_)
#define printk(level,...)
struct lb_record * lb_new_record(struct lb_header *header)
#define BIOS_INFO
BIOS_INFO - Expected events.
static void cmos_write(unsigned char val, unsigned char addr)
static unsigned char cmos_read(unsigned char addr)
static int restore_from_backup(uint8_t *vbnv_copy)
void read_vbnv_cmos(uint8_t *vbnv_copy)
void vbnv_init_cmos(uint8_t *vbnv_copy)
void lb_table_add_vbnv_cmos(struct lb_header *header)
static void clear_vbnv_battery_cutoff_flag(uint8_t *vbnv_copy)
void save_vbnv_cmos(const uint8_t *vbnv_copy)
int vbnv_cmos_failed(void)
void vbnv_reset(uint8_t *vbnv_copy)
static uint8_t vbnv[VBOOT_VBNV_BLOCK_SIZE]
void regen_vbnv_crc(uint8_t *vbnv_copy)
int verify_vbnv(uint8_t *vbnv_copy)
void read_vbnv_flash(uint8_t *vbnv_copy)
void save_vbnv_flash(const uint8_t *vbnv_copy)
#define MISC_FLAGS_OFFSET
#define VBOOT_VBNV_BLOCK_SIZE
#define MISC_FLAGS_BATTERY_CUTOFF_MASK
#define HEADER_KERNEL_SETTINGS_RESET
#define HEADER_FIRMWARE_SETTINGS_RESET