aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-28 20:42:06 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-28 21:39:22 +0100
commit44ebce3689469eef25f28b4601acc20c1a665b6b (patch)
tree9d07ac299892f220285bd9de23a6d5230003d6b8
parent54277ac725423fc90b6e13f5a2cc75e5595544a2 (diff)
downloadhardware_replicant_libsamsung-ipc-patches-todo/xmm616-todo.tar.gz
hardware_replicant_libsamsung-ipc-patches-todo/xmm616-todo.tar.bz2
hardware_replicant_libsamsung-ipc-patches-todo/xmm616-todo.zip
[TODO] Really convert the xmm616 as well?patches-todo/xmm616-todo
Issues: +---------------------+-----+------------------------+----------------------+ | Device | Bus | Last Replicant version | Do I have the device | +---------------------+-----+------------------------+----------------------+ | Galaxy S (GT-I9000) | RAM | 4.2 | No | | Galaxy Tab | RAM | ? | No | | Nexus S (GT-I902x) | RAM | 4.2 | No | +---------------------+-----+------------------------+----------------------+ As I can build but not test at runtime, maybe I should instead make sure that the code can be converted trivially and wait for people with such device to show up to either send patches for the conversion or ask someone to do it. Keeping the xmm616 code as is minimize the probaiblity of breakages. In case some other projects want to support such devices with a mainline kernel it is still interesting to keep the devices working and make sure that supporting the modem of such devices is easy enough once the support for such devices gets mainlined. Other GNU/Linux or Android distributions might still be interested in continuing the support for these devices. Replicant itself doesn't want to officially support such devices as they have shared memory between the modem and the SoC combined with a nonfree modem firmware, however the project is interested in making sure that the code still works for projects and people still using these devices. Another option would be to simply do the conversion and hope that nothing gets broken. This could be done if it's trivial enough. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/modems/modem.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/samsung-ipc/modems/modem.c b/samsung-ipc/modems/modem.c
index a54111f..95689bf 100644
--- a/samsung-ipc/modems/modem.c
+++ b/samsung-ipc/modems/modem.c
@@ -19,6 +19,18 @@
#include <ipc.h>
+int modem_psi_send(struct ipc_client *client, int serial_fd,
+ const void *psi_data, unsigned short psi_size)
+{
+ return client->modem_driver_ops->psi_send(client, serial_fd, psi_data,
+ psi_size);
+}
+// int xmm616_firmware_send(struct ipc_client *client, int device_fd,
+// void *device_address, const void *firmware_data, size_t firmware_size);
+// int xmm616_nv_data_send(struct ipc_client *client, int device_fd,
+// void *device_address);
+//
+
// TODO
// int modem_boot_power(struct ipc_client *client, int device_fd, int power)
// {