summaryrefstree
path: root/kernel/drivers/crypto/fmp/fmp_fips_main.h
blob: 697d52be7f4a02a3c359a4243470aa4e7cf75940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2016 Samsung Electronics Co., Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef _FMP_FIPS_MAIN_H_
#define _FMP_FIPS_MAIN_H_

#if defined(CONFIG_EXYNOS_FMP_FIPS)
int exynos_fmp_fips_init(struct exynos_fmp *fmp);
void exynos_fmp_fips_exit(struct exynos_fmp *fmp);
struct fmp_fips_data *do_fmp_fips_init(struct exynos_fmp *fmp);
void do_fmp_fips_exit(struct fmp_fips_data *data);
bool in_fmp_fips_err(void);
#else
inline int exynos_fmp_fips_init(struct exynos_fmp *fmp)
{
	return 0;
}

inline void exynos_fmp_fips_exit(struct exynos_fmp *fmp)
{
}

inline bool in_fmp_fips_err(void)
{
	return 0;
}
#endif /* CONFIG_EXYNOS_FMP_FIPS */
#endif /* _FMP_FIPS_MAIN_H_ */