e609e1733ab2a4767e219b88eab5000f1ddd9422
[o-du/l2.git] / src / 5gnrmac / mac_stop_ind.c
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17  *******************************************************************************/
18 /* header include files (.h) */
19 #include <stdbool.h>
20 #include "envopt.h"        /* environment options */
21 #include "envdep.h"        /* environment dependent */
22 #include "envind.h"        /* environment independent */
23 #include "gen.h"           /* general */
24 #include "ssi.h"           /* system services */
25 #include "cm_tkns.h"       /* Common Token Defines */
26 #include "cm_llist.h"      /* Common Link List Defines */
27 #include "cm_hash.h"       /* Common Hash List Defines */
28 #include "cm_mblk.h"       /* common memory link list library */
29 #include "cm_lte.h"        /* Common LTE Defines */
30 #include "tfu.h"           /* RGU Interface includes */
31 #include "lrg.h"
32 #include "gen.x"           /* general */
33 #include "ssi.x"           /* system services */
34 #include "cm5.x"           /* system services */
35 #include "cm_tkns.x"       /* Common Token Definitions */
36 #include "cm_llist.x"      /* Common Link List Definitions */
37 #include "cm_lib.x"        /* Common Library Definitions */
38 #include "cm_hash.x"       /* Common Hash List Definitions */
39 #include "cm_mblk.x"       /* common memory link list library */
40 #include "cm_lte.x"        /* Common LTE Defines */
41 #include "tfu.x"           /* RGU Interface includes */
42 #include "lrg.x"
43 #include "du_app_mac_inf.h"
44 #include "mac.h"
45 #include "du_log.h"
46
47 /*******************************************************************
48  * @brief process Stop indication to MAC
49  *
50  * @details
51  *
52  *     Function : fapiMacStopInd 
53  *      
54  *  @param[in]  Pst            *pst
55  *  @return  S16
56  *      -# ROK 
57  *      -# RFAILED 
58  ******************************************************************/
59 PUBLIC S16 fapiMacStopInd(Pst *pst) 
60 {
61    uint8_t ret = ROK;
62    ret = sendStopIndMacToDuApp();
63    return ret;
64 }