htcleo: add support for rmnet as module

This commit is contained in:
Markinus 2010-11-08 20:15:38 +01:00
parent 9125bbc537
commit d3740f8695
3 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.32.15
# Fri Oct 29 13:59:28 2010
# Mon Nov 8 20:09:00 2010
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@ -965,7 +965,8 @@ CONFIG_PPPOPNS=y
# CONFIG_SLIP is not set
CONFIG_SLHC=y
# CONFIG_NETCONSOLE is not set
# CONFIG_MSM_RMNET is not set
CONFIG_MSM_RMNET=m
# CONFIG_MSM_RMNET_DEBUG is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_KINETO_GAN is not set

View File

@ -885,6 +885,7 @@ int smd_open(const char *name, smd_channel_t **_ch,
return 0;
}
EXPORT_SYMBOL(smd_open);
int smd_close(smd_channel_t *ch)
{
@ -915,6 +916,7 @@ int smd_read(smd_channel_t *ch, void *data, int len)
{
return ch->read(ch, data, len);
}
EXPORT_SYMBOL(smd_read);
int smd_write(smd_channel_t *ch, const void *data, int len)
{
@ -930,11 +932,13 @@ int smd_write_atomic(smd_channel_t *ch, const void *data, int len)
spin_unlock_irqrestore(&smd_lock, flags);
return res;
}
EXPORT_SYMBOL(smd_write_atomic);
int smd_read_avail(smd_channel_t *ch)
{
return ch->read_avail(ch);
}
EXPORT_SYMBOL(smd_read_avail);
int smd_write_avail(smd_channel_t *ch)
{

View File

@ -87,6 +87,11 @@ static int count_this_packet(void *_hdr, int len)
static int in_suspend;
static unsigned long timeout_us;
static struct workqueue_struct *rmnet_wq;
extern int smd_read(smd_channel_t *ch, void *data, int len);
extern int smd_open(const char *name, smd_channel_t **_ch,
void *priv, void (*notify)(void *, unsigned));
extern int smd_write_atomic(smd_channel_t *ch, const void *data, int len);
extern int smd_read_avail(smd_channel_t *ch);
static void do_check_active(struct work_struct *work)
{