Srinivas Kandagatla | 9cb1514 | 2014-07-29 03:50:30 +0100 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * Copyright (c) 2011, The Linux Foundation. All rights reserved. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 and |
| 7 | * only version 2 as published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | */ |
| 15 | #ifndef __MMC_QCOM_DML_H__ |
| 16 | #define __MMC_QCOM_DML_H__ |
| 17 | |
| 18 | #ifdef CONFIG_MMC_QCOM_DML |
| 19 | int dml_hw_init(struct mmci_host *host, struct device_node *np); |
| 20 | void dml_start_xfer(struct mmci_host *host, struct mmc_data *data); |
| 21 | #else |
| 22 | static inline int dml_hw_init(struct mmci_host *host, struct device_node *np) |
| 23 | { |
| 24 | return -ENOSYS; |
| 25 | } |
| 26 | static inline void dml_start_xfer(struct mmci_host *host, struct mmc_data *data) |
| 27 | { |
| 28 | } |
| 29 | #endif /* CONFIG_MMC_QCOM_DML */ |
| 30 | |
| 31 | #endif /* __MMC_QCOM_DML_H__ */ |