blob: bb8cd51547cf992e8a109bc474f1346d7245fa1b [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
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 Gautamb19046a2011-09-02 15:56:38 +053019#ifdef CONFIG_MSM_SDIO_DMUX
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070020enum {
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
33int 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
37int msm_sdio_is_channel_in_reset(uint32_t id);
38
39int msm_sdio_dmux_close(uint32_t id);
40
41int msm_sdio_dmux_write(uint32_t id, struct sk_buff *skb);
42
43int msm_sdio_dmux_is_ch_full(uint32_t id);
44
45int msm_sdio_dmux_is_ch_low(uint32_t id);
46
Manu Gautamb19046a2011-09-02 15:56:38 +053047#else
48
49static 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
56static int __maybe_unused msm_sdio_is_channel_in_reset(uint32_t id)
57{
58 return -ENODEV;
59}
60
61static int __maybe_unused msm_sdio_dmux_close(uint32_t id)
62{
63 return -ENODEV;
64}
65
66static int __maybe_unused msm_sdio_dmux_write(uint32_t id, struct sk_buff *skb)
67{
68 return -ENODEV;
69}
70
71static int __maybe_unused msm_sdio_dmux_is_ch_full(uint32_t id)
72{
73 return -ENODEV;
74}
75
76static int __maybe_unused msm_sdio_dmux_is_ch_low(uint32_t id)
77{
78 return -ENODEV;
79}
80
81#endif
82
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070083#endif /* _SDIO_DMUX_H */