summaryrefslogtreecommitdiffstats
path: root/drivers/ifxmodem
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-21 19:44:28 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-21 19:44:28 +0200
commit9bdc2b0a43067012b29a19de67e9d9abc0ab48cb (patch)
treecfa59b1fd59cdf2db84650faf6de131ad3fb8324 /drivers/ifxmodem
parent692cf6a6f6d8b658a8c4e4bca0d1c7998df35300 (diff)
downloadofono-9bdc2b0a43067012b29a19de67e9d9abc0ab48cb.tar.bz2
ifxmodem: Add skeleton for Infineon specific GPRS context driver
Diffstat (limited to 'drivers/ifxmodem')
-rw-r--r--drivers/ifxmodem/gprs-context.c44
-rw-r--r--drivers/ifxmodem/ifxmodem.c2
-rw-r--r--drivers/ifxmodem/ifxmodem.h3
3 files changed, 49 insertions, 0 deletions
diff --git a/drivers/ifxmodem/gprs-context.c b/drivers/ifxmodem/gprs-context.c
new file mode 100644
index 00000000..735d0c45
--- /dev/null
+++ b/drivers/ifxmodem/gprs-context.c
@@ -0,0 +1,44 @@
+/*
+ *
+ * oFono - Open Source Telephony
+ *
+ * Copyright (C) 2008-2010 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glib.h>
+
+#include <ofono/log.h>
+#include <ofono/modem.h>
+#include <ofono/gprs-context.h>
+
+#include "gatchat.h"
+#include "gatresult.h"
+#include "gatrawip.h"
+
+#include "ifxmodem.h"
+
+void ifx_gprs_context_init()
+{
+}
+
+void ifx_gprs_context_exit()
+{
+}
diff --git a/drivers/ifxmodem/ifxmodem.c b/drivers/ifxmodem/ifxmodem.c
index 83b2192e..8a9ac8f4 100644
--- a/drivers/ifxmodem/ifxmodem.c
+++ b/drivers/ifxmodem/ifxmodem.c
@@ -37,6 +37,7 @@ static int ifxmodem_init(void)
ifx_voicecall_init();
ifx_audio_settings_init();
ifx_radio_settings_init();
+ ifx_gprs_context_init();
ifx_stk_init();
return 0;
@@ -45,6 +46,7 @@ static int ifxmodem_init(void)
static void ifxmodem_exit(void)
{
ifx_stk_exit();
+ ifx_gprs_context_exit();
ifx_radio_settings_exit();
ifx_audio_settings_exit();
ifx_voicecall_exit();
diff --git a/drivers/ifxmodem/ifxmodem.h b/drivers/ifxmodem/ifxmodem.h
index ae092999..8ea52e55 100644
--- a/drivers/ifxmodem/ifxmodem.h
+++ b/drivers/ifxmodem/ifxmodem.h
@@ -30,5 +30,8 @@ extern void ifx_audio_settings_exit();
extern void ifx_radio_settings_init();
extern void ifx_radio_settings_exit();
+extern void ifx_gprs_context_init();
+extern void ifx_gprs_context_exit();
+
extern void ifx_stk_init();
extern void ifx_stk_exit();