aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc_devices.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-07-04 23:25:21 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-07-04 23:25:21 +0200
commit645a8aa548c7777134cfb505f5ea85bc4cbdcf19 (patch)
treee98988f6f60effad0b58fc85a949cba21405d1cb /samsung-ipc/ipc_devices.c
parent0b6def0105a1c11eeb728f289045412bddfd2bad (diff)
downloadexternal_libsamsung-ipc-645a8aa548c7777134cfb505f5ea85bc4cbdcf19.zip
external_libsamsung-ipc-645a8aa548c7777134cfb505f5ea85bc4cbdcf19.tar.gz
external_libsamsung-ipc-645a8aa548c7777134cfb505f5ea85bc4cbdcf19.tar.bz2
Reworked nv_data handling in nv_data_specs, moved some functions to gprs_specs
nv_data: * Reworked device-specific nv_data passthrough functions * Moved default values in rfs.h * Added more specific infos (size, chunk size, secret) * Applied to xmm6260 device gprs: * Moved non-io-related gprs handlers to gprs_specs * Applied to crespo, aries and xmm6260 devices Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/ipc_devices.c')
-rw-r--r--samsung-ipc/ipc_devices.c33
1 files changed, 21 insertions, 12 deletions
diff --git a/samsung-ipc/ipc_devices.c b/samsung-ipc/ipc_devices.c
index cb76461..f686ba7 100644
--- a/samsung-ipc/ipc_devices.c
+++ b/samsung-ipc/ipc_devices.c
@@ -22,54 +22,63 @@
#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",
.board_name = "herring",
- .handlers = &crespo_default_handlers,
.fmt_ops = &crespo_fmt_ops,
.rfs_ops = &crespo_rfs_ops,
- .fs_ops = NULL,
+ .handlers = &crespo_default_handlers,
+ .gprs_specs = &crespo_gprs_specs,
+ .nv_data_specs = NULL,
},
{
.name = "aries",
.board_name = "aries",
- .handlers = &aries_default_handlers,
.fmt_ops = &aries_fmt_ops,
.rfs_ops = &aries_rfs_ops,
- .fs_ops = NULL,
+ .handlers = &aries_default_handlers,
+ .gprs_specs = &aries_gprs_specs,
+ .nv_data_specs = NULL,
},
{
.name = "aries",
.board_name = "gt-p1000",
- .handlers = &aries_default_handlers,
.fmt_ops = &aries_fmt_ops,
.rfs_ops = &aries_rfs_ops,
- .fs_ops = NULL,
+ .handlers = &aries_default_handlers,
+ .gprs_specs = &aries_gprs_specs,
+ .nv_data_specs = NULL,
},
{
.name = "galaxys2",
.board_name = "i9100",
- .handlers = &xmm6260_default_handlers,
.fmt_ops = &xmm6260_i9100_fmt_ops,
.rfs_ops = &xmm6260_rfs_ops,
- .fs_ops = NULL,
+ .handlers = &xmm6260_default_handlers,
+ .gprs_specs = &xmm6260_gprs_specs,
+ .nv_data_specs = NULL,
},
{
.name = "galaxys2",
.board_name = "smdk4210",
- .handlers = &xmm6260_default_handlers,
.fmt_ops = &xmm6260_i9100_fmt_ops,
.rfs_ops = &xmm6260_rfs_ops,
- .fs_ops = NULL,
+ .handlers = &xmm6260_default_handlers,
+ .gprs_specs = &xmm6260_gprs_specs,
+ .nv_data_specs = NULL,
},
{
.name = "maguro",
.board_name = "tuna",
- .handlers = &xmm6260_default_handlers,
.fmt_ops = &xmm6260_i9250_fmt_ops,
.rfs_ops = &xmm6260_rfs_ops,
- .fs_ops = &xmm6260_i9250_fs_ops,
+ .handlers = &xmm6260_default_handlers,
+ .gprs_specs = &xmm6260_gprs_specs,
+ .nv_data_specs = &xmm6260_nv_data_specs,
}
};