2 * Copyright (C) 2012-2017 ARM Limited or its affiliates.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 * ARM CryptoCell sysfs APIs
21 #ifndef __SSI_SYSFS_H__
22 #define __SSI_SYSFS_H__
24 #include <asm/timex.h>
26 /* forward declaration */
41 STAT_OP_TYPE_NULL = 0,
49 int ssi_sysfs_init(struct kobject *sys_dev_obj, struct ssi_drvdata *drvdata);
50 void ssi_sysfs_fini(void);
51 void update_host_stat(unsigned int op_type, unsigned int phase, cycles_t result);
52 void update_cc_stat(unsigned int op_type, unsigned int phase, unsigned int elapsed_cycles);
53 void display_all_stat_db(void);
55 #endif /*__SSI_SYSFS_H__*/