blob: 5c85349ab02bc3ac17a11148b6b647f2b445d5c4 [file] [log] [blame]
Neeraj Sonic692cb92018-04-18 17:20:22 +05301/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef PFK_ICE_H_
14#define PFK_ICE_H_
15
16/*
17 * PFK ICE
18 *
19 * ICE keys configuration through scm calls.
20 *
21 */
22
23#include <linux/types.h>
24
25int pfk_ice_init(void);
26int pfk_ice_deinit(void);
27
28int qti_pfk_ice_set_key(uint32_t index, uint8_t *key, uint8_t *salt,
Neeraj Sonie3af8d52018-09-05 14:32:49 +053029 char *storage_type, unsigned int data_unit,
30 int ice_rev);
Neeraj Sonic692cb92018-04-18 17:20:22 +053031int qti_pfk_ice_invalidate_key(uint32_t index, char *storage_type);
32
33
34#endif /* PFK_ICE_H_ */