summaryrefstree
path: root/kernel/drivers/scsi/ufs/ufs-exynos-fmp.h
blob: ff093b27885ebf1201aae330094ff2d02ef002da (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
49
50
51
52
53
54
55
/*
 * Copyright (C) 2013-2014 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 _UFS_EXYNOS_FMP_H_
#define _UFS_EXYNOS_FMP_H_

#include "ufshcd.h"
#include "ufs-exynos.h"

#ifdef CONFIG_SCSI_UFS_EXYNOS_FMP
int exynos_fmp_host_set_device(struct platform_device *host_pdev,
				struct platform_device *pdev,
				struct exynos_fmp_variant_ops *fmp_vops);
int exynos_ufs_fmp_cfg(struct ufs_hba *hba,
				struct ufshcd_lrb *lrbp,
				struct scatterlist *sg,
				uint32_t index,
				int sector_offset);
int exynos_ufs_fmp_clear(struct ufs_hba *hba, struct ufshcd_lrb *lrbp);
#else
inline int exynos_fmp_host_set_device(struct platform_device *host_pdev,
				struct platform_device *pdev,
				struct exynos_fmp_variant_ops *fmp_vops)
{
	struct exynos_ufs *ufs;

	ufs = dev_get_platdata(&host_pdev->dev);
	if (ufs) {
		ufs->fmp.pdev = NULL;
		ufs->fmp.vops = NULL;
	}
	return 0;
}

inline int exynos_ufs_fmp_cfg(struct ufs_hba *hba,
				struct ufshcd_lrb *lrbp,
				struct scatterlist *sg,
				uint32_t index,
				int sector_offset)
{
	return 0;
}

int exynos_ufs_fmp_clear(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
{
	return 0;
}
#endif /* CONFIG_SCSI_UFS_EXYNOS_FMP */
#endif /* _UFS_EXYNOS_FMP_H_ */