android_kernel_oneplus_msm8998/include/linux/param_rw.h
liochen 8148b9d900 Synchronize codes for OnePlus5 & 5T OxygenOS 9.0.0
kernel device tree source code for OnePlus 5 & 5T P device

Change-Id: I84f40e66833ea1ce30eb1d9a710d6e1529e9e637
2018-12-26 11:02:39 +08:00

36 lines
781 B
C

#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