Adding new commiter to ODU-High repo
[o-du/l2.git] / src / mt / mt_ss_wl.x
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 \f
19 /********************************************************************20**
20  
21      Name:     MTSS -- implementation specific definitions
22  
23      Type:     C include file
24  
25      Desc:     Data structure definitions demanded by systems services.
26                The contents of these are for the MTSS implementation.
27  
28      File:     mt_ss.x
29  
30 *********************************************************************21*/
31
32
33 #ifndef __MTSSWLX__
34 #define __MTSSWLX__
35
36 typedef struct mtDynBktCfg
37 {
38    uint16_t          blkSetRelThreshold;       /* threshold value for releasing memory blocks */
39    uint16_t          blkSetAcquireThreshold;   /* threshold for requesting additional memory blocks */
40 } MtDynBktCfg;
41
42 /* The number of blocks in the buckets and size of bloks must be 
43    same as the configured in mtGlobMemCfg. */
44 typedef struct mtDynRegCfg
45 {
46    Region          regionId;                  /* Region Id */
47    uint16_t             numBkts;                   /* Number of buckets */
48    MtDynBktCfg     bkt[SS_MAX_POOLS_PER_REG]; /* Threshold value configuration for each buckets */
49 } MtDynRegCfg;
50
51 /* This structure is used to store the initial values of the configuraiton
52  * of the individual system taks regions. The number of buckets is same
53  * as of the one configured in the gloabl region */
54 typedef struct mtDynMemCfg
55 {
56    uint8_t              numRegions;           /* Number of regions */
57    MtDynRegCfg     region[SS_MAX_REGS];  /* Configuration details of each region */
58 } MtDynMemCfg;
59
60 /* Global bucket configuration, the number of bucket, block size and the memory
61  * block set size for each bucket */
62 typedef struct mtGlobBktCfg
63 {
64    Size         blkSize;          /* bucket quantum size */
65    uint32_t          numBlks;          /* the total blocks in the bucket */
66    uint16_t          bucketSetSize;    /* Size of each bucket set */
67 } MtGlobBktCfg;
68
69 typedef struct mtGlobMemCfg
70 {
71    uint16_t              numBkts;
72 #ifdef  XEON_SPECIFIC_CHANGES
73    Size             heapSize;
74 #endif   
75    MtGlobBktCfg     bkt[SS_MAX_POOLS_PER_REG];
76 }MtGlobMemCfg;
77
78 #endif
79
80 /**********************************************************************
81          End of file
82 **********************************************************************/