FreeCalypso > hg > tcs211-l1-reconst
annotate chipsetsw/layer1/p_cfile/l1p_afun.c @ 304:e3db5c73c86d
l1p_cmpl.c: l1p_cmpl.obj reconstruction complete, perfect match to 20070608 obj
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 02 Oct 2017 07:53:14 +0000 |
parents | 3333f7aacb63 |
children |
rev | line source |
---|---|
291
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
1 /************* Revision Controle System Header ************* |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
2 * GSM Layer 1 software |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
3 * L1P_AFUN.C |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
4 * |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
5 * Filename l1p_afun.c |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
6 * Copyright 2003 (C) Texas Instruments |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
7 * |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
8 ************* Revision Controle System Header *************/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
9 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
10 #define L1P_AFUN_C |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
11 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
12 #include "l1_macro.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
13 #include "l1_confg.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
14 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
15 #if L1_GPRS |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
16 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
17 #if (CODE_VERSION == SIMULATION) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
18 #include <string.h> |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
19 #include "l1_types.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
20 #include "sys_types.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
21 #include "l1_const.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
22 #if TESTMODE |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
23 #include "l1tm_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
24 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
25 #if (AUDIO_TASK == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
26 #include "l1audio_const.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
27 #include "l1audio_cust.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
28 #include "l1audio_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
29 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
30 #if (L1_GTT == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
31 #include "l1gtt_const.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
32 #include "l1gtt_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
33 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
34 #if (L1_MP3 == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
35 #include "l1mp3_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
36 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
37 #if (L1_MIDI == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
38 #include "l1midi_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
39 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
40 #include "l1_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
41 #include "cust_os.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
42 #include "l1_varex.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
43 #include "l1p_cons.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
44 #include "l1p_msgt.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
45 #include "l1p_deft.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
46 #include "l1p_vare.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
47 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
48 #include "l1_msgty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
49 #include "l1_proto.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
50 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
51 #else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
52 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
53 #include <string.h> |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
54 #include "l1_types.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
55 #include "sys_types.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
56 #include "l1_const.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
57 #if TESTMODE |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
58 #include "l1tm_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
59 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
60 #if (AUDIO_TASK == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
61 #include "l1audio_const.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
62 #include "l1audio_cust.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
63 #include "l1audio_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
64 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
65 #if (L1_GTT == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
66 #include "l1gtt_const.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
67 #include "l1gtt_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
68 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
69 #if (L1_MP3 == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
70 #include "l1mp3_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
71 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
72 #if (L1_MIDI == 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
73 #include "l1midi_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
74 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
75 #include "l1_defty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
76 #include "cust_os.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
77 #include "l1_varex.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
78 #include "l1p_cons.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
79 #include "l1p_msgt.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
80 #include "l1p_deft.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
81 #include "l1p_vare.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
82 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
83 #include "l1_msgty.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
84 #include "l1_proto.h" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
85 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
86 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
87 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
88 // Internal prototypes |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
89 T_TRANSFER_SET *l1pa_get_free_transfer_set (UWORD8 new_tbf); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
90 int l1pa_sort (const void *a, const void *b); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
91 void l1pa_reset_cr_freq_list (); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
92 T_CRES_LIST_PARAM *l1pa_get_free_cres_list_set(); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
93 void l1pa_send_int_meas_report (UWORD32 SignalCode, |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
94 T_L1P_ITMEAS_IND *last_l1s_msg, |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
95 T_L1A_INT_MEAS_PARAM *first_meas_ptr); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
96 void l1pa_send_confirmation (UWORD32 SignalCode, UWORD8 id); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
97 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
98 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
99 /* l1pa_get_free_transfer_set() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
100 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
101 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
102 /* Description: */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
103 /* ------------ */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
104 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
105 /* Modified parameters from globals: */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
106 /* --------------------------------- */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
107 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
108 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
109 T_TRANSFER_SET *l1pa_get_free_transfer_set(UWORD8 new_tbf) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
110 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
111 T_TRANSFER_SET *transfer_set; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
112 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
113 #define clear_and_new(i, tbf) \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
114 switch(tbf) \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
115 { \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
116 case UL_TBF: \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
117 l1pa_l1ps_com.transfer.fset[i]->allocated_tbf = DL_TBF; \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
118 break; \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
119 \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
120 case DL_TBF: \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
121 l1pa_l1ps_com.transfer.fset[i]->allocated_tbf = UL_TBF; \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
122 break; \ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
123 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
124 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
125 // If new_tbf is to replace an existing one, we must return |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
126 // the considered free set. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
127 if(new_tbf == BOTH_TBF) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
128 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
129 if(l1pa_l1ps_com.transfer.fset[0]->allocated_tbf == NO_TBF) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
130 transfer_set = l1pa_l1ps_com.transfer.fset[1]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
131 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
132 transfer_set = l1pa_l1ps_com.transfer.fset[0]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
133 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
134 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
135 if(l1pa_l1ps_com.transfer.fset[0]->allocated_tbf == new_tbf) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
136 transfer_set = l1pa_l1ps_com.transfer.fset[0]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
137 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
138 if(l1pa_l1ps_com.transfer.fset[1]->allocated_tbf == new_tbf) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
139 transfer_set = l1pa_l1ps_com.transfer.fset[1]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
140 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
141 if(l1pa_l1ps_com.transfer.fset[0]->allocated_tbf == BOTH_TBF) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
142 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
143 clear_and_new(0, new_tbf); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
144 transfer_set = l1pa_l1ps_com.transfer.fset[1]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
145 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
146 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
147 if(l1pa_l1ps_com.transfer.fset[1]->allocated_tbf == BOTH_TBF) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
148 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
149 clear_and_new(1, new_tbf); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
150 transfer_set = l1pa_l1ps_com.transfer.fset[0]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
151 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
152 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
153 if(l1pa_l1ps_com.transfer.fset[0]->allocated_tbf == NO_TBF) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
154 transfer_set = l1pa_l1ps_com.transfer.fset[0]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
155 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
156 transfer_set = l1pa_l1ps_com.transfer.fset[1]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
157 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
158 transfer_set->SignalCode = NULL; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
159 transfer_set->dl_tbf_synchro_timeslot = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
160 transfer_set->ul_tbf_synchro_timeslot = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
161 transfer_set->transfer_synchro_timeslot = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
162 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
163 // No init of "allocated_tbf" |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
164 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
165 transfer_set->assignment_command = NO_TBF; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
166 transfer_set->multislot_class = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
167 transfer_set->packet_ta.ta = 255; // Not present |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
168 transfer_set->packet_ta.ta_index = 255; // Not present |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
169 transfer_set->packet_ta.ta_tn = 255; // Not present |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
170 transfer_set->tsc = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
171 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
172 transfer_set->freq_param.chan_sel.h = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
173 transfer_set->freq_param.chan_sel.rf_channel.single_rf.radio_freq = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
174 transfer_set->freq_param.chan_sel.rf_channel.hopping_rf.maio = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
175 transfer_set->freq_param.chan_sel.rf_channel.hopping_rf.hsn = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
176 transfer_set->freq_param.freq_list.rf_chan_cnt = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
177 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
178 transfer_set->tbf_sti.present = FALSE; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
179 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
180 transfer_set->dl_pwr_ctl.p0 = 255; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
181 transfer_set->dl_pwr_ctl.bts_pwr_ctl_mode = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
182 transfer_set->dl_pwr_ctl.pr_mode = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
183 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
184 transfer_set->ts_override = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
185 transfer_set->pc_meas_chan = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
186 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
187 // No init of "ul_tbf_alloc" and "ul_tbf_alloc", mac_mode is enought |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
188 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
189 return(transfer_set); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
190 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
191 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
192 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
193 /* l1pa_sort() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
194 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
195 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
196 /* Description: */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
197 /* ------------ */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
198 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
199 /* Modified parameters from globals: */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
200 /* --------------------------------- */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
201 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
202 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
203 int l1pa_sort(const void *a, const void *b) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
204 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
205 UWORD8 entry1, entry2; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
206 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
207 entry1 = *((UWORD8*) a); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
208 entry2 = *((UWORD8*) b); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
209 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
210 if (entry1 < entry2 ) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
211 return(-1); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
212 else if (entry1 == entry2) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
213 return(0); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
214 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
215 return(1); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
216 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
217 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
218 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
219 /* l1pa_reset_cr_freq_list() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
220 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
221 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
222 /* Description: */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
223 /* ------------ */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
224 /* This function resets parameters used in Frequency */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
225 /* list task */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
226 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
227 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
228 void l1pa_reset_cr_freq_list() |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
229 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
230 UWORD8 i; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
231 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
232 for(i=0; i<NB_MEAS_MAX_GPRS; i++) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
233 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
234 l1pa_l1ps_com.cr_freq_list.used_il_lna [i].il = l1_config.params.il_min; // IL used in CTRL phase for AGC setting. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
235 l1pa_l1ps_com.cr_freq_list.used_il_lna_d [i].il = l1_config.params.il_min; // ... 1 frame delay. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
236 l1pa_l1ps_com.cr_freq_list.used_il_lna_dd[i].il = l1_config.params.il_min; // ... 2 frames delay, used in READ phase. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
237 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
238 l1pa_l1ps_com.cr_freq_list.used_il_lna [i].lna = FALSE; // LNA used in CTRL phase for AGC setting. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
239 l1pa_l1ps_com.cr_freq_list.used_il_lna_d [i].lna = FALSE; // ... 1 frame delay. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
240 l1pa_l1ps_com.cr_freq_list.used_il_lna_dd[i].lna = FALSE; // ... 2 frames delay, used in READ phase. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
241 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
242 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
243 // Initialize next power measurement control. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
244 l1pa_l1ps_com.cr_freq_list.next_to_ctrl = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
245 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
246 // Initialize next power measurement result. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
247 l1pa_l1ps_com.cr_freq_list.next_to_read = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
248 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
249 // Reset PPCH burst ctrl indication |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
250 l1pa_l1ps_com.cr_freq_list.pnp_ctrl = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
251 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
252 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
253 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
254 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
255 /* l1pa_get_free_cres_list_set() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
256 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
257 /* Parameters : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
258 /* Return : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
259 /* Functionality : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
260 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
261 T_CRES_LIST_PARAM *l1pa_get_free_cres_list_set() |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
262 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
263 T_CRES_LIST_PARAM *flist; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
264 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
265 // Get free set pointer. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
266 if(l1pa_l1ps_com.cres_freq_list.alist == &(l1pa_l1ps_com.cres_freq_list.list[0])) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
267 flist = &(l1pa_l1ps_com.cres_freq_list.list[1]); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
268 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
269 flist = &(l1pa_l1ps_com.cres_freq_list.list[0]); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
270 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
271 // Clear free set. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
272 flist->nb_carrier = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
273 flist->list_id = 0; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
274 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
275 // Reset fifo used in AGC algo => NEED MORE INVESTIGATION. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
276 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
277 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
278 return(flist); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
279 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
280 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
281 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
282 /* l1pa_send_int_meas_report() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
283 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
284 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
285 /* Description: */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
286 /* ------------ */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
287 /* This function builds and sends the Interf. Meas. */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
288 /* report to L3 */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
289 /* */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
290 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
291 void l1pa_send_int_meas_report(UWORD32 SignalCode, |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
292 T_L1P_ITMEAS_IND *last_l1s_msg, |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
293 T_L1A_INT_MEAS_PARAM *first_meas_ptr) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
294 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
295 xSignalHeaderRec *msg; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
296 UWORD8 i,j,k; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
297 UWORD8 bit_mask = 0x80; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
298 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
299 // Allocate report msg and fill signal code. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
300 msg = os_alloc_sig(sizeof(T_MPHP_INT_MEAS_IND)); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
301 DEBUGMSG(status,NU_ALLOC_ERR) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
302 msg->SignalCode = SignalCode; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
303 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
304 // Save measurement results |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
305 //------------------------- |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
306 for(i = 0, j = 0, k = 0; i < 8; i++, bit_mask >>= 1) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
307 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
308 // Fill 1st measurement report |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
309 //---------------------------- |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
310 // If a measurement was done on timeslot i |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
311 if(first_meas_ptr->meas_bitmap & bit_mask) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
312 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
313 // The result is stored in the msg. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
314 ((T_MPHP_INT_MEAS_IND *) (msg->SigP))->int_meas[i].rxlev[0] = first_meas_ptr->rxlev[j]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
315 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
316 // Next measurement value |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
317 j++; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
318 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
319 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
320 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
321 // No measurement processed on timeslot i (0x80 value) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
322 ((T_MPHP_INT_MEAS_IND *) (msg->SigP))->int_meas[i].rxlev[0] = (WORD8)NO_MEAS; //omaps00090550 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
323 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
324 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
325 // Fill 2nd measurement report |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
326 //---------------------------- |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
327 // If a measurement was done on timeslot i |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
328 if(last_l1s_msg->meas_bitmap & bit_mask) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
329 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
330 // The result is stored in the msg. |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
331 ((T_MPHP_INT_MEAS_IND *) (msg->SigP))->int_meas[i].rxlev[1] = last_l1s_msg->rxlev[k]; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
332 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
333 // Next measurement value |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
334 k++; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
335 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
336 else |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
337 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
338 // No measurement processed on timeslot i (0x80 value) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
339 ((T_MPHP_INT_MEAS_IND *) (msg->SigP))->int_meas[i].rxlev[1] = (WORD8)NO_MEAS; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
340 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
341 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
342 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
343 // Set ID in the report message |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
344 ((T_MPHP_INT_MEAS_IND *) (msg->SigP))->id = first_meas_ptr->id; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
345 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
346 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
347 l1_trace_message(msg); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
348 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
349 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
350 os_send_sig(msg, GRRM1_QUEUE); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
351 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
352 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
353 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
354 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
355 /* l1pa_send_confirmation() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
356 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
357 /* Parameters : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
358 /* Return : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
359 /* Functionality : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
360 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
361 void l1pa_send_confirmation(UWORD32 SignalCode, UWORD8 id) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
362 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
363 xSignalHeaderRec *msg_con; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
364 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
365 msg_con = os_alloc_sig(sizeof(T_MPHP_ASSIGNMENT_CON)); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
366 DEBUGMSG(status,NU_ALLOC_ERR) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
367 msg_con->SignalCode = SignalCode; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
368 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
369 ((T_MPHP_ASSIGNMENT_CON *) msg_con->SigP)->assignment_id = id; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
370 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
371 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
372 l1_trace_message(msg_con); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
373 #endif |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
374 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
375 os_send_sig(msg_con, GRRM1_QUEUE); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
376 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
377 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
378 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
379 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
380 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
381 /* l1pa_send_tbf_release_con() */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
382 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
383 /* Parameters : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
384 /* Return : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
385 /* Functionality : */ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
386 /*-------------------------------------------------------*/ |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
387 void l1pa_send_tbf_release_con(UWORD32 SignalCode, UWORD8 tbf_type) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
388 { |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
389 xSignalHeaderRec *conf_msg; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
390 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
391 // Send the confirmation message with the TBF type to L3 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
392 // Allocate confirmation message... |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
393 conf_msg = os_alloc_sig( sizeof(T_MPHP_TBF_RELEASE_CON)); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
394 DEBUGMSG(status,NU_ALLOC_ERR); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
395 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
396 //Fill the message |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
397 conf_msg->SignalCode = SignalCode; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
398 ((T_MPHP_TBF_RELEASE_CON *)(conf_msg->SigP))->tbf_type = tbf_type; |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
399 |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
400 // Send the confirmation message... |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
401 os_send_sig(conf_msg, GRRM1_QUEUE); |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
402 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
403 } |
3333f7aacb63
l1p_afun.c: source from LoCosto is a perfect match
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
404 #endif //L1_GPRS |