1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
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 #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 *******************************************************************************/
19 /********************************************************************20**
21 Name: MTSS -- implementation specific definitions
25 Desc: Data structure definitions demanded by systems services.
26 The contents of these are for the MTSS implementation.
30 *********************************************************************21*/
36 typedef struct mtDynBktCfg
38 U16 blkSetRelThreshold; /* threshold value for releasing memory blocks */
39 U16 blkSetAcquireThreshold; /* threshold for requesting additional memory blocks */
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
46 Region regionId; /* Region Id */
47 U16 numBkts; /* Number of buckets */
48 MtDynBktCfg bkt[SS_MAX_POOLS_PER_REG]; /* Threshold value configuration for each buckets */
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
56 U8 numRegions; /* Number of regions */
57 MtDynRegCfg region[SS_MAX_REGS]; /* Configuration details of each region */
60 /* Global bucket configuration, the number of bucket, block size and the memory
61 * block set size for each bucket */
62 typedef struct mtGlobBktCfg
64 Size blkSize; /* bucket quantum size */
65 U32 numBlks; /* the total blocks in the bucket */
66 U16 bucketSetSize; /* Size of each bucket set */
69 typedef struct mtGlobMemCfg
72 #ifdef XEON_SPECIFIC_CHANGES
75 MtGlobBktCfg bkt[SS_MAX_POOLS_PER_REG];
80 /**********************************************************************
82 **********************************************************************/