aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/modems/generic-xmm626/generic-xmm626_sec_modem.h
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/modems/generic-xmm626/generic-xmm626_sec_modem.h')
-rw-r--r--samsung-ipc/modems/generic-xmm626/generic-xmm626_sec_modem.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/samsung-ipc/modems/generic-xmm626/generic-xmm626_sec_modem.h b/samsung-ipc/modems/generic-xmm626/generic-xmm626_sec_modem.h
new file mode 100644
index 0000000..5360a14
--- /dev/null
+++ b/samsung-ipc/modems/generic-xmm626/generic-xmm626_sec_modem.h
@@ -0,0 +1,52 @@
+/*
+ * 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 __GENERIC_XMM626_SEC_MODEM_H__
+#define __GENERIC_XMM626_SEC_MODEM_H__
+
+#define GENERIC_XMM626_SEC_MODEM_BOOT0_DEVICE "/dev/xmm6262_boot0"
+#define GENERIC_XMM626_SEC_MODEM_IPC0_DEVICE "/dev/umts_ipc"
+#define GENERIC_XMM626_SEC_MODEM_RFS0_DEVICE "/dev/umts_rfs"
+#define GENERIC_XMM626_SEC_MODEM_LINK_PM_DEVICE "/dev/link_pm"
+#define GENERIC_XMM626_SEC_MODEM_EHCI_POWER_SYSFS "/sys/devices/platform/soc/12580000.ehci/ehci_power"
+#define GENERIC_XMM626_SEC_HOSTWAKE_PATH "/sys/devices/platform/xmm6262/hostwake"
+#define GENERIC_XMM626_SEC_LINK_ACTIVE_PATH "/sys/devices/platform/xmm6262/link_active"
+#define GENERIC_XMM626_SEC_MODEM_POWER_PATH "/sys/devices/platform/xmm6262/modem_power"
+#define GENERIC_XMM626_SEC_MODEM_PDA_ACTIVE_SYSFS "/sys/devices/platform/xmm6262/pda_active"
+#define GENERIC_XMM626_SEC_MODEM_SLAVEWAKE_SYSFS "/sys/devices/platform/xmm6262/slavewake"
+//#define GENERIC_XMM626_SEC_MODEM_OHCI_POWER_SYSFS "/sys/devices/platform/s5p-ohci/ohci_power"
+
+int generic_xmm626_sec_modem_link_control_enable(int device_fd, int enable);
+int generic_xmm626_sec_modem_fmt_send(struct ipc_client *client,
+ struct ipc_message *message);
+int generic_xmm626_sec_modem_fmt_send(struct ipc_client *client,
+ struct ipc_message *message);
+int generic_xmm626_sec_modem_power(__attribute__((unused)) int device_fd, int power);
+int generic_xmm626_sec_modem_hci_power(int power);
+int generic_xmm626_sec_modem_link_connected_wait(__attribute__((unused)) int device_fd);
+int generic_xmm626_sec_modem_link_get_hostwake_wait(__attribute__((unused)) int device_fd);
+int generic_xmm626_sec_modem_link_control_active(__attribute__((unused)) int device_fd,
+ int active);
+int generic_xmm626_sec_modem_open(int type);
+int generic_xmm626_sec_modem_read(int fd, void *buffer, size_t length);
+int generic_xmm626_sec_modem_write(int fd, const void *buffer, size_t length);
+
+#endif /* __GENERIC_XMM626_SEC_MODEM_H__ */
+
+// vim:ts=4:sw=4:expandtab