📄 tcm_common.h
字号:
kal_bool flow_label_present;
kal_uint32 flow_label;
struct pkt_filter_struct *next_ptr;
} mmi_packet_filter_struct;
typedef struct
{
mmi_packet_filter_struct *filter_list_ptr;
} mmi_tft_struct;
/* MMI : This is added for class-B MMI */
typedef struct mmi_protocol_config_packet_struct
{
kal_uint16 protocol_id;
kal_uint8 protocol_config_size;
kal_uint8 protocol_config[ MAX_CONFIG_OPTION_CONTENT_LEN ];
struct mmi_protocol_config_packet_struct *next_ptr;
} mmi_protocol_config_packet_struct;
typedef struct
{
kal_uint8 context_id;/* Context identifier */
kal_uint8 nsapi; /* Nsapi identifier */
kal_uint8 token_id; /* Stores the token_id sent by SM incase
* of a network initiated context
* activation indication
*/
kal_uint8 profile_id; /* Internal profile identifier */
kal_uint8 AT_definition; //mtk00714 w0633
pdp_context_type_enum context_type; /* Context type identifier
* (Primary/Secondary).
*/
kal_uint8 primary_context_id;/* Primary context identifier to
* which this context is associated.
*/
/***************************************/
/* affected by +CGDCONT and +CGDSCONT */
/***************************************/
kal_uint8 apn_len; /* Access point name length. This is a
* optional parameter at the time of
* context activation.
*/
pdp_addr_type_enum pdp_addr_type;/* pdp address type */
pdp_addr_len_enum pdp_addr_len; /* pdp address length */
mmi_addr_scheme_enum addr_scheme; /* Addressing scheme
* (Static/Dynamic)
*/
kal_uint8 addr_val[MAX_PDP_ADDR_LEN];/* pdp address is stored in
* this field. the address is
* filled in the most
* significant bits; this
* address received will have
* variable length.
*/
kal_uint8 apn[MAX_APN_LEN]; /* Access point name. */
snd_pcomp_algo_enum pcomp_algo;/* Protocol compression algorithm
* to be used.
*/
snd_dcomp_algo_enum dcomp_algo;/* Protocol decompression algorithm
* to be used.
*/
/***************************************/
/* affected by +CGQREQ and +CGEQREQ */
/***************************************/
qos_struct req_qos; /* Requeseted qos */
/***************************************/
/* affected by +CGQMIN and +CGEQMIN */
/***************************************/
qos_struct min_qos; /* Minimum qos */
/****************************************/
qos_struct neg_qos; /* Negotiated qos */
context_mod_type_enum mod_type; /* Context modification type
* field.
*/
mmi_ltwoh_protocol_enum l2p; /* Layer two protocol used */
kal_uint8 prot_option_len; /* Protocol configuration option length
* field.
*/
/* MMI: This is added for class-B MMI */
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#else
kal_uint8 config_protocol;
mmi_protocol_config_packet_struct prot_options_struct;
#endif
initiated_enum initiated_by;/* Context initiation identifier
* (network/Ms)
*/
mmi_tft_struct tft_in_use; /* Traffic flow template currently
* being used by a context.
*/
mmi_tft_struct tft_under_mod;/* Traffic flow template to which the
* context is requested to modify to.
*/
mmi_startup_type_enum startup_type; /* pdp startup identifier.
* Could be internal(via ATCI)
* or external(via PPP).
*/
mmi_context_state_enum state;/* PDP context state. This is not to
* be confused with attachstatus,
* i.e. GMM state.
*/
tft_opcode_enum tft_opcode; /* the tft operation opcode */
mmi_sib_usage_enum is_sib_defined;/* Used to know whether the
* sib is free or in use.
*/
kal_uint8 dns[4];
kal_uint8 is_chap;
kal_uint8 name_length;
kal_uint8 name_dcs;
kal_uint8 name[32];
kal_uint8 user_name[TCM_MAX_GPRS_USER_NAME_LEN];
kal_uint8 password[TCM_MAX_GPRS_PASSWORD_LEN];
kal_uint8 src_id; /* L4C src_id, add 04.04.29 */
kal_uint8 tear_down_flag; //erica dallas 20060505: for 2ndary PDP
}session_info_block_struct; /* End of type definition of session
* information block.
*/
/* MMI common functions prototypes */
/* Functions to manipulate the session information block */
extern void tcm_error_handler( local_para_struct *local_para_ptr,
peer_buff_struct *peer_buff_ptr );
extern kal_bool tcm_terminate_context( kal_uint8 sib_id );
extern void tcm_send_write_statistic_to_nvram( void );
extern kal_bool mmi_create_sib( kal_uint8 sib_id );
extern kal_bool mmi_delete_sib( kal_uint8 sib_id );
extern kal_bool mmi_init_context( void );
extern kal_bool mmi_reset_context( void );
extern kal_bool mmi_check_msg( ilm_struct *ilm_ptr );
extern kal_bool mmi_string_cmp( kal_uint8 *str1,
kal_uint32 len1,
kal_uint8 *str2,
kal_uint32 len2 );
extern void tcm_qos_R98_to_R99(qos_struct *s);
extern void tcm_qos_R99_to_R98(qos_struct *s);
extern void mmi_fill_def_qos_gprs( mmi_qos_type_enum type,
session_info_block_struct *sib_ptr
);
extern void mmi_fill_def_qos_umts( mmi_qos_type_enum type,
session_info_block_struct *sib_ptr
);
extern kal_bool mmi_is_sib_free( kal_uint8 sib_id,
mmi_sib_usage_enum *sib );
extern kal_uint8 mmi_nsapi_check( kal_uint8 nsapi );
extern kal_uint8 mmi_cntxt_id_check( kal_uint8 cntxt_id );
extern kal_uint8 mmi_pdp_addr_ltcheck( pdp_addr_len_enum pl,
pdp_addr_type_enum pt );
extern kal_uint8 mmi_smcause_check( ps_cause_enum cs );
extern kal_uint8 mmi_qos_check( qos_struct *q_ptr );
extern void mmi_ignore_msg( local_para_struct *local_para_ptr,
peer_buff_struct *peer_buff_ptr );
extern session_info_block_struct *mmi_get_sib_ptr( kal_uint8 sib_id );
extern mmi_packet_filter_struct *mmi_free_list(
mmi_packet_filter_struct *l_ptr );
extern mmi_packet_filter_struct *mmi_delete_list(
mmi_packet_filter_struct *d_ptr,
mmi_packet_filter_struct *s_ptr );
#ifdef __R99__
extern void mmi_append_list( mmi_packet_filter_struct **d_ptr,
mmi_packet_filter_struct **s_ptr,
kal_bool replace );
#endif
extern kal_uint8 mmi_get_sib_id( kal_int32 flag,
kal_uint8 val );
extern kal_uint8 mmi_get_context_id( kal_uint8 sib_id );
/* erica 20051215 mark unused codes */
//extern kal_uint8 mmi_get_nsapi( kal_uint8 sib_id );
extern void mmi_send_msg_to_mm( msg_type msg_type, void *param_ptr,
module_type mod_name );
extern kal_bool mmi_alloc_nsapi( kal_uint8 context_id );
extern void mmi_free_nsapi( SESSION_INFO_PTR si_db_ptr );
extern kal_uint8 mmi_nsapi_to_cid( kal_uint8 nsapi );
extern kal_uint8 mmi_cid_to_nsapi( kal_uint8 cid );
extern kal_bool mmi_cid_in_use( kal_uint8 cid );
//erica 20060916
extern void tcm_fill_config_options(void *config_option,
kal_uint8* config_option_num,
kal_uint8 is_chap,
kal_uint8* user_name,
kal_uint8*password);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -