Files
kernel_common_drivers/include/linux/amlogic/key_manage.h
T
wanwei.jiang 17f72adc13 efuse_unifykey: porting efuse_unifykey driver [1/1]
PD#SWPL-69066

Problem:
porting efuse_unifykey driver

Solution:
1. porting efuse_unifykey driver
2. pfn_valid -> pfn_is_map_memory
3. use secmon driver interface in efuse_api.c
4. add <linux/compat.h> for compat_ptr
5. add <crypto/sha256_base.h> for SHA256_DIGEST_SIZE
6. reduce the print level in the probe function

Verify:
s4d

Change-Id: Ia9833a2ad0d0bc0f751624c65ccefd92bdc3276b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-04 14:07:33 +08:00

29 lines
591 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __KEYMANAGE__
#define __KEYMANAGE__
enum {
UNIFYKEY_STORAGE_TYPE_INVALID = 0,
UNIFYKEY_STORAGE_TYPE_EMMC,
UNIFYKEY_STORAGE_TYPE_NAND,
UNIFYKEY_STORAGE_TYPE_MAX
};
struct unifykey_storage_ops {
s32 (*read)(u8 *buf, u32 len, u32 *actual_len);
s32 (*write)(u8 *buf, u32 len, u32 *actual_len);
};
struct unifykey_type {
u32 storage_type;
struct unifykey_storage_ops *ops;
};
int register_unifykey_types(struct unifykey_type *uk_type);
#endif /*__KEYMANAGE__*/