Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/types.h> |
| 14 | #include <linux/skbuff.h> |
| 15 | |
| 16 | #ifndef _SDIO_DMUX_H |
| 17 | #define _SDIO_DMUX_H |
| 18 | |
Manu Gautam | b19046a | 2011-09-02 15:56:38 +0530 | [diff] [blame^] | 19 | #ifdef CONFIG_MSM_SDIO_DMUX |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 20 | enum { |
| 21 | SDIO_DMUX_DATA_RMNET_0, |
| 22 | SDIO_DMUX_DATA_RMNET_1, |
| 23 | SDIO_DMUX_DATA_RMNET_2, |
| 24 | SDIO_DMUX_DATA_RMNET_3, |
| 25 | SDIO_DMUX_DATA_RMNET_4, |
| 26 | SDIO_DMUX_DATA_RMNET_5, |
| 27 | SDIO_DMUX_DATA_RMNET_6, |
| 28 | SDIO_DMUX_DATA_RMNET_7, |
| 29 | SDIO_DMUX_USB_RMNET_0, |
| 30 | SDIO_DMUX_NUM_CHANNELS |
| 31 | }; |
| 32 | |
| 33 | int msm_sdio_dmux_open(uint32_t id, void *priv, |
| 34 | void (*receive_cb)(void *, struct sk_buff *), |
| 35 | void (*write_done)(void *, struct sk_buff *)); |
| 36 | |
| 37 | int msm_sdio_is_channel_in_reset(uint32_t id); |
| 38 | |
| 39 | int msm_sdio_dmux_close(uint32_t id); |
| 40 | |
| 41 | int msm_sdio_dmux_write(uint32_t id, struct sk_buff *skb); |
| 42 | |
| 43 | int msm_sdio_dmux_is_ch_full(uint32_t id); |
| 44 | |
| 45 | int msm_sdio_dmux_is_ch_low(uint32_t id); |
| 46 | |
Manu Gautam | b19046a | 2011-09-02 15:56:38 +0530 | [diff] [blame^] | 47 | #else |
| 48 | |
| 49 | static int __maybe_unused msm_sdio_dmux_open(uint32_t id, void *priv, |
| 50 | void (*receive_cb)(void *, struct sk_buff *), |
| 51 | void (*write_done)(void *, struct sk_buff *)) |
| 52 | { |
| 53 | return -ENODEV; |
| 54 | } |
| 55 | |
| 56 | static int __maybe_unused msm_sdio_is_channel_in_reset(uint32_t id) |
| 57 | { |
| 58 | return -ENODEV; |
| 59 | } |
| 60 | |
| 61 | static int __maybe_unused msm_sdio_dmux_close(uint32_t id) |
| 62 | { |
| 63 | return -ENODEV; |
| 64 | } |
| 65 | |
| 66 | static int __maybe_unused msm_sdio_dmux_write(uint32_t id, struct sk_buff *skb) |
| 67 | { |
| 68 | return -ENODEV; |
| 69 | } |
| 70 | |
| 71 | static int __maybe_unused msm_sdio_dmux_is_ch_full(uint32_t id) |
| 72 | { |
| 73 | return -ENODEV; |
| 74 | } |
| 75 | |
| 76 | static int __maybe_unused msm_sdio_dmux_is_ch_low(uint32_t id) |
| 77 | { |
| 78 | return -ENODEV; |
| 79 | } |
| 80 | |
| 81 | #endif |
| 82 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 83 | #endif /* _SDIO_DMUX_H */ |