summaryrefstree
path: root/kernel/drivers/mmc/host/dw_mmc-exynos-fmp.h
blob: 1bc3c7eeec6ee436485618476e8dde23f57a454b (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * 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 _MMC_EXYNOS_FMP_H_
#define _MMC_EXYNOS_FMP_H_

#ifdef CONFIG_MMC_DW_EXYNOS_FMP
int exynos_mmc_fmp_cfg(struct dw_mci *host,
				void *desc,
				struct mmc_data *mmc_data,
				struct page *page,
				int sector_offfset,
				bool cmdq_enabled);
int exynos_mmc_fmp_clear(struct dw_mci *host, void *desc,
				bool cmdq_enabled);
#else
inline int exynos_mmc_fmp_cfg(struct dw_mci *host,
				void *desc,
				struct mmc_data *mmc_data,
				struct page *page,
				int sector_offset,
				bool cmdq_enabled)
{
	struct dw_mci_exynos_priv_data *priv;

	if (host) {
		priv = host->priv;
		if (priv) {
			priv->fmp.pdev = NULL;
			priv->fmp.vops = NULL;
		}
	}
	return 0;
}

inline int exynos_mmc_fmp_clear(struct dw_mci *host, void *desc,
				bool cmdq_enabled)
{
	return 0;
}
#endif /* CONFIG_MMC_DW_EXYNOS_FMP */
#endif /* _MMC_EXYNOS_FMP_H_ */