[EPIC-ID: ODUHIGH-488][TASK-ID: ODUHIGH-494]Framework to support for slice based...
[o-du/l2.git] / src / 5gnrsch / sch_slice_based.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 typedef struct schSliceBasedCellCb
20 {
21    CmLListCp     ueToBeScheduled;                   /*!< Linked list to store UEs pending to be scheduled, */
22 }SchSliceBasedCellCb;
23
24 typedef struct schSliceBasedLcCb
25 {
26    /* TODO: For Multiple RRMPolicies, Make DedicatedLcInfo as array/Double Pointer 
27     * and have separate DedLCInfo for each RRMPolcyMemberList*/
28    /* Dedicated LC List will be allocated, if any available*/
29    CmLListCp dedLcList; /*Contain LCInfo per RRMPolicy*/
30    CmLListCp defLcList; /*Linklist of LC assoc with Default S-NSSAI(s)*/
31    /* SharedPRB number can be used by any LC.
32     * Need to calculate in every Slot based on PRB availability*/
33    uint16_t sharedNumPrb;
34 }SchSliceBasedLcCb;
35
36 typedef struct schSliceBasedHqProcCb
37 {
38    SchSliceBasedLcCb lcCb; 
39 }SchSliceBasedHqProcCb;
40
41 typedef struct schSliceBasedHqCb
42 {
43    CmLListCp  ulRetxHqList;
44    CmLListCp  dlRetxHqList;
45 }SchSliceBasedHqCb;
46
47 typedef struct schSliceBasedUeCb
48 {
49    SchSliceBasedHqCb   hqRetxCb;
50 }SchSliceBasedUeCb;
51
52 uint8_t schSliceBasedAddUeToSchedule(SchCellCb *cellCb, uint16_t ueIdToAdd);
53 void schSliceBasedAllApisInit(SchAllApis *allSliceBasedApi);
54
55 /**********************************************************************
56     End of file
57  *********************************************************************/
58