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 _BAM_DMUX_H |
| 17 | #define _BAM_DMUX_H |
| 18 | |
| 19 | enum { |
| 20 | BAM_DMUX_DATA_RMNET_0, |
| 21 | BAM_DMUX_DATA_RMNET_1, |
| 22 | BAM_DMUX_DATA_RMNET_2, |
| 23 | BAM_DMUX_DATA_RMNET_3, |
| 24 | BAM_DMUX_DATA_RMNET_4, |
| 25 | BAM_DMUX_DATA_RMNET_5, |
| 26 | BAM_DMUX_DATA_RMNET_6, |
| 27 | BAM_DMUX_DATA_RMNET_7, |
| 28 | BAM_DMUX_USB_RMNET_0, |
| 29 | BAM_DMUX_NUM_CHANNELS |
| 30 | }; |
| 31 | |
| 32 | int msm_bam_dmux_open(uint32_t id, void *priv, |
| 33 | void (*receive_cb)(void *, struct sk_buff *), |
| 34 | void (*write_done)(void *, struct sk_buff *)); |
| 35 | |
| 36 | int msm_bam_dmux_close(uint32_t id); |
| 37 | |
| 38 | int msm_bam_dmux_write(uint32_t id, struct sk_buff *skb); |
| 39 | |
| 40 | #endif /* _BAM_DMUX_H */ |