Moving all common header file into common_def.h file
[o-du/l2.git] / src / 5gnrmac / lwr_mac_upr_inf.h
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
19 /* header include files -- defines (.h)  */
20
21 #ifndef __LWR_MAC_UPR_INF_H__
22 #define __LWR_MAC_UPR_INF_H__
23 #include "tfu.h"
24  
25 /* header/extern include files (.x) */
26 #include "tfu.x"
27
28 /* events */
29 #define EVENT_RACH_IND_TO_MAC 0
30 #define EVENT_CRC_IND_TO_MAC  1
31 #define EVENT_RX_DATA_IND_TO_MAC 2
32 #define EVENT_STOP_IND_TO_MAC 3
33
34 typedef S16 (*packSlotIndMsg)(Pst *pst, SlotIndInfo *slotInd);
35 S16 packLcSlotInd (Pst *pst, SlotIndInfo *slotInd);
36 S16 packLwlcSlotInd (Pst *pst, SlotIndInfo *slotInd);
37
38 typedef uint16_t (*packRachIndMsg)(Pst *pst, RachInd *rachInd);
39 uint16_t packRachInd(Pst *pst, RachInd *rachInd);
40 uint16_t fapiMacRachInd(Pst *pst, RachInd *rachInd);
41
42 typedef uint16_t (*packCrcIndMsg)(Pst *pst, CrcInd *crcInd);
43 uint16_t packCrcInd(Pst *pst, CrcInd *crcInd);
44 uint16_t fapiMacCrcInd(Pst *pst, CrcInd *crcInd);
45
46
47 typedef uint16_t (*packRxDataIndMsg)(Pst *pst, RxDataInd *rxDataInd);
48 uint16_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd);
49 uint16_t fapiMacRxDataInd(Pst *pst, RxDataInd *rxDataInd);
50
51 typedef uint16_t (*packStopIndMsg)(Pst *pst);
52 uint16_t packStopInd(Pst *pst);
53 uint16_t fapiMacStopInd(Pst *pst);
54 #endif
55 /**********************************************************************
56          End of file
57 **********************************************************************/