blob: 107748b78b1af9b25f16608ae262a30d6f6fe6e3 [file] [log] [blame]
/*
* 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_register(struct exynos_fmp *fmp);
int exynos_fmp_fips_init(struct exynos_fmp *fmp);
void exynos_fmp_fips_test(struct exynos_fmp *fmp);
void exynos_fmp_fips_deregister(struct exynos_fmp *fmp);
int exynos_fmp_fips_integrity(struct exynos_fmp *fmp);
bool in_fmp_fips_err(void);
bool in_fmp_fips_init(void);
#else
inline int exynos_fmp_fips_register(struct exynos_fmp *fmp)
{
return 0;
}
inline int exynos_fmp_fips_init(struct exynos_fmp *fmp)
{
return 0;
}
inline void exynos_fmp_fips_test(struct exynos_fmp *fmp)
{
}
inline void exynos_fmp_fips_deregister(struct exynos_fmp *fmp)
{
}
int exynos_fmp_fips_integrity(struct exynos_fmp *fmp)
{
return 0;
}
inline bool in_fmp_fips_err(void)
{
return 0;
}
inline bool in_fmp_fips_init(void)
{
return 0;
}
#endif /* CONFIG_EXYNOS_FMP_FIPS */
#endif /* _FMP_FIPS_MAIN_H_ */