diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-07-04 23:25:21 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-07-04 23:25:21 +0200 |
commit | 645a8aa548c7777134cfb505f5ea85bc4cbdcf19 (patch) | |
tree | e98988f6f60effad0b58fc85a949cba21405d1cb /include | |
parent | 0b6def0105a1c11eeb728f289045412bddfd2bad (diff) | |
download | external_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 'include')
-rw-r--r-- | include/rfs.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/rfs.h b/include/rfs.h index fc61069..6c2fa63 100644 --- a/include/rfs.h +++ b/include/rfs.h @@ -27,8 +27,14 @@ struct ipc_message_info; #define IPC_RFS_NV_READ_ITEM 0x4201 #define IPC_RFS_NV_WRITE_ITEM 0x4202 -#define NV_DATA_MD5_SECRET "Samsung_Android_RIL" -#define NV_DATA_SIZE 0x200000 +#define NV_DATA_PATH_DEFAULT "/efs/nv_data.bin" +#define NV_DATA_MD5_PATH_DEFAULT "/efs/nv_data.bin.md5" +#define NV_DATA_BAK_PATH_DEFAULT "/efs/.nv_data.bak" +#define NV_DATA_MD5_BAK_PATH_DEFAULT "/efs/.nv_data.bak.md5" +#define NV_STATE_PATH_DEFAULT "/efs/.nv_state" +#define NV_DATA_SECRET_DEFAULT "Samsung_Android_RIL" +#define NV_DATA_SIZE_DEFAULT 0x200000 +#define NV_DATA_CHUNK_SIZE_DEFAULT 0x1000 #define MD5_STRING_SIZE MD5_DIGEST_LENGTH * 2 + 1 @@ -46,11 +52,14 @@ struct ipc_rfs_io_confirm { void md5hash2string(char *out, uint8_t *in); char *nv_data_path(struct ipc_client *client); char *nv_data_md5_path(struct ipc_client *client); -char *nv_state_path(struct ipc_client *client); char *nv_data_bak_path(struct ipc_client *client); char *nv_data_md5_bak_path(struct ipc_client *client); +char *nv_state_path(struct ipc_client *client); +char *nv_data_secret(struct ipc_client *client); +int nv_data_size(struct ipc_client *client); +int nv_data_chunk_size(struct ipc_client *client); void nv_data_generate(struct ipc_client *client); -void nv_data_md5_compute(void *data_p, int size, void *hash); +void nv_data_md5_compute(void *data_p, int size, char *secret, void *hash); void nv_data_md5_generate(struct ipc_client *client); void nv_data_backup_create(struct ipc_client *client); void nv_data_backup_restore(struct ipc_client *client); |