📄 nvi_items.h
字号:
#ifndef NVI_ITEMS_H
#define NVI_ITEMS_H
/*===========================================================================
NVI_ITEMS.H
DESCRIPTION
This file is generated by NVC and contains constants, types, and definitions
of all items in NV that are used internally by NV module.
$Header: //depot/asic/msm6250/services/nv/nvi_items.h#86 $
Copyright (c) 1999-2000 by QUALCOMM Incorporated. All Rights Reserved.
===========================================================================*/
/* NVC Version: 1.0.0 */
/* Include Files */
#include "comdef.h"
#include "qw.h"
#include "nv_items.h"
/*=========================================================================*/
/* NVM Items Internal NV Constant Definitions. */
/*=========================================================================*/
/* Redial extension */
#define NVI_REDIAL_EXTENSIONS 1
/* 32 digits (16 bytes) worth of dial storage reserved */
#define NVI_MAX_DIAL_DIGITS_STORAGE 16
/* Ext digit size */
#define NVI_EXT_DIGIT_SIZ 8
/* Specifies the number of bytes in adder array used by rental timer */
#define NVI_ADDER_ARRAY_SIZE 50
/* Half of NV_MAX_DIAL_DIGITS */
#define NVI_MAX_DIAL_DIGITS 16
/* Maximum number of SMS entries. */
#ifdef _SAMSUNG_WMS_SMS //sec_ui1_phw_sms 501 -> 201 Svelte Sync!!
#define NVI_MAX_SMS_ADDR 201
#else
#define NVI_MAX_SMS_ADDR 501
#endif /* _SAMSUNG_WMS_SMS */
/* 16 bytes for auto-generated vernos */
#define NV_AUTO_VERNO_LENGTH 16
/* NAM1 A-key invariant offset */
#define NV_A_KEY_NAM1_ADDR 0x0031
/* NAM2 A-key invariant offset */
#define NV_A_KEY_NAM2_ADDR 0x003A
/* NAM3 A-key invariant offset */
#define NV_A_KEY_NAM3_ADDR 0x0043
/* NAM4 A-Key invariant offset */
#define NV_A_KEY_NAM4_ADDR 0x004C
/* UP Key 1 invariant offset */
#define NV_UP_KEY1_ADDR 0x0055
/* UP Key 2 invariant offset */
#define NV_UP_KEY2_ADDR 0x0066
/* Extended version Number invariant offset */
#define NV_VERNO_EXT_ADDR 0x0077
/* NAM1 SSD A invariant offset */
#define NV_SSD_A_NAM1_ADDR 0x0091
/* NAM2 SSD A invariant offset */
#define NV_SSD_A_NAM2_ADDR 0x009A
/* NAM3 SSD A invariant offset */
#define NV_SSD_A_NAM3_ADDR 0x00A3
/* NAM4 SSD A invariant offset */
#define NV_SSD_A_NAM4_ADDR 0x00AC
/* NAM1 SSD B invariant address */
#define NV_SSD_B_NAM1_ADDR 0x00F1
/* NAM2 SSD B invariant offset */
#define NV_SSD_B_NAM2_ADDR 0x00FA
/* NAM3 SSD B invariant offset */
#define NV_SSD_B_NAM3_ADDR 0x0103
/* NAM4 SSD B invariant offset */
#define NV_SSD_B_NAM4_ADDR 0x010C
/* PAP password invariant offset */
#define NV_PAP_PASSWORD_ADDR 0x00B5
/* Bluetooth address invariant offset */
#define NV_BD_ADDRESS_ADDR 0x0115
/* IMEI invariant offset */
#define NV_UE_IMEI_ADDR 0x011B
#ifndef _SAMSUNG_BREW_COMMON
#define NVI_MAX_OP_TABLE_SIZE 4100
#else
/* [林狼!!] 公炼扒 盖付瘤阜 Item 蔼捞 OP TABLE狼 size啊 登具 茄促.
*/
#define NVI_MAX_OP_TABLE_SIZE NV_MAX_I
#endif //!_SAMSUNG_BREW_COMMON
/*=========================================================================*/
/* NVM Items Internal Type Definitions. */
/*=========================================================================*/
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* Chcksum */
word chksum;
} nvi_a_key_chksum_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* A key array */
qword key;
} nvi_a_key_type;
/* Type to hold aagps_default_ip_address */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
byte aagps_default_ip_address[16];
} nvi_aagps_default_ip_address_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* Next Acquisition pointer to be read */
uint32 curr_rd_index;
/* Next Acquisition pointer to write */
uint32 curr_wr_index;
/* Indicates if the last entry in database pointer list is Invalid */
boolean last_entry_invalid;
/* List of ordered indices to acquisition entries */
uint8 acq_list_indices[MAX_ACQ_DB_ENTRIES];
} nvi_acq_db_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* Acquisition entry */
nv_acq_entry_type acq_entry[2];
} nvi_acq_list2_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* acquisition order preference */
word acq_order;
} nvi_acq_order_pref_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* GSM_850 systematic gain correction applied to AMAM table */
int16 gain_percent;
/* GSM_850 systematic dc correction applied to AMAM table */
int16 dc_percent;
} nvi_amam_sys_gain_dc_corr;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* Registration kind per enum above */
word kind;
} nvi_analog_reg_type;
/* Type to hold apn_name */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
byte apn_name[NV_MAX_APN_STRING_LEN];
} nvi_apn_name_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* Appendix 5 on/off */
boolean appx5_enabled;
/* Appendix 5 IP address */
uint32 appx5_mpc_addr;
/* Appendix 5 Port */
uint16 appx5_mpc_port;
} nvi_appx5_pref_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* TRUE if auto answer enabled */
boolean enable;
/* Number of rings when to answer call */
byte rings;
} nvi_auto_answer_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* TRUE if auto redial enabled */
boolean enable;
/* Number of 10 seconds system busy before redial */
byte rings;
} nvi_auto_redial_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
int16 pwrdBm;
uint16 dacval;
} nvi_autocal_pwr_dac_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* band */
uint32 band;
} nvi_band_pref_32_63_type;
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
/* band */
word band;
} nvi_band_pref_type;
/* Type to hold bc0_ant_quality */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
int16 bc0_ant_quality[NV_MAX_NO_OF_ANT_V][NV_FREQ_TABLE_SIZ];
} nvi_bc0_ant_quality_type;
/* Type to hold bc0_hdr_p1_rise_fall_off */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
uint8 bc0_hdr_p1_rise_fall_off[16];
} nvi_bc0_hdr_p1_rise_fall_off_type;
/* Type to hold bc11_ant_quality */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
uint16 bc11_ant_quality[NV_MAX_ANT_NO_SIZ][NV_FREQ_TABLE_SIZ];
} nvi_bc11_ant_quality_type;
/* Type to hold bc11_exp_hdet_vs_agc */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
byte bc11_exp_hdet_vs_agc[16];
} nvi_bc11_exp_hdet_vs_agc_type;
/* Type to hold bc11_hdr_p1_rise_fall_off */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
uint8 bc11_hdr_p1_rise_fall_off[16];
} nvi_bc11_hdr_p1_rise_fall_off_type;
/* Type to hold bc11_p1_rise_fall_off */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
byte bc11_p1_rise_fall_off[8];
} nvi_bc11_p1_rise_fall_off_type;
/* Type to hold bc11_tx_lim_vs_freq */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
int1 bc11_tx_lim_vs_freq[16];
} nvi_bc11_tx_lim_vs_freq_type;
/* Type to hold bc11_tx_lim_vs_temp */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
byte bc11_tx_lim_vs_temp[8];
} nvi_bc11_tx_lim_vs_temp_type;
/* Type to hold bc11_vco_tune_2 */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
uint8 bc11_vco_tune_2[NV_VCO_CAL_LENGTH];
} nvi_bc11_vco_tune_2_type;
/* Type to hold bc14_ant_quality */
typedef PACKED struct {
/* Has this item ever been initialialized? */
boolean active;
uint16 bc14_ant_quality[NV_MAX_ANT_NO_SIZ][NV_FREQ_TABLE_SIZ];
} nvi_bc14_ant_quality_type;
/* Type to hold bc14_exp_hdet_vs_agc */
typedef PACKED struct {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -