Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
OpenXG-RAN
Commits
eac4f192
Commit
eac4f192
authored
Feb 23, 2021
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Functions: declare pointers const
parent
87b261bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+5
-7
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+2
-7
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
eac4f192
...
...
@@ -120,11 +120,10 @@ static inline uint8_t get_max_candidates(uint8_t scs) {
static
inline
uint8_t
get_max_cces
(
uint8_t
scs
)
{
AssertFatal
(
scs
<
4
,
"Invalid PDCCH subcarrier spacing %d
\n
"
,
scs
);
return
(
nr_max_number_of_cces_per_slot
[
scs
]);
}
}
NR_ControlResourceSet_t
*
get_coreset
(
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace_t
*
ss
,
int
ss_type
)
{
NR_ControlResourceSet_t
*
get_coreset
(
const
NR_BWP_Downlink_t
*
bwp
,
const
NR_SearchSpace_t
*
ss
,
int
ss_type
)
{
NR_ControlResourceSetId_t
coreset_id
=
*
ss
->
controlResourceSetId
;
if
(
ss_type
==
0
)
{
// common search space
AssertFatal
(
coreset_id
!=
0
,
"coreset0 currently not supported
\n
"
);
...
...
@@ -146,9 +145,8 @@ NR_ControlResourceSet_t *get_coreset(NR_BWP_Downlink_t *bwp,
}
}
NR_SearchSpace_t
*
get_searchspace
(
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace__searchSpaceType_PR
target_ss
)
{
NR_SearchSpace_t
*
get_searchspace
(
const
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace__searchSpaceType_PR
target_ss
)
{
DevAssert
(
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
searchSpacesToAddModList
);
DevAssert
(
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
searchSpacesToAddModList
->
list
.
count
>
0
);
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
eac4f192
...
...
@@ -250,15 +250,10 @@ void prepare_dci(const NR_CellGroupConfig_t *secondaryCellGroup,
int
bwp_id
);
/* find coreset within the search space */
NR_ControlResourceSet_t
*
get_coreset
(
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace_t
*
ss
,
int
ss_type
);
NR_ControlResourceSet_t
*
get_coreset
(
const
NR_BWP_Downlink_t
*
bwp
,
const
NR_SearchSpace_t
*
ss
,
int
ss_type
);
/* find a search space within a BWP */
NR_SearchSpace_t
*
get_searchspace
(
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace__searchSpaceType_PR
target_ss
);
NR_SearchSpace_t
*
get_searchspace
(
const
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace__searchSpaceType_PR
target_ss
);
long
get_K2
(
NR_BWP_Uplink_t
*
ubwp
,
int
time_domain_assignment
,
int
mu
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment