aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/device/xmm6260
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/device/xmm6260
parent0b6def0105a1c11eeb728f289045412bddfd2bad (diff)
downloadhardware_replicant_libsamsung-ipc-645a8aa548c7777134cfb505f5ea85bc4cbdcf19.tar.gz
hardware_replicant_libsamsung-ipc-645a8aa548c7777134cfb505f5ea85bc4cbdcf19.tar.bz2
hardware_replicant_libsamsung-ipc-645a8aa548c7777134cfb505f5ea85bc4cbdcf19.zip
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/device/xmm6260')
-rw-r--r--samsung-ipc/device/xmm6260/xmm6260_ipc.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.c b/samsung-ipc/device/xmm6260/xmm6260_ipc.c
index 4d2cb21..2c1a0a5 100644
--- a/samsung-ipc/device/xmm6260/xmm6260_ipc.c
+++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.c
@@ -418,22 +418,6 @@ int xmm6260_ipc_common_data_get_fd(void *io_data)
return (int) *(common_data);
}
-struct ipc_handlers xmm6260_default_handlers = {
- .read = xmm6260_ipc_read,
- .write = xmm6260_ipc_write,
- .open = xmm6260_ipc_open,
- .close = xmm6260_ipc_close,
- .power_on = xmm6260_ipc_power_on,
- .power_off = xmm6260_ipc_power_off,
- .gprs_get_iface = xmm6260_ipc_gprs_get_iface,
- .gprs_get_capabilities = xmm6260_ipc_gprs_get_capabilities,
- .common_data = NULL,
- .common_data_create = xmm6260_ipc_common_data_create,
- .common_data_destroy = xmm6260_ipc_common_data_destroy,
- .common_data_set_fd = xmm6260_ipc_common_data_set_fd,
- .common_data_get_fd = xmm6260_ipc_common_data_get_fd,
-};
-
struct ipc_ops xmm6260_i9100_fmt_ops = {
.send = xmm6260_ipc_send,
.recv = xmm6260_ipc_recv,
@@ -452,7 +436,27 @@ struct ipc_ops xmm6260_rfs_ops = {
.bootstrap = NULL,
};
-struct ipc_fs_ops xmm6260_i9250_fs_ops = {
+struct ipc_handlers xmm6260_default_handlers = {
+ .read = xmm6260_ipc_read,
+ .write = xmm6260_ipc_write,
+ .open = xmm6260_ipc_open,
+ .close = xmm6260_ipc_close,
+ .power_on = xmm6260_ipc_power_on,
+ .power_off = xmm6260_ipc_power_off,
+ .common_data = NULL,
+ .common_data_create = xmm6260_ipc_common_data_create,
+ .common_data_destroy = xmm6260_ipc_common_data_destroy,
+ .common_data_set_fd = xmm6260_ipc_common_data_set_fd,
+ .common_data_get_fd = xmm6260_ipc_common_data_get_fd,
+};
+
+struct ipc_gprs_specs xmm6260_gprs_specs = {
+ .gprs_get_iface = xmm6260_ipc_gprs_get_iface,
+ .gprs_get_capabilities = xmm6260_ipc_gprs_get_capabilities,
+};
+
+
+struct ipc_nv_data_specs xmm6260_nv_data_specs = {
.nv_data_path = "/factory/nv_data.bin",
.nv_data_md5_path = "/factory/nv_data.bin.md5",
.nv_state_path = "/factory/.nv_state",