blob: 5bb2141dc7a3e761d9d0dadb6c5658e7d487e58a [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_TEST_H_
#define _FMP_TEST_H_
#define FMP_BLK_SIZE (4096)
#define WRITE_MODE 1
#define READ_MODE 2
#define ENCRYPT 1
#define DECRYPT 2
struct fmp_test_data *fmp_test_init(struct exynos_fmp *fmp);
int fmp_cipher_run(struct exynos_fmp *fmp, struct fmp_test_data *fdata,
uint8_t *data, uint32_t len, bool bypass, uint32_t write,
void *priv, struct fmp_crypto_info *ci);
int fmp_test_crypt(struct exynos_fmp *fmp, struct fmp_test_data *fdata,
uint8_t *src, uint8_t *dst, uint32_t len, uint32_t enc,
void *priv, struct fmp_crypto_info *ci);
void fmp_test_exit(struct fmp_test_data *fdata);
void fmp_set_bh_compl_handler(struct buffer_head *bh);
#endif /* _FMP_TEST_H_ */