Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openairinterface-6g
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
OpenXG
openairinterface-6g
Commits
4b910223
Commit
4b910223
authored
Nov 10, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass read-only parameters as const
parent
383c9431
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+3
-3
common/utils/nr/nr_common.h
common/utils/nr/nr_common.h
+2
-2
openair1/PHY/NR_TRANSPORT/nr_dci.c
openair1/PHY/NR_TRANSPORT/nr_dci.c
+1
-1
openair1/PHY/NR_TRANSPORT/nr_dci.h
openair1/PHY/NR_TRANSPORT/nr_dci.h
+1
-1
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
+1
-1
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
+7
-7
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
+2
-2
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+1
-1
openair1/SCHED_NR/sched_nr.h
openair1/SCHED_NR/sched_nr.h
+1
-1
No files found.
common/utils/nr/nr_common.c
View file @
4b910223
...
...
@@ -541,8 +541,8 @@ int cce_to_reg_interleaving(const int R, int k, int n_shift, const int C, int L,
return
f
;
}
void
get_coreset_rballoc
(
uint8_t
*
FreqDomainResource
,
int
*
n_rb
,
int
*
rb_offset
)
{
void
get_coreset_rballoc
(
const
uint8_t
*
FreqDomainResource
,
int
*
n_rb
,
int
*
rb_offset
)
{
uint8_t
count
=
0
,
start
=
0
,
start_set
=
0
;
uint64_t
bitmap
=
(((
uint64_t
)
FreqDomainResource
[
0
])
<<
37
)
|
...
...
@@ -565,7 +565,7 @@ void get_coreset_rballoc(uint8_t *FreqDomainResource,int *n_rb,int *rb_offset) {
}
// According to 38.211 7.3.2.2
int
get_coreset_num_cces
(
uint8_t
*
FreqDomainResource
,
int
duration
)
int
get_coreset_num_cces
(
const
uint8_t
*
FreqDomainResource
,
int
duration
)
{
int
num_rbs
;
int
rb_offset
;
...
...
common/utils/nr/nr_common.h
View file @
4b910223
...
...
@@ -280,8 +280,8 @@ uint32_t to_nrarfcn(int nr_bandP, uint64_t dl_CarrierFreq, uint8_t scs_index, ui
int
cce_to_reg_interleaving
(
const
int
R
,
int
k
,
int
n_shift
,
const
int
C
,
int
L
,
const
int
N_regs
);
int
get_SLIV
(
uint8_t
S
,
uint8_t
L
);
void
get_coreset_rballoc
(
uint8_t
*
FreqDomainResource
,
int
*
n_rb
,
int
*
rb_offset
);
int
get_coreset_num_cces
(
uint8_t
*
FreqDomainResource
,
int
duration
);
void
get_coreset_rballoc
(
const
uint8_t
*
FreqDomainResource
,
int
*
n_rb
,
int
*
rb_offset
);
int
get_coreset_num_cces
(
const
uint8_t
*
FreqDomainResource
,
int
duration
);
int
get_nr_table_idx
(
int
nr_bandP
,
uint8_t
scs_index
);
int32_t
get_delta_duplex
(
int
nr_bandP
,
uint8_t
scs_index
);
frame_type_t
get_frame_type
(
uint16_t
nr_bandP
,
uint8_t
scs_index
);
...
...
openair1/PHY/NR_TRANSPORT/nr_dci.c
View file @
4b910223
...
...
@@ -52,7 +52,7 @@ static void nr_pdcch_scrambling(uint32_t *in, uint32_t size, uint32_t Nid, uint3
}
static
void
nr_generate_dci
(
PHY_VARS_gNB
*
gNB
,
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
,
const
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
,
int
txdataF_offset
,
NR_DL_FRAME_PARMS
*
frame_parms
,
int
slot
)
...
...
openair1/PHY/NR_TRANSPORT/nr_dci.h
View file @
4b910223
...
...
@@ -42,6 +42,6 @@ void nr_fill_ul_dci(PHY_VARS_gNB *gNB,
int
slot
,
nfapi_nr_ul_dci_request_pdus_t
*
pdcch_pdu
);
void
nr_fill_reg_list
(
int
cce_list
[
MAX_DCI_CORESET
][
NR_MAX_PDCCH_AGG_LEVEL
*
NR_NB_REG_PER_CCE
],
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
);
void
nr_fill_reg_list
(
int
cce_list
[
MAX_DCI_CORESET
][
NR_MAX_PDCCH_AGG_LEVEL
*
NR_NB_REG_PER_CCE
],
const
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
);
#endif //__PHY_NR_TRANSPORT_DCI__H
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
View file @
4b910223
...
...
@@ -42,7 +42,7 @@ int compfunc(const void *a, const void *b)
return
(
*
(
int
*
)
a
-
*
(
int
*
)
b
);
}
void
nr_fill_reg_list
(
int
reg_list
[
MAX_DCI_CORESET
][
NR_MAX_PDCCH_AGG_LEVEL
*
NR_NB_REG_PER_CCE
],
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
)
void
nr_fill_reg_list
(
int
reg_list
[
MAX_DCI_CORESET
][
NR_MAX_PDCCH_AGG_LEVEL
*
NR_NB_REG_PER_CCE
],
const
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
)
{
int
bsize
=
pdcch_pdu_rel15
->
RegBundleSize
;
int
R
=
pdcch_pdu_rel15
->
InterleaverSize
;
...
...
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
View file @
4b910223
...
...
@@ -51,7 +51,7 @@ static void nr_pdsch_codeword_scrambling(uint8_t *in, uint32_t size, uint8_t q,
nr_codeword_scrambling
(
in
,
size
,
q
,
Nid
,
n_RNTI
,
out
);
}
static
int
do_ptrs_symbol
(
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
,
static
int
do_ptrs_symbol
(
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
,
int
start_sc
,
int
symbol_sz
,
c16_t
*
txF
,
...
...
@@ -339,7 +339,7 @@ static inline void neg_dmrs(c16_t *in, c16_t *out, int sz)
static
inline
int
do_onelayer
(
NR_DL_FRAME_PARMS
*
frame_parms
,
int
slot
,
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
,
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
,
int
layer
,
c16_t
*
output
,
c16_t
*
txl_start
,
...
...
@@ -457,7 +457,7 @@ static inline void do_txdataF(c16_t **txdataF,
int
symbol_sz
,
c16_t
txdataF_precoding
[][
symbol_sz
],
PHY_VARS_gNB
*
gNB
,
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
,
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
,
int
ant
,
int
start_sc
,
int
txdataF_offset_per_symbol
)
...
...
@@ -465,7 +465,7 @@ static inline void do_txdataF(c16_t **txdataF,
NR_DL_FRAME_PARMS
*
frame_parms
=
&
gNB
->
frame_parms
;
int
rb
=
0
;
uint16_t
subCarrier
=
start_sc
;
nfapi_nr_tx_precoding_and_beamforming_t
*
pb
=
&
rel15
->
precodingAndBeamforming
;
const
nfapi_nr_tx_precoding_and_beamforming_t
*
pb
=
&
rel15
->
precodingAndBeamforming
;
while
(
rb
<
rel15
->
rbSize
)
{
// get pmi info
const
int
pmi
=
(
pb
->
prg_size
>
0
)
?
(
pb
->
prgs_list
[(
int
)
rb
/
pb
->
prg_size
].
pm_idx
)
:
0
;
...
...
@@ -556,7 +556,7 @@ static int do_one_dlsch(unsigned char *input_ptr, PHY_VARS_gNB *gNB, NR_gNB_DLSC
time_stats_t
*
dlsch_scrambling_stats
=
&
gNB
->
dlsch_scrambling_stats
;
time_stats_t
*
dlsch_modulation_stats
=
&
gNB
->
dlsch_modulation_stats
;
NR_DL_gNB_HARQ_t
*
harq
=
&
dlsch
->
harq_process
;
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
const
int
layerSz
=
frame_parms
->
N_RB_DL
*
NR_SYMBOLS_PER_SLOT
*
NR_NB_SC_PER_RB
;
const
int
symbol_sz
=
frame_parms
->
ofdm_symbol_size
;
const
int
dmrs_Type
=
rel15
->
dmrsConfigType
;
...
...
@@ -680,7 +680,7 @@ static int do_one_dlsch(unsigned char *input_ptr, PHY_VARS_gNB *gNB, NR_gNB_DLSC
// pmi = prgs_list[rbidx/prg_size].pm_idx, rbidx =0,...,rbSize-1
// The Precoding matrix:
// The Codebook Type I
nfapi_nr_tx_precoding_and_beamforming_t
*
pb
=
&
rel15
->
precodingAndBeamforming
;
const
nfapi_nr_tx_precoding_and_beamforming_t
*
pb
=
&
rel15
->
precodingAndBeamforming
;
// beam number in multi-beam scenario (concurrent beams)
int
bitmap
=
SL_to_bitmap
(
rel15
->
StartSymbolIndex
,
rel15
->
NrOfSymbols
);
int
beam_nb
=
beam_index_allocation
(
gNB
->
enable_analog_das
,
...
...
@@ -795,7 +795,7 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx, int frame, int slot)
for
(
int
dlsch_id
=
0
;
dlsch_id
<
msgTx
->
num_pdsch_slot
;
dlsch_id
++
)
{
NR_gNB_DLSCH_t
*
dlsch
=
msgTx
->
dlsch
[
dlsch_id
];
NR_DL_gNB_HARQ_t
*
harq
=
&
dlsch
->
harq_process
;
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
LOG_D
(
PHY
,
"pdsch: BWPStart %d, BWPSize %d, rbStart %d, rbsize %d
\n
"
,
...
...
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
View file @
4b910223
...
...
@@ -141,7 +141,7 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB,
NR_DL_gNB_HARQ_t
*
harq
=
&
dlsch
->
harq_process
;
unsigned
int
crc
=
1
;
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
uint32_t
A
=
rel15
->
TBSize
[
0
]
<<
3
;
unsigned
char
*
a
=
harq
->
pdu
;
if
(
rel15
->
rnti
!=
SI_RNTI
)
{
...
...
@@ -231,7 +231,7 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB,
for
(
int
dlsch_id
=
0
;
dlsch_id
<
msgTx
->
num_pdsch_slot
;
dlsch_id
++
)
{
NR_gNB_DLSCH_t
*
dlsch
=
msgTx
->
dlsch
[
dlsch_id
];
NR_DL_gNB_HARQ_t
*
harq
=
&
dlsch
->
harq_process
;
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
const
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
rel15
=
&
harq
->
pdsch_pdu
.
pdsch_pdu_rel15
;
nrLDPC_TB_encoding_parameters_t
*
TB_parameters
=
&
TBs
[
dlsch_id
];
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
4b910223
...
...
@@ -58,7 +58,7 @@ static void nr_fill_indication(PHY_VARS_gNB *gNB,
int
beam_index_allocation
(
bool
das
,
int
fapi_beam_index
,
nfapi_nr_analog_beamforming_ve_t
*
analog_bf
,
const
nfapi_nr_analog_beamforming_ve_t
*
analog_bf
,
NR_gNB_COMMON
*
common_vars
,
int
slot
,
int
symbols_per_slot
,
...
...
openair1/SCHED_NR/sched_nr.h
View file @
4b910223
...
...
@@ -49,7 +49,7 @@ void nr_phy_free_RU(RU_t *ru);
void
clear_slot_beamid
(
PHY_VARS_gNB
*
gNB
,
int
slot
);
int
beam_index_allocation
(
bool
das
,
int
fapi_beam_index
,
nfapi_nr_analog_beamforming_ve_t
*
analog_bf
,
const
nfapi_nr_analog_beamforming_ve_t
*
analog_bf
,
NR_gNB_COMMON
*
common_vars
,
int
slot
,
int
symbols_per_slot
,
...
...
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