fix ODUHIGH-182 updating code to be compatible with latest available fapi_inetrface...
[o-du/l2.git] / src / 5gnrmac / lwr_mac_fsm.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 #ifndef _LWR_MAC_FSM_H_
20 #define _LWR_MAC_FSM_H_
21
22 #define FAPI_UINT_8   1
23 #define FAPI_UINT_16  2
24 #define FAPI_UINT_32  4
25 #define INVALID_VALUE -1
26
27 #define CORESET_TYPE0 0
28 #define CORESET_TYPE1 1
29 #define CORESET_TYPE2 2
30 #define CORESET_TYPE3 3
31
32
33 #include "lwr_mac.h"
34
35 #ifdef INTEL_FAPI
36 #include "fapi.h"
37 #endif
38
39 typedef enum{
40    SI_RNTI_TYPE,
41    RA_RNTI_TYPE,
42    TC_RNTI_TYPE
43 }RntiType;
44
45 S16 lwr_mac_handleInvalidEvt(void *msg);
46 S16 lwr_mac_handleParamReqEvt(void *msg);
47 S16 lwr_mac_handleParamRspEvt(void *msg);
48 S16 lwr_mac_handleConfigReqEvt(void *msg);
49 S16 lwr_mac_handleConfigRspEvt(void *msg);
50 S16 lwr_mac_handleStartReqEvt(void *msg);
51 S16 lwr_mac_handleStopReqEvt(void *msg);
52 void sendToLowerMac(U16, U32, void *);
53 void handlePhyMessages(uint16_t msgType, uint32_t msgSize, void *msg);
54
55 typedef S16 (*lwrMacFsmHdlr)(void *);
56 #endif
57
58 /**********************************************************************
59          End of file
60 **********************************************************************/
61