From 645a8aa548c7777134cfb505f5ea85bc4cbdcf19 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 4 Jul 2012 23:25:21 +0200 Subject: 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 --- samsung-ipc/ipc_devices.c | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'samsung-ipc/ipc_devices.c') 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, } }; -- cgit v1.1