/******************************************************************************* ################################################################################ # Copyright (c) [2017-2019] [Radisys] # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # distributed under the License is distributed on an "AS IS" BASIS, # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ *******************************************************************************/ /********************************************************************** Name: LTE MAC Layer Type: C include file Desc: Defines required by LTE-MAC File: lrg.h **********************************************************************/ #ifndef __LRGH__ #define __LRGH__ #define EVTLRGCFGREQ 0 /* Config Request */ #define EVTLRGCFGCFM 1 /* Config Confirm */ #define EVTLRGSTSREQ 44 /* Statistics Request */ #define EVTLRGSTSCFM 5 /* Statistics Confirm */ #define EVTLRGUSTAIND 8 /* Unsolicite Status Indication */ #define EVTMACSCHGENCFGREQ 10 /* Scheduler Configuration */ #define EVTMACSCHGENCFGCFM 11 /* Scheduler Config Confirm */ #define EVTLRGSCHSTAIND 12 /* Scheduler Configuration */ #define EVTLRGSCHUSTAIND 15 /* Unsolicite Status Indication */ /* lrg_h_001.main_3 - ADD - Event definitions for LTE_L2_MEAS */ #ifdef LTE_L2_MEAS #define EVTLRGSCHL2MEASREQ 16 /* For L2 measurement request */ #define EVTLRGSCHL2MEASCFM 17 /* For L2 measurement confirm */ #define EVTLRGSCHL2MEASSENDREQ 18 /*For L2 measurement send request*/ #define EVTLRGSCHL2MEASSTOPREQ 19 /*For L2 measurement stop request*/ #define EVTLRGSCHL2MEASSTOPCFM 20 /*For L2 meaurement stop cfm*/ #endif /* LTE_L2_MEAS */ #define MAXRGLRG 2 /* Maxiumum selector values */ /*MCELL changes*/ #define LRG_MAX_RGU_SAPS 4 /* RGU SAPS TO KW UL AND KW DL */ #define LRG_MAX_PT_NUM_SIZE 8 #define LRG_NOT_CFG 0 /* SAP not configured */ #define LRG_UNBND 1 /* Unbound SAP State */ #define LRG_BND 2 /* Bound SAP State */ #define LRG_WAIT_BNDCFM 3 /* Await Bind Confirm State */ /* Unsolicited status indication events */ /* RGU interface SAP bound with RLC */ #define LRG_EVENT_RGUSAP_ENB (LCM_EVENT_LYR_SPECIFIC + 0) /* CRG interface SAP bound with RRC */ #define LRG_EVENT_CRGSAP_ENB (LCM_EVENT_LYR_SPECIFIC + 1) /* RGR interface SAP bound with RRM */ #define LRG_EVENT_RGRSAP_ENB (LCM_EVENT_LYR_SPECIFIC + 2) /* RGR interface SAP bound with RRM */ #define LRG_EVENT_RGMSAP_ENB (LCM_EVENT_LYR_SPECIFIC + 3) /* Layer specific causes */ #define LRG_CAUSE_HQ_PROC_BUSY (LCM_CAUSE_LYR_SPECIFIC + 0) #define LRG_CAUSE_DELAYED_DATREQ (LCM_CAUSE_LYR_SPECIFIC + 1) /********************************************************************** Debug Mask values **********************************************************************/ #ifdef DEBUGP #define DBGMASK_INFO (DBGMASK_LYR << 0) #define DBGMASK_ERR (DBGMASK_LYR << 1) #define DBGMASK_PRM (DBGMASK_LYR << 2) #endif /* #ifdef DEBUGP */ #define STCRGSAP STGEN + 1 #define STRGRSAP STGEN + 2 #define STTFUSAP STGEN + 4 #define STSCHINST STGEN + 5 /* Scheduler Instance */ #define LRG_USTA_DGNVAL_MEM 1 #define LRG_USTA_DGNVAL_HARQ 2 /* TRACE Macros */ #define LRG_NO_TRACE 0 #define LRG_FULL_TRACE -1 #ifdef TENB_ACC #define LRG_MAX_SAPS_PER_INST 5 #else /*Mcell changes*/ #define LRG_MAX_SAPS_PER_INST 4 #endif /* pack unpack error code */ #define ELRGXXX 0 #define ERRLRG 0 /* lrg_h_001.main_3 - ADD - Event definitions for LTE_L2_MEAS */ #ifdef LTE_L2_MEAS /* Max Requests per Measurement type per One call to RgMiLrgSchL2MeasReq */ #define LRG_MAX_QCI_PER_REQ 10 /*!< Max number of QCI's per request */ #define LRG_MAX_QCI 10 /*!< Max QCI indexe's used */ #define LRG_MAX_SAMP_PRD 100 /*!