FreeCalypso > hg > fc-magnetite
comparison src/g23m-gprs/sm/sm_qos.h @ 183:219afcfc6250
src/g23m-gprs: initial import from TCS3.2/LoCosto
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 Oct 2016 04:24:13 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
182:f02d0a0e1849 | 183:219afcfc6250 |
---|---|
1 /*---------------------------------------------------------------------------- | |
2 | Project : 3G PS | |
3 | Module : SM | |
4 +----------------------------------------------------------------------------- | |
5 | Copyright 2003 Texas Instruments. | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments . | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose: 3G QoS utility function definitions in the SM entity. | |
17 | For design details, see: | |
18 | 8010.908 SM Detailed Specification | |
19 +---------------------------------------------------------------------------*/ | |
20 | |
21 /*==== DECLARATION CONTROL =================================================*/ | |
22 | |
23 #ifndef SM_QOS_H | |
24 #define SM_QOS_H | |
25 | |
26 /*==== INCLUDES =============================================================*/ | |
27 | |
28 #include "sm.h" | |
29 #include "message.h" | |
30 | |
31 /*==== CONSTS ===============================================================*/ | |
32 | |
33 /*==== TYPES ================================================================*/ | |
34 | |
35 /*==== EXPORTS ==============================================================*/ | |
36 | |
37 extern void sm_qos_copy_from_sm (/*@out@*/T_PS_qos *dst, | |
38 /*@in@*/ T_SM_qos *src, | |
39 /*@out@*/T_PS_ctrl_qos *dctrl) | |
40 /*@modifies dst, *dctrl@*/; | |
41 | |
42 extern void sm_qos_copy_to_sm (/*@out@*/T_SM_qos *dst, | |
43 /*@in@*/ T_PS_qos *src, | |
44 T_PS_ctrl_qos ctrl) | |
45 /*@modifies dst@*/; | |
46 | |
47 extern void sm_qos_convert_to_aim (/*@in@*/ T_SM_qos *src_qos, | |
48 /*@out@*/T_M_SM_qos *dst_qos, | |
49 T_PS_sgsn_rel release) | |
50 /*@modifies dst_qos@*/ | |
51 /*@globals internalState@*/; | |
52 | |
53 | |
54 extern void sm_qos_assign_from_aim (/*@out@*/T_SM_qos *dst_qos, | |
55 /*@in@*/T_M_SM_qos *src_qos) | |
56 /*@modifies dst_qos@*/ | |
57 /*@globals internalState@*/; | |
58 | |
59 extern BOOL sm_qos_is_minimum_satisfied_by_aim | |
60 (struct T_SM_CONTEXT_DATA *context, | |
61 T_M_SM_qos *aim_qos); | |
62 | |
63 extern BOOL sm_qos_is_minimum_satisfied_by_sm | |
64 (struct T_SM_CONTEXT_DATA *context, | |
65 T_SM_qos *sm_qos); | |
66 | |
67 extern BOOL sm_qos_is_requested_qos_present(struct T_SM_CONTEXT_DATA *context); | |
68 | |
69 extern U8 sm_qos_get_traffic_class(struct T_SM_CONTEXT_DATA *context); | |
70 | |
71 #ifdef TI_PS_OP_SM_RETAIN_BEST_CONTEXT | |
72 extern U16 sm_rank_del_contexts_based_on_tc(); | |
73 extern U16 sm_retain_cntxt_wth_best_bitrate(); | |
74 extern U16 sm_retain_cntxt_with_least_nsapi(); | |
75 extern U8 sm_qos_rank_context(U16 ti); | |
76 #endif | |
77 | |
78 #endif /* SM_QOS_H */ | |
79 /*==== END OF FILE ==========================================================*/ |