annotate g23m/condat/ms/src/aci/aci_aci.c @ 10:4a87497c80af

aci_aci.c converted to UNIX line endings in prep for a patch
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 19:12:01 +0000
parents 509db1a7b7b8
children 98f5312a7d0b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
1 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
2 +-----------------------------------------------------------------------------
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
3 | Project : GSM-F&D (8411)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
4 | Modul : ACI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
5 +-----------------------------------------------------------------------------
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
6 | Copyright 2002 Texas Instruments Berlin, AG
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
7 | All rights reserved.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
8 |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
9 | This file is confidential and a trade secret of Texas
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
10 | Instruments Berlin, AG
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
11 | The receipt of or possession of this file does not convey
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
12 | any rights to reproduce or disclose its contents or to
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
13 | manufacture, use, or sell anything it may describe, in
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
14 | whole, or in part, without the specific written consent of
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
15 | Texas Instruments Berlin, AG.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
16 +-----------------------------------------------------------------------------
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
17 | Purpose : This Modul holds the main functions
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
18 | for the AT Command Interpreter
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
19 +-----------------------------------------------------------------------------
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
20 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
21
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
22 #ifndef ACI_ACI_C
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
23 #define ACI_ACI_C
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
24
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
25 #include "aci_all.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
26
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
27 #include "aci_cmh.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
28 #ifdef _SIMULATION_
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
29 #include "dti.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
30 #include "dti_conn_mng.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
31
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
32 #ifdef UART
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
33 #include "psa_uart.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
34 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
35
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
36 #ifdef FF_PSI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
37 #include "psa_psi.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
38 #endif /*FF_PSI*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
39 #include "ati_src_tst.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
40 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
41
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
42 #ifdef FAX_AND_DATA
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
43 #include "aci_fd.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
44 #endif /* of #ifdef FAX_AND_DATA */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
45
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
46
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
47 #include "psa.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
48 #include "psa_cc.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
49 #include "cmh.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
50 #include "cmh_cc.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
51 #include "aci_lst.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
52 #include "ati_cmd.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
53 #include "ati_ext_mech.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
54
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
55 #ifdef FF_ATI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
56 #include "aci_io.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
57 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
58
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
59 #ifdef FAX_AND_DATA
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
60 #include "psa_ra.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
61 #include "cmh_ra.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
62 #endif /* of #ifdef FAX_AND_DATA */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
63
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
64 #ifdef BT_ADAPTER
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
65 #include "dti.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
66
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
67 #include "bti.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
68 #include "bti_int.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
69 #include "bti_aci.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
70 #include "ati_src_bt.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
71 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
72
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
73
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
74 #ifdef FF_ATI_BAT
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
75 #include "p_bat.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
76 #include "aci_bat.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
77 #ifdef _SIMULATION_
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
78 #include "line_edit.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
79 #include "ati_bat.h"
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
80 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
81 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
82
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
83
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
84 /*===== EXPORT =====================================================*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
85 /*===== PRIVATE ====================================================*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
86
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
87 /*===== VARIABLES ==================================================*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
88 T_ACI_CMD_MODE _mode=CMD_MODE_NONE;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
89 UBYTE srcId_cb;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
90 GLOBAL BOOL _g_ati_trc_enabled = FALSE;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
91
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
92 /* 0 (CMD_SRC_LCL) are reserved */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
93 GLOBAL USHORT used_sources = 1;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
94
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
95 /*===== EXTERNALS ==================================================*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
96 EXTERN T_ACI_LIST *ati_src_list;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
97
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
98 /*===== FUNCTIONS ==================================================*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
99
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
100 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
101 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
102 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
103 | STATE : code ROUTINE : aci_aci_cmd_req |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
104 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
105
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
106 PURPOSE : handle ACI command request primitive. It is only a
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
107 signal and must not be freed by PFREE.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
108
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
109 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
110
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
111 GLOBAL void aci_aci_cmd_req (T_ACI_CMD_REQ *cmd)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
112 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
113 TRACE_FUNCTION("aci_aci_cmd_req()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
114
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
115 #ifdef FF_ATI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
116 if ( cmd->cmd_len < MAX_TRC_LEN )
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
117 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
118 cmd->cmd_seq[cmd->cmd_len] = '\0';
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
119 TRACE_EVENT_P1 ("%s", cmd->cmd_seq);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
120 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
121 #ifdef DTI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
122 #ifdef _SIMULATION_
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
123 if (cmd->cmd_src >= CMD_SRC_EXT && cmd->cmd_src <= MAX_TST_SRC)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
124 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
125 #ifdef FF_ATI_BAT
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
126 U8 src_id = tst_src_id[cmd->cmd_src - 1];
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
127 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
128 ati_src_tst_proc_cmd (cmd);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
129 #ifdef FF_ATI_BAT
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
130 if (aci_cmd_src_mode_get(src_id) EQ CMD_MODE_BAT) /* simulation with BAT library */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
131 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
132 T_ATI_SRC_PARAMS *src_params = find_element (ati_src_list, src_id, search_ati_src_id);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
133 T_ACI_DTI_PRC_PSI *src_infos_psi = find_element (psi_src_params, src_id, cmhPSItest_srcId);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
134 while (ledit_ctrl(src_params->src_id,LEDIT_CTRL_MORE_CMDS, NULL) EQ LEDIT_CMPL)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
135 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
136 ati_bat_response_simulation(&(src_infos_psi->res)); /* intermediate response */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
137 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
138 if (src_params->cmd_state NEQ CMD_IDLE)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
139 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
140 if (src_infos_psi->res.response AND (src_params->curAtCmd NEQ AT_CMD_CMGS))
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
141 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
142 ati_bat_response_simulation(&(src_infos_psi->res)); /* final response */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
143 Perform_ati_bat_maint(src_id);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
144 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
145 src_infos_psi->bat_client[src_infos_psi->active_client].curCmd = (T_BAT_ctrl_params)-1;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
146 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
147 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
148 #endif /* FF_ATI_BAT */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
149 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
150 else
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
151 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
152 TRACE_EVENT_P1 ("aci_aci_cmd_req(): [WRN] srcId=%d, but must be 0x01 or 0x02", cmd->cmd_src);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
153 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
154 #endif /* _SIMULATION_ */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
155 #endif /* DTI */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
156 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
157
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
158 PFREE (cmd);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
159
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
160 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
161
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
162 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
163 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
164 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
165 | STATE : code ROUTINE : aci_aci_cmd_req |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
166 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
167
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
168 PURPOSE : handle ACI command request primitive. It is only a
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
169 signal and must not be freed by PFREE.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
170
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
171 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
172 #ifdef BT_ADAPTER
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
173 GLOBAL void aci_aci_cmd_req_bt (T_ACI_CMD_REQ_BT *cmd)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
174 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
175 TRACE_FUNCTION("aci_aci_cmd_req_bt()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
176
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
177 #ifdef FF_ATI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
178 if ( cmd->cmd_len <= 80 )
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
179 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
180 if( !strchr((char *)cmd->cmd_seq,'%'))
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
181 TRACE_EVENT ((char *)cmd->cmd_seq);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
182 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
183
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
184 if (cmd->cmd_src EQ CMD_SRC_EXT)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
185 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
186 ati_src_bt_proc_cmd(cmd);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
187 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
188
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
189 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
190 PFREE(cmd);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
191 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
192 #endif /* BT_ADAPTER */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
193
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
194 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
195 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
196 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
197 | STATE : code ROUTINE : aci_aci_abort_req |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
198 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
199
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
200 PURPOSE : handle aci data mode abort request
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
201
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
202 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
203
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
204 GLOBAL void aci_aci_abort_req (T_ACI_ABORT_REQ *aci_abort_req)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
205 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
206 EXTERN void aciAbort (UBYTE srcId);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
207
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
208 UBYTE srcId;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
209
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
210 TRACE_FUNCTION ("aci_aci_abort_req()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
211
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
212 srcId = aci_abort_req->cmd_src;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
213
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
214 #ifdef DTI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
215 #ifdef _SIMULATION_
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
216 if (srcId >= CMD_SRC_EXT && srcId <= MAX_TST_SRC)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
217 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
218 ati_src_tst_abort(srcId);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
219 return;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
220 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
221 #endif /* _SIMULATION_ */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
222 #endif /* DTI */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
223
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
224 if (aci_abort_req->cause EQ ABT_ABORT_CMD)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
225 aciAbort (srcId);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
226
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
227 #ifdef FAX_AND_DATA
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
228 if (aci_abort_req->cause EQ ABT_ABORT_DATA)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
229 cmhRA_Escape ();
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
230 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
231
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
232 #ifdef BT_ADAPTER
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
233 btiaci_at_abort_res(srcId);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
234 #endif /* BT_ADAPTER */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
235
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
236 PFREE (aci_abort_req);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
237
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
238 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
239
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
240
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
241 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
242 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
243 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
244 | STATE : code ROUTINE : aci_aci_abort_req |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
245 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
246
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
247 PURPOSE : handle aci (data mode) abort request for BT
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
248
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
249 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
250 #ifdef BT_ADAPTER
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
251 GLOBAL void aci_aci_abort_req_bt (T_ACI_ABORT_REQ_BT *aci_abort_req)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
252 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
253 /* EXTERN void aciAbort (UBYTE srcId);*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
254
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
255 UBYTE srcId;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
256
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
257 TRACE_FUNCTION ("aci_aci_abort_req_bt()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
258
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
259 srcId = aci_abort_req->src_id;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
260
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
261 if (aci_abort_req->cause EQ ABT_ABORT_CMD)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
262 aciAbort (srcId);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
263
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
264 #ifdef FAX_AND_DATA
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
265 if (aci_abort_req->cause EQ ABT_ABORT_DATA)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
266 cmhRA_Escape ();
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
267 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
268
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
269 btiaci_at_abort_res(get_port_by_srcID(srcId));
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
270
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
271
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
272 PFREE (aci_abort_req);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
273
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
274 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
275 #endif /* BT_ADAPTER */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
276
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
277 #ifdef FF_ATI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
278
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
279 GLOBAL UBYTE aci_init (T_ATI_SRC_TYPE src_type)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
280 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
281 int i;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
282 UBYTE tst_src;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
283
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
284 TRACE_FUNCTION ("aci_init ()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
285
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
286 #ifdef _SIMULATION_
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
287 if (src_type EQ ATI_SRC_TYPE_TST)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
288 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
289 for (i = (CMD_SRC_MAX-1); i >= 0; i--)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
290 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
291 tst_src = (0x01 << i) & used_sources;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
292 if (!tst_src)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
293 break;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
294 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
295 if (tst_src)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
296 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
297 return (0);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
298 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
299
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
300 used_sources |= (0x01 << i);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
301 return (UBYTE) (i);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
302 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
303 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
304
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
305 for (i = 0; i < CMD_SRC_MAX; i++)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
306 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
307 tst_src = (0x01 << i) & used_sources;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
308 if (!tst_src)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
309 break;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
310 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
311 if (tst_src)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
312 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
313 TRACE_EVENT_P1("No more sources available ! used_sources: %04X", used_sources);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
314 return (0);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
315 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
316 used_sources |= (0x01 << i);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
317
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
318 if (src_type EQ ATI_SRC_TYPE_BLUETOOTH)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
319 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
320 used_sources |= (0x01 << (i + 8));
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
321 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
322
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
323 TRACE_EVENT_P2("New source %d ! used_sources: %04X", i, used_sources);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
324 return (i);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
325 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
326
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
327 #endif /* FF_ATI */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
328
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
329 GLOBAL void aci_finit (UBYTE src_id)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
330 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
331 UBYTE tst_src;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
332
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
333 TRACE_FUNCTION ("aci_finit ()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
334
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
335 tst_src = 0x01 << src_id;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
336 if (!(used_sources & tst_src))
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
337 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
338 TRACE_EVENT ("[ERR] aci_finit(): invalid source");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
339 return;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
340 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
341 used_sources = used_sources & ~tst_src;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
342
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
343 /* for BT */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
344 tst_src = 0x01 << (src_id + 8);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
345 used_sources = used_sources & ~tst_src;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
346 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
347
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
348
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
349 #ifdef BT_ADAPTER
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
350 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
351 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
352 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
353 | STATE : code ROUTINE : aci_aci_cmd_res |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
354 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
355
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
356 PURPOSE : handle aci_cmd_res
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
357
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
358 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
359
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
360 GLOBAL void aci_aci_cmd_res (T_ACI_CMD_RES *aci_cmd_res)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
361 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
362 TRACE_FUNCTION ("aci_aci_cmd_res()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
363
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
364 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
365 This is currently just ignored !
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
366 Actually ACI_CMD_RES is an acknowledgement for ACI_CMD_IND. It should
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
367 be used to determine if an ACI_CMD_IND may be sent. After sending one
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
368 ACI_CMD_IND should wait for ACI_CMD_RES before another ACI_CMD_IND may
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
369 be sent. This behaviour shall be implemented later.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
370 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
371 PFREE (aci_cmd_res);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
372
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
373 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
374 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
375 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
376 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
377 | STATE : code ROUTINE : aci_aci_cmd_res |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
378 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
379
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
380 PURPOSE : handle aci_cmd_res_bt
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
381
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
382 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
383
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
384 GLOBAL void aci_aci_cmd_res_bt (T_ACI_CMD_RES_BT *aci_cmd_res)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
385 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
386
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
387 ULONG port_nb;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
388 T_ATI_BT_OUTPUT *cur_cmd;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
389
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
390 TRACE_FUNCTION ("aci_aci_cmd_res()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
391
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
392 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
393 This is currently just ignored !
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
394 Actually ACI_CMD_RES is an acknowledgement for ACI_CMD_IND. It should
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
395 be used to determine if an ACI_CMD_IND may be sent. After sending one
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
396 ACI_CMD_IND should wait for ACI_CMD_RES before another ACI_CMD_IND may
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
397 be sent. This behaviour shall be implemented later.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
398 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
399
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
400 port_nb = get_port_by_srcID(aci_cmd_res->src_id);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
401 PFREE (aci_cmd_res);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
402
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
403 if (bti_port_table[port_nb].atqueue EQ NULL)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
404 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
405 bti_port_table[port_nb].at_flow_on = TRUE;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
406 TRACE_EVENT("BTA queue empty");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
407 return;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
408 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
409
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
410 cur_cmd = bti_port_table[port_nb].atqueue;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
411
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
412 if (cur_cmd->output_type & ATI_BT_CONFIRM_COMMAND)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
413 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
414 TRACE_EVENT("BTA confirm in queue");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
415 bti_port_table[port_nb].atqueue = cur_cmd->next;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
416
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
417 btiaci_at_cmd_res(port_nb, (char *)(cur_cmd->output));
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
418 MFREE(cur_cmd);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
419
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
420 if (bti_port_table[port_nb].atqueue EQ NULL)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
421 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
422 TRACE_EVENT("BTA queue empty");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
423 bti_port_table[port_nb].at_flow_on = TRUE;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
424 return;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
425 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
426 else
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
427 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
428 cur_cmd = bti_port_table[port_nb].atqueue;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
429 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
430 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
431
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
432 if ((cur_cmd->output_type & ATI_BT_NORMAL_COMMAND) ||
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
433 (cur_cmd->output_type & ATI_BT_INDICATION_COMMAND))
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
434 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
435 TRACE_EVENT("BTA command in queue");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
436 bti_port_table[port_nb].at_flow_on = FALSE;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
437
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
438 bti_port_table[port_nb].atqueue = cur_cmd->next;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
439
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
440 TRACE_EVENT_P1("sending %s", cur_cmd->output);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
441 btiaci_at_cmd_req(port_nb, (char *)(cur_cmd->output));
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
442 MFREE(cur_cmd);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
443
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
444 #ifdef _SIMULATION_
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
445 cur_cmd = bti_port_table[port_nb].atqueue;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
446 while (cur_cmd->next NEQ NULL) /* search end of queue */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
447 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
448 TRACE_EVENT_P1("in queue: %s", cur_cmd->output); /* just for debugging */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
449 cur_cmd = cur_cmd->next;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
450 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
451 #endif
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
452
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
453 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
454 return;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
455 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
456
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
457 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
458 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
459 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
460 | STATE : code ROUTINE : aci_aci_init_res |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
461 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
462
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
463 PURPOSE : handle aci_init_res
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
464
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
465 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
466
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
467 GLOBAL void aci_aci_init_res (T_ACI_INIT_RES *aci_init_res)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
468 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
469 TRACE_FUNCTION ("aci_aci_init_res()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
470
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
471 PFREE (aci_init_res);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
472 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
473
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
474 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
475 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
476 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
477 | STATE : code ROUTINE : aci_aci_deinit_req |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
478 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
479
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
480 PURPOSE : handle aci_deinit_req
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
481
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
482 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
483
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
484 GLOBAL void aci_aci_deinit_req (T_ACI_DEINIT_REQ *aci_deinit_req)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
485 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
486 TRACE_FUNCTION ("aci_aci_deinit_req()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
487
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
488 io_closePort(0);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
489
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
490 btiaci_at_deinit_res();
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
491
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
492 PFREE (aci_deinit_req);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
493 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
494
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
495 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
496 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
497 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
498 | STATE : code ROUTINE : aci_aci_open_port_req|
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
499 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
500
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
501 PURPOSE : handle aci_open_port_req
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
502
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
503 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
504
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
505 GLOBAL void aci_aci_open_port_req (T_ACI_OPEN_PORT_REQ *aci_open_port_req)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
506 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
507 ULONG port;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
508 T_BTI_ACK result;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
509
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
510 TRACE_FUNCTION ("aci_aci_open_port_req()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
511
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
512 port = aci_open_port_req->port_nb;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
513
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
514 result = io_openPort(port);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
515
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
516 PFREE (aci_open_port_req);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
517
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
518 btiaci_at_open_port_res(port, result);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
519 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
520
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
521 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
522 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
523 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
524 | STATE : code ROUTINE : aci_aci_close_port_req|
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
525 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
526
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
527 PURPOSE : handle aci_close_port_req
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
528
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
529 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
530
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
531 GLOBAL void aci_aci_close_port_req (T_ACI_CLOSE_PORT_REQ *aci_close_port_req)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
532 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
533 ULONG port;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
534
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
535 TRACE_FUNCTION ("aci_aci_close_port_req()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
536
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
537 port = aci_close_port_req->port_nb;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
538
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
539 io_closePort(port);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
540
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
541 PFREE (aci_close_port_req);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
542
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
543 btiaci_at_close_port_res(port);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
544 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
545
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
546 #endif /* BT_ADAPTER */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
547
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
548 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
549 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
550 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
551 | STATE : code ROUTINE : aci_aci_trc_ind |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
552 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
553
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
554 PURPOSE : This function call is only relevant for the acia_adater. The acia_adapter
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
555 sends for every AT-cmd a psignal to aci (task switch).
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
556
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
557 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
558 #ifdef FF_MMI_RIV
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
559
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
560 EXTERN void acia_callback_for_ACI (void *AT_command_ptr);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
561
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
562 GLOBAL void aci_aci_riv_cmd_req (T_ACI_RIV_CMD_REQ *cmd_ptr)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
563 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
564 TRACE_FUNCTION ("aci_aci_riv_cmd_req()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
565
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
566 acia_callback_for_ACI ((void *)cmd_ptr);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
567 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
568 #endif /* FF_MMI_RIV */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
569
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
570 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
571 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
572 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
573 | STATE : code ROUTINE : aci_aci_trc_ind |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
574 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
575
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
576 PURPOSE : handle ACI trace indication primitive.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
577
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
578 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
579
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
580 GLOBAL void aci_aci_trc_ind (T_ACI_TRC_IND *trc_ind)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
581 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
582 T_ATI_SRC_PARAMS *src_params;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
583
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
584 TRACE_FUNCTION("aci_aci_trc_ind()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
585
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
586 if (!_g_ati_trc_enabled)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
587 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
588 PFREE (trc_ind);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
589 return;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
590 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
591
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
592 trc_ind->trc_buf[MAX_TRC_LEN-1] = '\0';
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
593
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
594 #ifdef FF_ATI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
595 if ( trc_ind->trc_len >= MAX_TRC_LEN )
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
596 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
597 UBYTE c;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
598 c = trc_ind->trc_buf[MAX_TRC_LEN-1];
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
599 trc_ind->trc_buf[MAX_TRC_LEN-1] = '\0';
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
600 TRACE_EVENT_P1 ("%s", trc_ind->trc_buf);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
601 trc_ind->trc_buf[MAX_TRC_LEN-1] = c;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
602 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
603 else
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
604 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
605 TRACE_EVENT_P1 ("%s", trc_ind->trc_buf);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
606 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
607 #endif /* FF_ATI */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
608
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
609 /* check if the src is valid */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
610 src_params = find_element (ati_src_list, trc_ind->cmd_src, search_ati_src_id);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
611 #ifdef FF_PSI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
612 if ((src_params EQ NULL) OR ((src_params->src_type NEQ ATI_SRC_TYPE_UART) AND
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
613 (src_params->src_type NEQ ATI_SRC_TYPE_PSI)))
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
614 #else
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
615 if ((src_params EQ NULL) OR (src_params->src_type NEQ ATI_SRC_TYPE_UART))
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
616 #endif /*FF_PSI*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
617 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
618 src_params = get_next_element (ati_src_list, NULL);/* first element */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
619 while (src_params NEQ NULL)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
620 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
621 #ifdef FF_PSI
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
622 if (src_params->src_type EQ ATI_SRC_TYPE_UART OR src_params->src_type EQ ATI_SRC_TYPE_PSI)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
623 #else
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
624 if (src_params->src_type EQ ATI_SRC_TYPE_UART)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
625 #endif /*FF_PSI*/
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
626 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
627 break;
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
628 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
629 src_params = get_next_element (ati_src_list, src_params);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
630 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
631 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
632
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
633 if (src_params NEQ NULL)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
634 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
635 io_sendIndication(src_params->src_id, (CHAR *)trc_ind->trc_buf, ATI_FORCED_OUTPUT);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
636 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
637
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
638 PFREE (trc_ind);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
639 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
640
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
641
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
642 /*
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
643 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
644 | PROJECT : GSM-F&D (8411) MODULE : ACI |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
645 | STATE : code ROUTINE : aci_aci_ext_ind |
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
646 +--------------------------------------------------------------------+
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
647
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
648 PURPOSE : handle ACI extension signal indication primitive.
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
649
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
650 */
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
651
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
652 GLOBAL void aci_aci_ext_ind (T_ACI_EXT_IND *aci_ext_ind)
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
653 {
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
654 TRACE_FUNCTION ("aci_aci_ext_ind()");
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
655 rEXT_Signal (aci_ext_ind);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
656 PFREE (aci_ext_ind);
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
657 }
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
658
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
659
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
660
4a87497c80af aci_aci.c converted to UNIX line endings in prep for a patch
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 0
diff changeset
661 #endif /* ACI_ACI_C */