aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/modems/modem.h
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-21 05:24:36 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-01 13:10:04 +0200
commit400d1d9a5597ee966bd46bf278e307b3a1d47d25 (patch)
tree558ba86bece88a2249fc348932c61680eb6e04d9 /samsung-ipc/modems/modem.h
parent9d236fe7d27bf8d3e02db4c01bb9bb0eead49157 (diff)
downloadhardware_replicant_libsamsung-ipc-400d1d9a5597ee966bd46bf278e307b3a1d47d25.tar.gz
hardware_replicant_libsamsung-ipc-400d1d9a5597ee966bd46bf278e307b3a1d47d25.tar.bz2
hardware_replicant_libsamsung-ipc-400d1d9a5597ee966bd46bf278e307b3a1d47d25.zip
modems: xmm626: abstract xmm626_{hsic/mipi}_modem_data_send
The only difference between xmm626_hsic_nv_data_send and xmm626_mipi_nv_data_send is the use of xmm626_hsic_modem_data_send instead of xmm626_mipi_modem_data_send. Abstracting these functions would enable to use a common xmm626_nv_data_send. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'samsung-ipc/modems/modem.h')
-rw-r--r--samsung-ipc/modems/modem.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/samsung-ipc/modems/modem.h b/samsung-ipc/modems/modem.h
new file mode 100644
index 0000000..c821760
--- /dev/null
+++ b/samsung-ipc/modems/modem.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2020 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+ *
+ * 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 "ipc.h"
+
+#ifndef __SAMSUNG_IPC_MODEM_H__
+#define __SAMSUNG_IPC_MODEM_H__
+
+int modem_data_send(struct ipc_client *client, int device_fd, const void *data,
+ size_t size, int address);
+
+#endif /* __SAMSUNG_IPC_MODEM_H__ */