sdhci-pltfm.h (f0255cdca3972f01ac0bb9cfee83ed9548d19dd2) sdhci-pltfm.h (899171dc4e7ce9ac90b27610d79ea511402e60c0)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright 2010 MontaVista Software, LLC.
4 *
5 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
6 */
7
8#ifndef _DRIVERS_MMC_SDHCI_PLTFM_H

--- 85 unchanged lines hidden (view full) ---

94 return sdhci_get_property(pdev);
95}
96
97extern struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
98 const struct sdhci_pltfm_data *pdata,
99 size_t priv_size);
100extern void sdhci_pltfm_free(struct platform_device *pdev);
101
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright 2010 MontaVista Software, LLC.
4 *
5 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
6 */
7
8#ifndef _DRIVERS_MMC_SDHCI_PLTFM_H

--- 85 unchanged lines hidden (view full) ---

94 return sdhci_get_property(pdev);
95}
96
97extern struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
98 const struct sdhci_pltfm_data *pdata,
99 size_t priv_size);
100extern void sdhci_pltfm_free(struct platform_device *pdev);
101
102extern int sdhci_pltfm_register(struct platform_device *pdev,
103 const struct sdhci_pltfm_data *pdata,
104 size_t priv_size);
102extern int sdhci_pltfm_init_and_add_host(struct platform_device *pdev,
103 const struct sdhci_pltfm_data *pdata,
104 size_t priv_size);
105extern void sdhci_pltfm_remove(struct platform_device *pdev);
106
107extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
108
109static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
110{
111 return host->private;
112}
113
114extern const struct dev_pm_ops sdhci_pltfm_pmops;
115#ifdef CONFIG_PM_SLEEP
116int sdhci_pltfm_suspend(struct device *dev);
117int sdhci_pltfm_resume(struct device *dev);
118#else
119static inline int sdhci_pltfm_suspend(struct device *dev) { return 0; }
120static inline int sdhci_pltfm_resume(struct device *dev) { return 0; }
121#endif
122
123#endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */
105extern void sdhci_pltfm_remove(struct platform_device *pdev);
106
107extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
108
109static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
110{
111 return host->private;
112}
113
114extern const struct dev_pm_ops sdhci_pltfm_pmops;
115#ifdef CONFIG_PM_SLEEP
116int sdhci_pltfm_suspend(struct device *dev);
117int sdhci_pltfm_resume(struct device *dev);
118#else
119static inline int sdhci_pltfm_suspend(struct device *dev) { return 0; }
120static inline int sdhci_pltfm_resume(struct device *dev) { return 0; }
121#endif
122
123#endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */