Add ICE support for the new UFS card by handling the ice device appropriately in PFK. Change-Id: I69f8d7b3560f854929f043d3f6f694cc28ff3dac Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
30 lines
968 B
C
30 lines
968 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef PFK_KC_H_
|
|
#define PFK_KC_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <crypto/ice.h>
|
|
|
|
|
|
int pfk_kc_deinit(void);
|
|
int pfk_kc_load_key_start(const unsigned char *key, size_t key_size,
|
|
const unsigned char *salt, size_t salt_size, u32 *key_index,
|
|
bool async, unsigned int data_unit, struct ice_device *ice_dev);
|
|
void pfk_kc_load_key_end(const unsigned char *key, size_t key_size,
|
|
const unsigned char *salt, size_t salt_size,
|
|
struct ice_device *ice_dev);
|
|
int pfk_kc_remove_key_with_salt(const unsigned char *key, size_t key_size,
|
|
const unsigned char *salt, size_t salt_size);
|
|
int pfk_kc_clear(struct ice_device *ice_dev);
|
|
void pfk_kc_clear_on_reset(struct ice_device *ice_dev);
|
|
int pfk_kc_initialize_key_table(struct ice_device *ice_dev);
|
|
const char *pfk_kc_get_storage_type(void);
|
|
extern char *saved_command_line;
|
|
|
|
|
|
#endif /* PFK_KC_H_ */
|