3
* oFono - Open Source Telephony - RIL-based devices: infineon modems
5
* Copyright (C) 2014 Canonical Ltd.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
#define OFONO_API_SUBJECT_TO_CHANGE
28
#include <ofono/plugin.h>
29
#include <ofono/log.h>
30
#include <ofono/modem.h>
34
#include "drivers/rilmodem/vendor.h"
37
static int inf_probe(struct ofono_modem *modem)
39
return ril_create(modem, OFONO_RIL_VENDOR_INFINEON);
42
static struct ofono_modem_driver infineon_driver = {
47
.disable = ril_disable,
48
.pre_sim = ril_pre_sim,
49
.post_sim = ril_post_sim,
50
.post_online = ril_post_online,
51
.set_online = ril_set_online,
55
* This plugin is a device plugin for infineon modems that use RIL interface.
56
* The plugin 'rildev' is used to determine which RIL plugin should be loaded
57
* based upon an environment variable.
59
static int inf_init(void)
63
if ((retval = ofono_modem_driver_register(&infineon_driver)))
64
DBG("ofono_modem_driver_register returned: %d", retval);
69
static void inf_exit(void)
72
ofono_modem_driver_unregister(&infineon_driver);
75
OFONO_PLUGIN_DEFINE(infineon, "Infineon modem driver", VERSION,
76
OFONO_PLUGIN_PRIORITY_DEFAULT, inf_init, inf_exit)