blob: 8ec31bb55faf31fde14f6987c7890d6b3043e1c5 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* 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
19enum {
20 SDIO_DMUX_DATA_RMNET_0,
21 SDIO_DMUX_DATA_RMNET_1,
22 SDIO_DMUX_DATA_RMNET_2,
23 SDIO_DMUX_DATA_RMNET_3,
24 SDIO_DMUX_DATA_RMNET_4,
25 SDIO_DMUX_DATA_RMNET_5,
26 SDIO_DMUX_DATA_RMNET_6,
27 SDIO_DMUX_DATA_RMNET_7,
28 SDIO_DMUX_USB_RMNET_0,
29 SDIO_DMUX_NUM_CHANNELS
30};
31
32int msm_sdio_dmux_open(uint32_t id, void *priv,
33 void (*receive_cb)(void *, struct sk_buff *),
34 void (*write_done)(void *, struct sk_buff *));
35
36int msm_sdio_is_channel_in_reset(uint32_t id);
37
38int msm_sdio_dmux_close(uint32_t id);
39
40int msm_sdio_dmux_write(uint32_t id, struct sk_buff *skb);
41
42int msm_sdio_dmux_is_ch_full(uint32_t id);
43
44int msm_sdio_dmux_is_ch_low(uint32_t id);
45
46#endif /* _SDIO_DMUX_H */