comparison ccd/ccddata_eg.c @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul : ccddata_eg.c
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : This module handles the entity graph functionality in ccddata.
18 +-----------------------------------------------------------------------------
19 */
20
21 #define CCDDATA_EG_C
22
23 /*==== INCLUDES ==============================================================*/
24 #include "typedefs.h"
25 #include "ccdtable.h"
26 #include "ccddata.h"
27 /*==== CONSTS ================================================================*/
28 #define MAXNODE 29
29 #define MAXSAPS 157
30 #define MAXCOMPAIRS 5
31
32 #define ENAME(e_index) #e_index
33
34 #define MMI 0
35 #define SIM 1
36 #define SMS 2
37 #define CC 3
38 #define SM 4
39 #define SS 5
40 #define MM 6
41 #define GMM 7
42 #define RR 8
43 #define GRR 9
44 #define DL 10
45 #define PL 11
46 #define L2R 12
47 #define T30 13
48 #define RLP 14
49 #define FAD 15
50 #define LLC 16
51 #define SND 17
52 #define PPP 18
53 #define UART 19
54 #define PKT 20
55 #define LC 21
56 #define RRLP 22
57 #define WAP 23
58 #define UDP 24
59 #define IP 25
60 #define L1 26
61 #define GRLC 27
62 #define UPM 28
63 /*==== TYPES =================================================================*/
64 /*==== LOCALS ================================================================*/
65 static char* sapnames[MAXSAPS] =
66 {
67 /* 0 */ "MPHC",
68 /* 1 */ "PH",
69 /* 2 */ "MPHP",
70 /* 3 */ "DL",
71 /* 4 */ "MDL",
72 /* 5 */ "SIM",
73 /* 6 */ "RR",
74 /* 7 */ "MMCC",
75 /* 8 */ "MMSS",
76 /* 9 */ "MMSMS",
77 /* 10 */ "MMREG",
78 /* 11 */ "MNCC",
79 /* 12 */ "MNSS",
80 /* 13 */ "MNSMS",
81 /* 14 */ "MMI",
82 /* 15 */ "MON",
83 /* 16 */ "RA",
84 /* 17 */ "RLP",
85 /* 18 */ "L2R",
86 /* 19 */ "FAD",
87 /* 20 */ "T30",
88 /* 21 */ "ACI",
89 /* 22 */ "CST",
90 /* 23 */ "MPH",
91 /* 24 */ "TB",
92 /* 25 */ "TRA",
93 /* 26 */ "DMI",
94 /* 27 */ "IDA",
95 /* 28 */ "DCM",
96 /* 29 */ "unused",
97 /* 30 */ "FRM",
98 /* 31 */ "GMMRR",
99 /* 32 */ "GRR",
100 /* 33 */ "LLGMM",
101 /* 34 */ "LL",
102 /* 35 */ "GMMSMS",
103 /* 36 */ "GMMSM",
104 /* 37 */ "unused",
105 /* 38 */ "SMREG",
106 /* 39 */ "SNSM",
107 /* 40 */ "SN",
108 /* 41 */ "GSIM, to be removed",
109 /* 42 */ "unused",
110 /* 43 */ "unused",
111 /* 44 */ "unused",
112 /* 45 */ "RRGRR",
113 /* 46 */ "MMGMM",
114 /* 47 */ "unused",
115 /* 48 */ "unused",
116 /* 49 */ "unused",
117 /* 50 */ "MAC",
118 /* 51 */ "GMMREG",
119 /* 52 */ "UART",
120 /* 53 */ "PPP",
121 /* 54 */ "CCI",
122 /* 55 */ "DTI",
123 /* 56 */ "PPC",
124 /* 57 */ /* ??? "TOM/IP" */ "IP",
125 /* 58 */ "BTP",
126 /* 59 */ "UDPA",
127 /* 60 */ "IPA",
128 /* 61 */ "WAP",
129 /* 62 */ "EM",
130 /* 63 */ "EXTDSPL/GTI",
131 /* 64 */ "RRLC",
132 /* 65 */ "RRRRLP",
133 /* 66 */ "RRLP",
134 /* 67 */ "CSRLC",
135 /* 68 */ "MNLC",
136 /* 69 */ /* "PKTIO", */ "PKT",
137 /* 70 */ "UDP",
138 /* 71 */ "AAA",
139 /* 72 */ "TCPIP",
140 /* 73 */ "unused",
141 /* 74 */ "unused",
142 /* 75 */ "unused",
143 /* 76 */ "unused",
144 /* 77 */ "unused",
145 /* 78 */ "unused",
146 /* 79 */ "unused",
147 /* 80 */ "customer 6379",
148 /* 81 */ "customer 6379",
149 /* 82 */ "customer 6379",
150 /* 83 */ "customer 6379",
151 /* 84 */ "customer 6379",
152 /* 85 */ "customer 6379",
153 /* 86 */ "customer 6379",
154 /* 87 */ "customer 6379",
155 /* 88 */ "customer 6379",
156 /* 89 */ "customer 6379",
157 /* 90 */ "customer 6379",
158 /* 91 */ "unused",
159 /* 92 */ "unused",
160 /* 93 */ "unused",
161 /* 94 */ "unused",
162 /* 95 */ "unused",
163 /* 96 */ "unused",
164 /* 97 */ "unused",
165 /* 98 */ "unused",
166 /* 99 */ "unused",
167 /* 100 */ "unused",
168 /* 101 */ "unused",
169 /* 102 */ "unused",
170 /* 103 */ "unused",
171 /* 104 */ "unused",
172 /* 105 */ "unused",
173 /* 106 */ "unused",
174 /* 107 */ "unused",
175 /* 108 */ "unused",
176 /* 109 */ "unused",
177 /* 110 */ "unused",
178 /* 111 */ "unused",
179 /* 112 */ "unused",
180 /* 113 */ "unused",
181 /* 114 */ "unused",
182 /* 115 */ "unused",
183 /* 116 */ "unused",
184 /* 117 */ "unused",
185 /* 118 */ "unused",
186 /* 119 */ "unused",
187 /* 120 */ "unused",
188 /* 121 */ "unused",
189 /* 122 */ "unused",
190 /* 123 */ "unused",
191 /* 124 */ "unused",
192 /* 125 */ "unused",
193 /* 126 */ "unused",
194 /* 127 */ "unused",
195 /* 128 */ "CPHY",
196 /* 129 */ "PHY",
197 /* 130 */ "CUMAC",
198 /* 131 */ "UMAC",
199 /* 132 */ "CRLC",
200 /* 133 */ "RLC",
201 /* 134 */ "CBM",
202 /* 135 */ "HC",
203 /* 136 */ "CPDCP",
204 /* 137 */ "PDCP",
205 /* 138 */ "RRC",
206 /* 139 */ "MEM",
207 /* 140 */ "RRRRC",
208 /* 141 */ "GRRRRC",
209 /* 142 */ "RCM",
210 /* 143 */ "GMMRABM",
211 /* 144 */ "SM",
212 /* 145 */ "PMMSMS",
213 /* 146 */ "PHYSTUB",
214 /* 147 */ "PHYTEST",
215 /* 148 */ "MMREG",
216 /* 149 */ "MMCM",
217 /* 150 */ "MMPM",
218 /* 151 */ "GRLC",
219 /* 152 */ "CGRLC",
220 /* 153 */ "EINFO",
221 /* 154 */ "SL2",
222 /* 155 */ "L1TEST",
223 /* 156 */ "CL"
224 };
225
226 static T_COMENDPOINTS com_endpoints[MAXSAPS][MAXCOMPAIRS] =
227 {
228 /* 0 (MPHC) */ { {PL, L1}, {RR, L1}, {-1, -1} },
229 /* 1 (PH) */ { {DL, L1}, {-1, -1} },
230 /* 2 (MPHP) */ { {GRR, L1}, {RR, L1}, {-1, -1} },
231 /* 3 (DL) */ { {RR, DL}, {-1, -1} },
232 /* 4 (MDL) */ { {MM, DL}, {-1, -1} },
233 /* 5 (SIM) */ { {MMI, SIM}, {MM, SIM}, {GMM, SIM}, {SMS, SIM}, {-1, -1} },
234 /* 6 (RR) */ { {MM, RR}, {-1, -1} },
235 /* 7 (MMCC) */ { {CC, MM}, {-1, -1} },
236 /* 8 (MMSS) */ { {SS, MM}, {-1, -1} },
237 /* 9 (MMSMS) */ { {SMS, MM}, {-1, -1} },
238 /* 10 (MMREG) */ { {MMI, MM}, {-1, -1} },
239 /* 11 (MNCC) */ { {MMI, CC}, {-1, -1} },
240 /* 12 (MNSS) */ { {MMI, SS}, {-1, -1} },
241 /* 13 (MNSMS) */ { {MMI, SMS}, {-1, -1} },
242 /* 14 (MMI) */ { /* {???, ???}, */ {-1, -1} },
243 /* 15 (MON) */ { /* {???, ???}, */ {-1, -1} },
244 /* 16 (RA) */ { {RLP, L1}, {FAD, L1}, {-1, -1} },
245 /* 17 (RLP) */ { {L2R, RLP}, {-1, -1} },
246 /* 18 (L2R) */ { {MMI, L2R}, {-1, -1} },
247 /* 19 (FAD) */ { {T30, FAD}, {-1, -1} },
248 /* 20 (T30) */ { {MMI, T30}, {-1, -1} },
249 /* 21 (ACI) */ { /* {???, ???}, */ {-1, -1} },
250 /* 22 (CST) */ { /* {???, ???}, */ {-1, -1} },
251 /* 23 (MPH) */ { {RR, PL}, {-1, -1} },
252 /* 24 (TB) */ { {GRR, PL}, {-1, -1} },
253 /* 25 (TRA) */ { /* {???, ???}, */ {-1, -1} },
254 /* 26 (DMI) */ { /* {???, ???}, */ {-1, -1} },
255 /* 27 (IDA) */ { /* {???, ???}, */ {-1, -1} },
256 /* 28 (DCM) */ { /* {???, ???}, */ {-1, -1} },
257 /* 29 (unused) */ { {-1, -1} },
258 /* 30 (FRM) */ { /* {???, ???}, */ {-1, -1} },
259 /* 31 (GMMRR) */ { {GMM, GRR}, {-1, -1} },
260 /* 32 (GRR) */ { {LLC, GRR}, {-1, -1} },
261 /* 33 (LLGMM) */ { {GMM, LLC}, {MM, LLC}, {-1, -1} },
262 /* 34 (LL) */ { {GMM, LLC}, {SMS, LLC}, {SND, LLC}, {MM, LLC}, {-1, -1} },
263 /* 35 (GMMSMS) */ { {SMS, GMM}, {-1, -1} },
264 /* 36 (GMMSM) */ { {SM, GMM}, {-1, -1} },
265 /* 37 (unused) */ { {-1, -1} },
266 /* 38 (SMREG) */ { {MMI, SM}, {-1, -1} },
267 /* 39 (SNSM) */ { {SND, SM}, {-1, -1} },
268 /* 40 (SN) */ { {MMI, SND}, {-1, -1} },
269 /* 41 (GSIM, to be removed) */ { /* {???, ???}, */ {-1, -1} },
270 /* 42 (unused) */ { {-1, -1} },
271 /* 43 (unused) */ { {-1, -1} },
272 /* 44 (unused) */ { {-1, -1} },
273 /* 45 (RRGRR) */ { {RR, GRR}, {-1, -1} },
274 /* 46 (MMGMM) */ { {MM, GMM}, {-1, -1} },
275 /* 47 (unused) */ { {-1, -1} },
276 /* 48 (unused) */ { {-1, -1} },
277 /* 49 (unused) */ { {-1, -1} },
278 /* 50 (MAC) */ { /* {???, ???}, */ {-1, -1} },
279 /* 51 (GMMREG) */ { {MMI, GMM}, {-1, -1} },
280 /* 52 (UART) */ { {MMI, UART}, {-1, -1} },
281 /* 53 (PPP) */ { {MMI, PPP}, {-1, -1} },
282 /* 54 (CCI) */ { /* {???, ???}, */ {-1, -1} },
283 /* 55 (DTI) */ { /* {???, ???}, */ {-1, -1} },
284 /* 56 (PPC) */ { /* {???, ???}, */ {-1, -1} },
285 /* 57 (TOM/IP) */ { {UDP, IP}, {-1, -1} },
286 /* 58 (BTP) */ { /* {???, ???}, */ {-1, -1} },
287 /* 59 (UDPA) */ { {MMI, UDP}, {-1, -1} },
288 /* 60 (IPA) */ { {MMI, IP}, {-1, -1} },
289 /* 61 (WAP) */ { {MMI, WAP}, {-1, -1} },
290 /* 62 (EM) */ { /* {???, ???}, */ {-1, -1} },
291 /* 63 (EXTDSPL/GTI) */ { /* {???, ???}, */ {-1, -1} },
292 /* 64 (RRLC) */ { {LC, RR}, {-1, -1} },
293 /* 65 (RRRRLP) */ { {RRLP, RR}, {-1, -1} },
294 /* 66 (RRLP) */ { /* {???, ???}, */ {-1, -1} },
295 /* 67 (CSRLC) */ { /* {???, ???}, */ {-1, -1} },
296 /* 68 (MNLC) */ { {MM, LC}, {-1, -1} },
297 /* 69 (PKTIO) */ { {MMI, PKT}, {-1, -1} },
298 /* 70 (UDP) */ { {WAP, UDP}, {SIM, UDP}, {-1, -1} },
299 /* 71 (AAA) */ { /* {???, ???}, */ {-1, -1} },
300 /* 72 (TCPIP) */ { /* {???, ???}, */ {-1, -1} },
301 /* 73 (unused) */ { {-1, -1} },
302 /* 74 (unused) */ { {-1, -1} },
303 /* 75 (unused) */ { {-1, -1} },
304 /* 76 (unused) */ { {-1, -1} },
305 /* 77 (unused) */ { {-1, -1} },
306 /* 78 (unused) */ { {-1, -1} },
307 /* 79 (unused) */ { {-1, -1} },
308 /* 80 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
309 /* 81 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
310 /* 82 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
311 /* 83 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
312 /* 84 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
313 /* 85 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
314 /* 86 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
315 /* 87 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
316 /* 88 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
317 /* 89 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
318 /* 90 (customer 6379) */ { /* {???, ???}, */ {-1, -1} },
319 /* 91 (unused) */ { {-1, -1} },
320 /* 92 (unused) */ { {-1, -1} },
321 /* 93 (unused) */ { {-1, -1} },
322 /* 94 (unused) */ { {-1, -1} },
323 /* 95 (unused) */ { {-1, -1} },
324 /* 96 (unused) */ { {-1, -1} },
325 /* 97 (unused) */ { {-1, -1} },
326 /* 98 (unused) */ { {-1, -1} },
327 /* 99 (unused) */ { {-1, -1} },
328 /* 100 (unused) */ { {-1, -1} },
329 /* 101 (unused) */ { {-1, -1} },
330 /* 102 (unused) */ { {-1, -1} },
331 /* 103 (unused) */ { {-1, -1} },
332 /* 104 (unused) */ { {-1, -1} },
333 /* 105 (unused) */ { {-1, -1} },
334 /* 106 (unused) */ { {-1, -1} },
335 /* 107 (unused) */ { {-1, -1} },
336 /* 108 (unused) */ { {-1, -1} },
337 /* 109 (unused) */ { {-1, -1} },
338 /* 110 (unused) */ { {-1, -1} },
339 /* 111 (unused) */ { {-1, -1} },
340 /* 112 (unused) */ { {-1, -1} },
341 /* 113 (unused) */ { {-1, -1} },
342 /* 114 (unused) */ { {-1, -1} },
343 /* 115 (unused) */ { {-1, -1} },
344 /* 116 (unused) */ { {-1, -1} },
345 /* 117 (unused) */ { {-1, -1} },
346 /* 118 (unused) */ { {-1, -1} },
347 /* 119 (unused) */ { {-1, -1} },
348 /* 120 (unused) */ { {-1, -1} },
349 /* 121 (unused) */ { {-1, -1} },
350 /* 122 (unused) */ { {-1, -1} },
351 /* 123 (unused) */ { {-1, -1} },
352 /* 124 (unused) */ { {-1, -1} },
353 /* 125 (unused) */ { {-1, -1} },
354 /* 126 (unused) */ { {-1, -1} },
355 /* 127 (unused) */ { {-1, -1} },
356 /* 128 (CPHY) */ { /* {???, ???}, */ {-1, -1} },
357 /* 129 (PHY) */ { /* {???, ???}, */ {-1, -1} },
358 /* 130 (CUMAC) */ { /* {???, ???}, */ {-1, -1} },
359 /* 131 (UMAC) */ { /* {???, ???}, */ {-1, -1} },
360 /* 132 (CRLC) */ { /* {???, ???}, */ {-1, -1} },
361 /* 133 (RLC) */ { /* {???, ???}, */ {-1, -1} },
362 /* 134 (CBM) */ { /* {???, ???}, */ {-1, -1} },
363 /* 135 (HC) */ { /* {???, ???}, */ {-1, -1} },
364 /* 136 (CPDCP) */ { /* {???, ???}, */ {-1, -1} },
365 /* 137 (PDCP) */ { /* {???, ???}, */ {-1, -1} },
366 /* 138 (RRC) */ { /* {???, ???}, */ {-1, -1} },
367 /* 139 (MEM) */ { /* {???, ???}, */ {-1, -1} },
368 /* 140 (RRRRC) */ { /* {???, ???}, */ {-1, -1} },
369 /* 141 (GRRRRC) */ { /* {???, ???}, */ {-1, -1} },
370 /* 142 (RCM) */ { /* {???, ???}, */ {-1, -1} },
371 /* 143 (GMMRABM) */ { /* {???, ???}, */ {-1, -1} },
372 /* 144 (SM) */ { /* {???, ???}, */ {-1, -1} },
373 /* 145 (PMMSMS) */ { /* {???, ???}, */ {-1, -1} },
374 /* 146 (PHYSTUB) */ { /* {???, ???}, */ {-1, -1} },
375 /* 147 (PHYTEST) */ { /* {???, ???}, */ {-1, -1} },
376 /* 148 (MMREG) */ { /* {???, ???}, */ {-1, -1} },
377 /* 149 (MMCM) */ { /* {???, ???}, */ {-1, -1} },
378 /* 150 (MMPM) */ { {MM, SM}, {-1, -1} },
379 /* 151 (GRLC) */ { {LLC, GRLC}, {-1, -1} },
380 /* 152 (CGRLC) */ { {GMM, GRLC}, {GRR, GRLC}, {MM, GRLC}, {RR, GRLC}, {-1, -1}},
381 /* 153 (EINFO) */ { /* {???, ???}, */ {-1, -1} },
382 /* 154 (SL2) */ { /* {???, ???}, */ {-1, -1} },
383 /* 155 (L1TEST) */ { /* {???, ???}, */ {-1, -1} },
384 /* 156 (CL) */ { /* {???, ???}, */ {-1, -1} }
385 };
386
387 static char* node[MAXNODE] =
388 {
389 ENAME(MMI),
390 ENAME(SIM),
391 ENAME(SMS),
392 ENAME(CC),
393 ENAME(SM),
394 ENAME(SS),
395 ENAME(MM),
396 ENAME(GMM),
397 ENAME(RR),
398 ENAME(GRR),
399 ENAME(DL),
400 ENAME(PL),
401 ENAME(L2R),
402 ENAME(T30),
403 ENAME(RLP),
404 ENAME(FAD),
405 ENAME(LLC),
406 ENAME(SND),
407 ENAME(PPP),
408 ENAME(UART),
409 ENAME(PKT),
410 ENAME(LC),
411 ENAME(RRLP),
412 ENAME(WAP),
413 ENAME(UDP),
414 ENAME(IP),
415 ENAME(L1),
416 ENAME(GRLC),
417 ENAME(UPM)
418 };
419
420 /* adjacence matrix. 1 = directly connected, 0 = not
421 here symmtric = undirected graph,
422 could later be changed to a directed graph */
423
424 static char ad[MAXNODE][MAXNODE] =
425 { /* M S S C S S M G R G D P L T R F L S P U P L R W U I L G U
426 M I M C M S M M R R L L 2 3 L A L N P A K C R A D P 1 R P
427 I M S M R R 0 P D C D P R T L P P L M
428 T P C
429 */
430 /* MMI */ 1,1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,1,1,1,1,0,1,
431 /* SIM */ 1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,
432 /* SMS */ 1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,
433 /* CC */ 1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
434 /* SM */ 1,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
435 /* SS */ 1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
436 /* MM */ 1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,
437 /* GMM */ 1,1,1,0,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,
438 /* RR */ 0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,0,
439 /* GRR */ 0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,
440 /* DL */ 0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,
441 /* PL */ 1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,
442 /* L2R */ 1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,
443 /* T30 */ 1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,
444 /* RLP */ 0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,
445 /* FAD */ 0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,
446 /* LLC */ 0,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,
447 /* SND */ 1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0,0,1,
448 /* PPP */ 1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,
449 /* UART */ 1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,
450 /* PKT */ 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,
451 /* LC */ 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,
452 /* RRLP */ 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,
453 /* WAP */ 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,
454 /* UDP */ 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,
455 /* IP */ 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,
456 /* L1 */ 1,0,0,0,0,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,
457 /* GRLC */ 0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,
458 /* UPM */ 1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,
459 };
460
461 /*==== PRIVATE FUNCTIONS =====================================================*/
462 /*==== PUBLIC FUNCTIONS ======================================================*/
463
464 /*
465 +------------------------------------------------------------------------------
466 | Function : ccddata_eg_nodes
467 +------------------------------------------------------------------------------
468 | Description : Returns the number of nodes in the entity graph.
469 |
470 | Parameters : -
471 |
472 | Return : The number of nodes.
473 |
474 +------------------------------------------------------------------------------
475 */
476
477 int ccddata_eg_nodes (void)
478 {
479 return MAXNODE;
480 }
481
482 /*
483 +------------------------------------------------------------------------------
484 | Function : ccddata_eg_nodenames
485 +------------------------------------------------------------------------------
486 | Description : Returns a pointer to the node name table.
487 |
488 | Parameters : -
489 |
490 | Return : The address of the nodename table.
491 |
492 +------------------------------------------------------------------------------
493 */
494 char** ccddata_eg_nodenames (void)
495 {
496 return node;
497 }
498
499 /*
500 +------------------------------------------------------------------------------
501 | Function : ccddata_eg_adjacent
502 +------------------------------------------------------------------------------
503 | Description : Returns a pointer to one row in the adjacence matrix.
504 |
505 | Parameters : idx - line in matrix (0..nodes-1).
506 |
507 | Return : The address of the selected row.
508 |
509 +------------------------------------------------------------------------------
510 */
511 char* ccddata_eg_adjacent (int idx)
512 {
513 return ad[idx];
514 }
515
516 /*
517 +------------------------------------------------------------------------------
518 | Function : ccddata_eg_saps
519 +------------------------------------------------------------------------------
520 | Description : Returns the number of SAPs (including gaps).
521 |
522 | Parameters : -
523 |
524 | Return : The number of SAPs.
525 |
526 +------------------------------------------------------------------------------
527 */
528
529 int ccddata_eg_saps (void)
530 {
531 return MAXSAPS;
532 }
533
534 /*
535 +------------------------------------------------------------------------------
536 | Function : ccddata_eg_sapnames
537 +------------------------------------------------------------------------------
538 | Description : Returns a pointer to the SAP name table.
539 |
540 | Parameters : -
541 |
542 | Return : The address of the sapname table.
543 |
544 +------------------------------------------------------------------------------
545 */
546 char** ccddata_eg_sapnames (void)
547 {
548 return sapnames;
549 }
550
551 /*
552 +------------------------------------------------------------------------------
553 | Function : ccddata_eg_comendpoints
554 +------------------------------------------------------------------------------
555 | Description : Returns a pointer to one row in the comendpoint list.
556 |
557 | Parameters : idx - line in list (0..SAPs-1).
558 |
559 | Return : The address of the selected row.
560 |
561 +------------------------------------------------------------------------------
562 */
563 T_COMENDPOINTS* ccddata_eg_comendpoints (int idx)
564 {
565 return com_endpoints[idx];
566 }