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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/*
* This file is part of libsamsung-ipc.
*
* Copyright (C) 2013-2014 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/>.
*/
#ifndef __XMM626_SEC_MODEM_H__
#define __XMM626_SEC_MODEM_H__
#define XMM626_SEC_MODEM_BOOT0_DEVICE "/dev/umts_boot0"
#define XMM626_SEC_MODEM_BOOT1_DEVICE "/dev/umts_boot1"
#define XMM626_SEC_MODEM_IPC0_DEVICE "/dev/umts_ipc0"
#define XMM626_SEC_MODEM_RFS0_DEVICE "/dev/umts_rfs0"
#define XMM626_SEC_MODEM_LINK_PM_DEVICE "/dev/link_pm"
#define XMM626_SEC_MODEM_EHCI_POWER_SYSFS \
"/sys/devices/platform/s5p-ehci/ehci_power"
#define XMM626_SEC_MODEM_OHCI_POWER_SYSFS \
"/sys/devices/platform/s5p-ohci/ohci_power"
#define XMM626_SEC_MODEM_GPRS_IFACE_PREFIX "rmnet"
#define XMM626_SEC_MODEM_GPRS_IFACE_COUNT 3
int xmm626_kernel_smdk4412_power(struct ipc_client *client, int device_fd,
int power);
int xmm626_kernel_smdk4412_boot_power(struct ipc_client *client, int device_fd,
int power);
int xmm626_kernel_smdk4412_status_online_wait(struct ipc_client *client,
int device_fd);
int xmm626_kernel_smdk4412_hci_power(struct ipc_client *client, int power);
int xmm626_kernel_smdk4412_link_control_enable(struct ipc_client *client,
int device_fd, int enable);
int xmm626_kernel_smdk4412_link_control_active(struct ipc_client *client,
int device_fd, int active);
int xmm626_kernel_smdk4412_link_connected_wait(struct ipc_client *client,
int device_fd);
int xmm626_kernel_smdk4412_link_get_hostwake_wait(struct ipc_client *client,
int device_fd);
int xmm626_kernel_smdk4412_fmt_send(struct ipc_client *client,
struct ipc_message *message);
int xmm626_kernel_smdk4412_fmt_recv(struct ipc_client *client,
struct ipc_message *message);
int xmm626_kernel_smdk4412_rfs_send(struct ipc_client *client,
struct ipc_message *message);
int xmm626_kernel_smdk4412_rfs_recv(struct ipc_client *client,
struct ipc_message *message);
int xmm626_kernel_smdk4412_open(struct ipc_client *client, int type);
int xmm626_kernel_smdk4412_close(struct ipc_client *client, int fd);
int xmm626_kernel_smdk4412_read(struct ipc_client *client, int fd, void *buffer,
size_t length);
int xmm626_kernel_smdk4412_write(struct ipc_client *client, int fd,
const void *buffer, size_t length);
int xmm626_kernel_smdk4412_poll(struct ipc_client *client, int fd,
struct ipc_poll_fds *fds,
struct timeval *timeout);
char *xmm626_kernel_smdk4412_gprs_get_iface(struct ipc_client *client,
unsigned int cid);
int xmm626_kernel_smdk4412_gprs_get_capabilities(
struct ipc_client *client,
struct ipc_client_gprs_capabilities *capabilities);
#endif /* __XMM626_SEC_MODEM_H__ */
|