aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc_devices.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-07-05 17:54:25 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-07-05 19:14:37 +0200
commit84cd42f10be74c0a60545c2035876e3beca644a3 (patch)
treeb78334b1d9ba9ce2ff6d5ac65cd4b2c6b0130bd9 /samsung-ipc/ipc_devices.c
parent2eea520884474f4eefcf03815d52dfaac9e03cce (diff)
downloadexternal_libsamsung-ipc-84cd42f10be74c0a60545c2035876e3beca644a3.zip
external_libsamsung-ipc-84cd42f10be74c0a60545c2035876e3beca644a3.tar.gz
external_libsamsung-ipc-84cd42f10be74c0a60545c2035876e3beca644a3.tar.bz2
XMM6260: Split code into galaxys2, maguro and xmm2620 (shared code) devices
* Moved maguro and galaxys2 loaders to proper folders * Renamed i9100 to galaxys2 and i9250 to maguro * Device-specific ops, handlers, gprs_specs and nv_data_specs on XMM2620 devices though most data/functions are still shared in xmm2620_ipc * Removed radio_parts from modemctl_io_data * Moved CRC calculate function to xmm2620_loader * Moved io_helpers functions to xmm2620_loader * Listed include headers in each file instead of using common.h * Prefixed remaining xmm2620 files Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/ipc_devices.c')
-rw-r--r--samsung-ipc/ipc_devices.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/samsung-ipc/ipc_devices.c b/samsung-ipc/ipc_devices.c
index f686ba7..14c1ff6 100644
--- a/samsung-ipc/ipc_devices.c
+++ b/samsung-ipc/ipc_devices.c
@@ -18,13 +18,12 @@
*
*/
+#include <stdlib.h>
+
#include <radio.h>
#include "ipc_devices.h"
- struct ipc_gprs_specs *gprs_specs;
- struct ipc_nv_data_specs *nv_data_specs;
-
struct ipc_device_desc ipc_devices[] = {
{
.name = "crespo",
@@ -56,29 +55,29 @@ struct ipc_device_desc ipc_devices[] = {
{
.name = "galaxys2",
.board_name = "i9100",
- .fmt_ops = &xmm6260_i9100_fmt_ops,
- .rfs_ops = &xmm6260_rfs_ops,
- .handlers = &xmm6260_default_handlers,
- .gprs_specs = &xmm6260_gprs_specs,
+ .fmt_ops = &galaxys2_fmt_ops,
+ .rfs_ops = &galaxys2_rfs_ops,
+ .handlers = &galaxys2_default_handlers,
+ .gprs_specs = &galaxys2_gprs_specs,
.nv_data_specs = NULL,
},
{
.name = "galaxys2",
.board_name = "smdk4210",
- .fmt_ops = &xmm6260_i9100_fmt_ops,
- .rfs_ops = &xmm6260_rfs_ops,
- .handlers = &xmm6260_default_handlers,
- .gprs_specs = &xmm6260_gprs_specs,
+ .fmt_ops = &galaxys2_fmt_ops,
+ .rfs_ops = &galaxys2_rfs_ops,
+ .handlers = &galaxys2_default_handlers,
+ .gprs_specs = &galaxys2_gprs_specs,
.nv_data_specs = NULL,
},
{
.name = "maguro",
.board_name = "tuna",
- .fmt_ops = &xmm6260_i9250_fmt_ops,
- .rfs_ops = &xmm6260_rfs_ops,
- .handlers = &xmm6260_default_handlers,
- .gprs_specs = &xmm6260_gprs_specs,
- .nv_data_specs = &xmm6260_nv_data_specs,
+ .fmt_ops = &maguro_fmt_ops,
+ .rfs_ops = &maguro_rfs_ops,
+ .handlers = &maguro_default_handlers,
+ .gprs_specs = &maguro_gprs_specs,
+ .nv_data_specs = &maguro_nv_data_specs,
}
};