forked from Minki/linux
29aba07aea
As a first step to improve the variant specific code for mmci, add a ->dma_setup() callback to the struct mmci_host_ops. To show its use, let's deploy the callback for the qcom dml, which involves also to the assign the mmci_host_ops pointer from the variant ->init() callback. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Ludovic Barre <ludovic.barre@st.com>
31 lines
957 B
C
31 lines
957 B
C
/*
|
|
*
|
|
* Copyright (c) 2011, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
#ifndef __MMC_QCOM_DML_H__
|
|
#define __MMC_QCOM_DML_H__
|
|
|
|
#ifdef CONFIG_MMC_QCOM_DML
|
|
void qcom_variant_init(struct mmci_host *host);
|
|
void dml_start_xfer(struct mmci_host *host, struct mmc_data *data);
|
|
#else
|
|
static inline void qcom_variant_init(struct mmci_host *host)
|
|
{
|
|
}
|
|
static inline void dml_start_xfer(struct mmci_host *host, struct mmc_data *data)
|
|
{
|
|
}
|
|
#endif /* CONFIG_MMC_QCOM_DML */
|
|
|
|
#endif /* __MMC_QCOM_DML_H__ */
|