diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 16:22:19 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 16:22:19 +0200 |
commit | 9d1137d9197552439af937fee4b9ec5368f562bf (patch) | |
tree | ea7fc5e6a73761d414daa9f09eadf05a5937bb89 /include/rfs.h | |
parent | e207275718352c781c5ddcfdd1015fde36259e9b (diff) | |
download | external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.zip external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.tar.gz external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.tar.bz2 |
Drop support for the (incomplete) old protocol implementation used on H1.
Also refactor headers: values aligned to 16x4 spaces and other cosmetics
Change-Id: I5a6f2c2471599c88c4be74591117d0ab2dfaaddf
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/rfs.h')
-rw-r--r-- | include/rfs.h | 49 |
1 files changed, 32 insertions, 17 deletions
diff --git a/include/rfs.h b/include/rfs.h index 0df65d3..523fb23 100644 --- a/include/rfs.h +++ b/include/rfs.h @@ -1,7 +1,7 @@ -/** +/* * This file is part of libsamsung-ipc. * - * Copyright (C) 2011 Paul Kocialkowski <contact@paulk.fr> + * Copyright (C) 2011-2013 Paul Kocialkowski <contact@paulk.fr> * * libsamsung-ipc is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,25 +18,36 @@ * */ -#ifndef __RFS_H__ -#define __RFS_H__ +#include <samsung-ipc.h> -struct ipc_client; -struct ipc_message_info; +#ifndef __SAMSUNG_IPC_RFS_H__ +#define __SAMSUNG_IPC_RFS_H__ -#define IPC_RFS_NV_READ_ITEM 0x4201 -#define IPC_RFS_NV_WRITE_ITEM 0x4202 +/* + * Types + */ + +#define IPC_RFS_NV_READ_ITEM 0x4201 +#define IPC_RFS_NV_WRITE_ITEM 0x4202 + +/* + * Values + */ -#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 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 +#define MD5_STRING_SIZE MD5_DIGEST_LENGTH * 2 + 1 + +/* + * Structures + */ struct ipc_rfs_io { unsigned int offset; @@ -49,6 +60,10 @@ struct ipc_rfs_io_confirm { unsigned int length; } __attribute__((__packed__)); +/* + * Helpers + */ + void md5hash2string(char *out, uint8_t *in); char *nv_data_path(struct ipc_client *client); char *nv_data_md5_path(struct ipc_client *client); |