aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/ipc_devices.h
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-24 01:44:32 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-30 03:53:02 +0100
commit4e03e1b2cc2e1a0e7493c054bb458099423db604 (patch)
treed9d061ad864c975009740d37bc5bd1aa60c0cbc7 /samsung-ipc/devices/ipc_devices.h
parentd755da2fa53f3a037b81a94abdc9a2ad5563a271 (diff)
downloadhardware_replicant_libsamsung-ipc-4e03e1b2cc2e1a0e7493c054bb458099423db604.tar.gz
hardware_replicant_libsamsung-ipc-4e03e1b2cc2e1a0e7493c054bb458099423db604.tar.bz2
hardware_replicant_libsamsung-ipc-4e03e1b2cc2e1a0e7493c054bb458099423db604.zip
ipc_devices.c: move it in the devices directory
As the various devices are in devices/, it also makes sense to move there the structs that define which device specific implementation to use. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'samsung-ipc/devices/ipc_devices.h')
-rw-r--r--samsung-ipc/devices/ipc_devices.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/samsung-ipc/devices/ipc_devices.h b/samsung-ipc/devices/ipc_devices.h
new file mode 100644
index 0000000..a7a6098
--- /dev/null
+++ b/samsung-ipc/devices/ipc_devices.h
@@ -0,0 +1,52 @@
+/*
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2012-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/>.
+ *
+ */
+
+#include <samsung-ipc.h>
+
+#include "devices/crespo/crespo.h"
+#include "devices/aries/aries.h"
+#include "devices/galaxys2/galaxys2.h"
+#include "devices/maguro/maguro.h"
+#include "devices/piranha/piranha.h"
+#include "devices/i9300/i9300.h"
+#include "devices/n7100/n7100.h"
+#include "devices/n5100/n5100.h"
+
+#ifndef __IPC_DEVICES_H__
+#define __IPC_DEVICES_H__
+
+struct ipc_device_desc {
+ char *name;
+ char *board_name;
+ char *kernel_version;
+
+ struct ipc_client_ops *fmt_ops;
+ struct ipc_client_ops *rfs_ops;
+ struct ipc_client_handlers *handlers;
+ struct ipc_client_gprs_specs *gprs_specs;
+ struct ipc_client_nv_data_specs *nv_data_specs;
+};
+
+extern struct ipc_device_desc ipc_devices[];
+extern unsigned int ipc_devices_count;
+
+#endif
+
+// vim:ts=4:sw=4:expandtab