comparison src/aci2/mfw/mfw_nmi.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: GSM-MFW (?) $Workfile:: mfw_nmi.h $|
4 | $Author:: Vo $Revision:: 1 $|
5 | CREATED: 07.10.98 $Modtime:: 21.10.99 12:18 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 PURPOSE : Internal definitions for network management
10 .
11 */
12
13 #ifndef DEF_MFW_NMI_HEADER
14 #define DEF_MFW_NMI_HEADER
15
16 #define MAX_PREF_PLNM 8
17
18 #define MAX_PIN_COUNT 3 /* permit maximal entering for user */
19 #define MAX_PUK_COUNT 5
20 #define FIRST_SIM_INVAILD 1
21
22 #define SERVICE_OK 1
23 #define SERVICE_FAILURE 0
24
25 #define CMD_NOT_PRESENT 0
26
27
28 /*
29 * Network Control Block
30 */
31 typedef struct
32 {
33 T_MFW_EVENT emask; /* events of interest */
34 T_MFW_EVENT event; /* current event */
35 T_MFW_CB handler;
36 T_MFW_NM_PARA para;
37 } T_MFW_NM;
38
39
40 EXTERN T_MFW_HND nm_install (T_MFW_HDR *w,
41 T_MFW_HDR *h,
42 T_MFW_NM *nm);
43 EXTERN T_MFW_RES nm_remove (T_MFW_HDR *h);
44
45
46 EXTERN void nm_activate (UBYTE result);
47 #ifdef FF_2TO1_PS
48 EXTERN void nm_mmi_parameters (T_SIM_imsi_field *imsi_field,
49 T_SIM_pref_plmn *pref_plmn);
50 #else
51 EXTERN void nm_mmi_parameters (T_imsi_field *imsi_field,
52 T_pref_plmn *pref_plmn);
53 #endif
54 EXTERN void nm_spn_cnf (SHORT error, T_EF_SPN *efspn);
55 EXTERN void nm_ok_cops (void);
56 EXTERN void nm_error_cops (void);
57 EXTERN void nm_req_imsi (UBYTE *imsi_id);
58 EXTERN T_MFW nm_reg_flag_req (void);
59 EXTERN void nm_ok_deregistration (void);
60 EXTERN void nm_ok_pref_plmn (void);
61 EXTERN void nm_error_pref_plmn (void);
62 EXTERN void nm_sat_file_update (USHORT dataId);
63 EXTERN void nm_ok_band (void); /*SPR919 - SH - added */
64
65 #endif
66