1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
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 #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 *******************************************************************************/
19 /* header include files -- defines (.h) */
21 #ifndef __LWR_MAC_UPR_INF_H__
22 #define __LWR_MAC_UPR_INF_H__
25 /* header/extern include files (.x) */
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
34 typedef S16 (*packSlotIndMsg)(Pst *pst, SlotIndInfo *slotInd);
35 S16 packLcSlotInd (Pst *pst, SlotIndInfo *slotInd);
36 S16 packLwlcSlotInd (Pst *pst, SlotIndInfo *slotInd);
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);
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);
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);
51 typedef uint16_t (*packStopIndMsg)(Pst *pst);
52 uint16_t packStopInd(Pst *pst);
53 uint16_t fapiMacStopInd(Pst *pst);
55 /**********************************************************************
57 **********************************************************************/