23 lines
497 B
C
23 lines
497 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* include/anti-rollback.h
|
|
*
|
|
* Copyright (C) 2020 Amlogic, Inc. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef __ANTI_ROLLBACK_
|
|
#define __ANTI_ROLLBACK_
|
|
|
|
#include <linux/types.h>
|
|
|
|
bool check_antirollback(uint32_t kernel_version);
|
|
|
|
bool set_avb_antirollback(uint32_t index, uint32_t version);
|
|
bool get_avb_antirollback(uint32_t index, uint32_t* version);
|
|
bool get_avb_lock_state(uint32_t* lock_state);
|
|
bool avb_lock(void);
|
|
bool avb_unlock(void);
|
|
|
|
#endif
|