FreeCalypso > hg > fc-magnetite
comparison src/ui3/mfw/mfw_simi.h @ 420:e8ddbb0837ed
src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:09:00 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
419:59143cd42ec7 | 420:e8ddbb0837ed |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: GSM-MFW (?) $Workfile:: mfw_simi.h $| | |
4 | $Author:: Vo $Revision:: 1 $| | |
5 | CREATED: 14.10.98 $Modtime:: 20.03.00 11:48 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 PURPOSE : Internal definitions for SIM management of MMI framework | |
10 | |
11 $History:: mfw_simi.h $ | |
12 | |
13 May 15, 2006 DR: OMAPS00067919 x0pleela | |
14 Description: SIMP:On repeat Depersonalisation with invalid password MEPD unblock key should | |
15 be asked not Puk1. | |
16 Solution: Added prototype of funtion sim_simlock_cpin_code() | |
17 */ | |
18 | |
19 #ifndef DEF_MFW_SIMI_HEADER | |
20 #define DEF_MFW_SIMI_HEADER | |
21 | |
22 #include "message.h" | |
23 #include "prim.h" | |
24 #include "aci_cmh.h" | |
25 | |
26 #define NO_ALLOCATED 0 | |
27 #define ALLOCATED_AND_DEACTIVATED 2 | |
28 #define ALLOCATED_AND_ACTIVATED 3 | |
29 | |
30 #define SIM_UBLK_ERROR 0 | |
31 #define SIM_UBLK_OK 1 | |
32 | |
33 #define SIM_PIN2_FAILURE 17 | |
34 #define SIM_PUK2_FAILURE 18 | |
35 | |
36 #define MFW_LEN_PLMN_NTRY 3 | |
37 | |
38 /* SIM configuration information */ | |
39 typedef struct | |
40 { | |
41 UBYTE deper_key [16]; | |
42 UBYTE phase; | |
43 UBYTE oper_mode; /* SIM card functionality */ | |
44 UBYTE pref_lang[5]; | |
45 UBYTE access_acm; | |
46 UBYTE access_acmmax; | |
47 UBYTE access_puct; | |
48 UBYTE sim_gidl1[5]; | |
49 UBYTE sim_gidl2[5]; | |
50 } T_MFW_SIM_CONFIG; | |
51 | |
52 /* | |
53 * SIM Control Block | |
54 */ | |
55 typedef struct | |
56 { | |
57 T_MFW_EVENT emask; /* events of interest */ | |
58 T_MFW_EVENT event; /* current event */ | |
59 T_MFW_CB handler; | |
60 T_MFW_SIM_PARA para; | |
61 } T_MFW_SIM; | |
62 | |
63 | |
64 | |
65 EXTERN T_MFW_HND sim_install (T_MFW_HDR *w, | |
66 T_MFW_HDR *h, | |
67 T_MFW_SIM *sim); | |
68 EXTERN T_MFW_RES sim_remove (T_MFW_HDR *h); | |
69 EXTERN int sim_sign_exec (T_MFW_HDR * hdr, | |
70 T_MFW_EVENT event, | |
71 T_MFW_SIM_PARA *para); | |
72 | |
73 | |
74 | |
75 EXTERN void sim_spn_req (void); | |
76 EXTERN void sim_ok_cfun (void); | |
77 /* OMAPS00075177 - 17,Apr-2006 */ | |
78 /* Signature of the function has been changed from U8 to T_ACI_CME_ERR. | |
79 because, when calling this function, it is converting from T_ACI_CME_ERR to U8. | |
80 It is loosing the negative values( the enum T_ACI_CME_ERR has negative values ) | |
81 */ | |
82 EXTERN void sim_error_cfun (T_ACI_CME_ERR reason); | |
83 EXTERN void sim_ok_cpin (void); | |
84 EXTERN void sim_error_cpin (T_ACI_CME_ERR reason); | |
85 EXTERN void sim_ok_cpinc (void); | |
86 EXTERN void sim_error_cpinc (void); | |
87 EXTERN void sim_ok_cpind (void); | |
88 EXTERN void sim_error_cpind (void); | |
89 EXTERN void sim_ok_cpine (void); | |
90 EXTERN void sim_error_cpine (void); | |
91 EXTERN UBYTE sim_check_service (UBYTE nr, UBYTE * serv_table); | |
92 EXTERN T_MFW sim_status_check (void); | |
93 EXTERN void decode_imsi (UBYTE simlck[], | |
94 UBYTE imsi_id[LONG_NAME]); | |
95 EXTERN void sim_mmi_parameter (T_SIM_ACTIVATE_CNF *sim_activate_cnf); | |
96 EXTERN void sim_ss_unblock (UBYTE result, T_ACI_CME_ERR reason); | |
97 EXTERN void sim_simlock_timeout (void); | |
98 EXTERN T_MFW sim_simlock_status (UBYTE status); | |
99 EXTERN UBYTE sim_cvtPINstatus (T_ACI_PVRF_STAT ps, UBYTE type); | |
100 EXTERN void sim_gid1_cnf (USHORT error, UBYTE *data); | |
101 EXTERN void sim_gid2_cnf (USHORT error, UBYTE *data); | |
102 EXTERN void sim_pin_ident (UBYTE id); | |
103 EXTERN T_MFW sim_check_imsi_digit (UBYTE pcm_imsi, UBYTE sim_imsi); | |
104 EXTERN void sim_mmi_update_parameter(T_SIM_ACTIVATE_IND *sim_act_ind); | |
105 EXTERN void sim_sat_file_update (USHORT dataId); | |
106 EXTERN void sim_read_sst_cnf (USHORT error, UBYTE *data); | |
107 EXTERN void sim_read_lp_cnf (USHORT error, T_ACI_LAN_SUP *CLang); | |
108 | |
109 //x0pleela 21 Apr, 2006 DR: OMAPS00067919 | |
110 #ifdef SIM_PERS | |
111 EXTERN void sim_simlock_cpin_code (T_ACI_CPIN_RSLT code); | |
112 #endif | |
113 #endif |