aboutsummaryrefslogtreecommitdiff
path: root/include/linux/param_rw.h
blob: cb3978255fca0cf66a1fded330666704292ffcd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __PARAM_RW_H
#define __PARAM_RW_H

#define PARAM_SID_LENGTH 1024
#define DEFAULT_PARAM_DUMP_SIZE 64

typedef unsigned int       uint32;

typedef enum {
	PARAM_SID_PRODUCT = 0,
	PARAM_SID_CONFIG,
	PARAM_SID_LCD,
	PARAM_SID_TP,
	PARAM_SID_TP_KPD,
	PARAM_SID_CAMERA,
	PARAM_SID_SENSORS,
	PARAM_SID_BATTERY,
	PARAM_SID_RTC,
	PARAM_SID_CRASH_RECORD,
	PARAM_SID_SALEINFO,
	PARAM_SID_MISC,
	PARAM_SID_DOWNLOAD,
	PARAM_SID_PHONE_HISTORY,
	NUM_PARAM_PLAINTEXT_SEGMENT,

	PARAM_SID_INVALID = -1
} param_sid_index_t;

int get_param_by_index_and_offset(uint32 sid_index, uint32 offset, void * buf, int length);
int set_param_by_index_and_offset(uint32 sid_index, uint32 offset, void * buf, int length);

int add_restart_08_count(void);
int add_restart_other_count(void);
//end
#endif