aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/device/piranha/piranha_ipc.c
blob: 17b7133200cf0cadb549333802a3db67c0c579d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
 * This file is part of libsamsung-ipc.
 *
 * Copyright (C) 2013 Paul Kocialkowski <contact@paulk.fr>
 *
 * libsamsung-ipc is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * libsamsung-ipc 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 libsamsung-ipc.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <stdlib.h>

#include "ipc.h"

#include "xmm6260_ipc.h"
#include "piranha_loader.h"

struct ipc_ops piranha_ipc_fmt_ops = {
    .bootstrap = piranha_modem_bootstrap,
    .send = xmm6260_ipc_fmt_send,
    .recv = xmm6260_ipc_fmt_recv,
};

struct ipc_ops piranha_ipc_rfs_ops = {
    .bootstrap = NULL,
    .send = xmm6260_ipc_rfs_send,
    .recv = xmm6260_ipc_rfs_recv,
};

struct ipc_handlers piranha_ipc_handlers = {
    .read = xmm6260_ipc_read,
    .write = xmm6260_ipc_write,
    .open = xmm6260_ipc_open,
    .close = xmm6260_ipc_close,
    .poll = xmm6260_ipc_poll,
    .transport_data = NULL,
    .power_on = xmm6260_ipc_power_on,
    .power_off = xmm6260_ipc_power_off,
    .power_data = NULL,
    .gprs_activate = NULL,
    .gprs_deactivate = NULL,
    .gprs_data = NULL,
    .data_create = xmm6260_ipc_data_create,
    .data_destroy = xmm6260_ipc_data_destroy,
};

struct ipc_gprs_specs piranha_ipc_gprs_specs = {
    .gprs_get_iface = xmm6260_ipc_gprs_get_iface,
    .gprs_get_capabilities = xmm6260_ipc_gprs_get_capabilities,
};

// vim:ts=4:sw=4:expandtab