Temporary fix of o1 compilation .[Issue-Id: ODUHIGH-285]
[o-du/l2.git] / src / phy_stub / l1.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 #include <unistd.h>
19
20 #define MAX_SLOT_VALUE   9
21 #define MAX_SFN_VALUE    1023
22 #define NR_PCI            1
23 #define SLOT_DELAY       3
24
25 uint16_t sfnValue = 0;
26 uint16_t slotValue = 0;
27 bool     rachIndSent = false;
28 bool     msg3Sent = false;
29 bool     msg5ShortBsrSent = false;
30 bool     msg5Sent = false;
31 bool     dlDedMsg = false;
32 bool     msgSecurityModeComp =  false;
33 bool     msgRrcReconfiguration  =  false;
34 bool     msgRegistrationComp    = false;
35 typedef enum
36 {
37    MSG_TYPE_MSG3,
38    MSG_TYPE_SHORT_BSR,
39    MSG_TYPE_MSG5,
40    MSG_TYPE_SECURITY_MODE_COMPLETE,
41    MSG_TYPE_REGISTRATION_COMPLETE,
42    MSG_TYPE_RRC_RECONFIG_COMPLETE
43 }MsgType;
44
45 void phyToMac ARGS((uint16_t msgType, uint32_t msgLen,void *msg));
46 #ifdef INTEL_FAPI
47 void fillTlvs ARGS((fapi_uint16_tlv_t *tlv, uint16_t tag, uint16_t
48 length, uint16_t value, uint32_t *msgLen));
49 void fillMsgHeader ARGS((fapi_msg_t *hdr, uint16_t msgType, uint16_t msgLen));
50 #endif
51 void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg);
52
53 /**********************************************************************
54          End of file
55 **********************************************************************/