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
spbro
OpenXG-RAN
Commits
56a9b74f
Commit
56a9b74f
authored
Apr 16, 2024
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding const and code clean-up
parent
db3f68f7
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
135 additions
and
131 deletions
+135
-131
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+2
-2
common/utils/nr/nr_common.h
common/utils/nr/nr_common.h
+1
-1
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
+126
-122
openair1/PHY/TOOLS/phy_scope_interface.c
openair1/PHY/TOOLS/phy_scope_interface.c
+1
-1
openair1/PHY/TOOLS/phy_scope_interface.h
openair1/PHY/TOOLS/phy_scope_interface.h
+2
-2
openair1/SCHED_NR_UE/defs.h
openair1/SCHED_NR_UE/defs.h
+1
-1
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+1
-1
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+1
-1
No files found.
common/utils/nr/nr_common.c
View file @
56a9b74f
...
@@ -318,8 +318,8 @@ int cce_to_reg_interleaving(const int R, int k, int n_shift, const int C, int L,
...
@@ -318,8 +318,8 @@ int cce_to_reg_interleaving(const int R, int k, int n_shift, const int C, int L,
return
f
;
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
;
uint8_t
count
=
0
,
start
=
0
,
start_set
=
0
;
uint64_t
bitmap
=
(((
uint64_t
)
FreqDomainResource
[
0
])
<<
37
)
|
uint64_t
bitmap
=
(((
uint64_t
)
FreqDomainResource
[
0
])
<<
37
)
|
...
...
common/utils/nr/nr_common.h
View file @
56a9b74f
...
@@ -190,7 +190,7 @@ uint32_t to_nrarfcn(int nr_bandP, uint64_t dl_CarrierFreq, uint8_t scs_index, ui
...
@@ -190,7 +190,7 @@ uint32_t to_nrarfcn(int nr_bandP, uint64_t dl_CarrierFreq, uint8_t scs_index, ui
int
get_first_ul_slot
(
int
nrofDownlinkSlots
,
int
nrofDownlinkSymbols
,
int
nrofUplinkSymbols
);
int
get_first_ul_slot
(
int
nrofDownlinkSlots
,
int
nrofDownlinkSymbols
,
int
nrofUplinkSymbols
);
int
cce_to_reg_interleaving
(
const
int
R
,
int
k
,
int
n_shift
,
const
int
C
,
int
L
,
const
int
N_regs
);
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
);
int
get_SLIV
(
uint8_t
S
,
uint8_t
L
);
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
);
int
get_nr_table_idx
(
int
nr_bandP
,
uint8_t
scs_index
);
int
get_nr_table_idx
(
int
nr_bandP
,
uint8_t
scs_index
);
int32_t
get_delta_duplex
(
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
);
frame_type_t
get_frame_type
(
uint16_t
nr_bandP
,
uint8_t
scs_index
);
...
...
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
View file @
56a9b74f
This diff is collapsed.
Click to expand it.
openair1/PHY/TOOLS/phy_scope_interface.c
View file @
56a9b74f
...
@@ -58,7 +58,7 @@ int end_forms(void) {
...
@@ -58,7 +58,7 @@ int end_forms(void) {
return
-
1
;
return
-
1
;
}
}
void
copyData
(
void
*
scopeData
,
enum
scopeDataType
type
,
void
*
dataIn
,
int
elementSz
,
int
colSz
,
int
lineSz
,
int
offset
)
void
copyData
(
void
*
scopeData
,
enum
scopeDataType
type
,
const
void
*
dataIn
,
int
elementSz
,
int
colSz
,
int
lineSz
,
int
offset
)
{
{
scopeData_t
*
tmp
=
(
scopeData_t
*
)
scopeData
;
scopeData_t
*
tmp
=
(
scopeData_t
*
)
scopeData
;
...
...
openair1/PHY/TOOLS/phy_scope_interface.h
View file @
56a9b74f
...
@@ -90,7 +90,7 @@ typedef struct scopeData_s {
...
@@ -90,7 +90,7 @@ typedef struct scopeData_s {
RU_t
*
ru
;
RU_t
*
ru
;
PHY_VARS_gNB
*
gNB
;
PHY_VARS_gNB
*
gNB
;
scopeGraphData_t
*
liveData
[
MAX_SCOPE_TYPES
];
scopeGraphData_t
*
liveData
[
MAX_SCOPE_TYPES
];
void
(
*
copyData
)(
void
*
,
enum
scopeDataType
,
void
*
data
,
int
elementSz
,
int
colSz
,
int
lineSz
,
int
offset
);
void
(
*
copyData
)(
void
*
,
enum
scopeDataType
,
const
void
*
data
,
int
elementSz
,
int
colSz
,
int
lineSz
,
int
offset
);
pthread_mutex_t
copyDataMutex
;
pthread_mutex_t
copyDataMutex
;
scopeGraphData_t
*
copyDataBufs
[
MAX_SCOPE_TYPES
][
COPIES_MEM
];
scopeGraphData_t
*
copyDataBufs
[
MAX_SCOPE_TYPES
][
COPIES_MEM
];
int
copyDataBufsIdx
[
MAX_SCOPE_TYPES
];
int
copyDataBufsIdx
[
MAX_SCOPE_TYPES
];
...
@@ -100,7 +100,7 @@ typedef struct scopeData_s {
...
@@ -100,7 +100,7 @@ typedef struct scopeData_s {
int
load_softscope
(
char
*
exectype
,
void
*
initarg
);
int
load_softscope
(
char
*
exectype
,
void
*
initarg
);
int
end_forms
(
void
)
;
int
end_forms
(
void
)
;
int
copyDataMutexInit
(
scopeData_t
*
);
int
copyDataMutexInit
(
scopeData_t
*
);
void
copyData
(
void
*
,
enum
scopeDataType
type
,
void
*
dataIn
,
int
elementSz
,
int
colSz
,
int
lineSz
,
int
offset
);
void
copyData
(
void
*
,
enum
scopeDataType
type
,
const
void
*
dataIn
,
int
elementSz
,
int
colSz
,
int
lineSz
,
int
offset
);
#define UEscopeCopy(ue, type, ...) \
#define UEscopeCopy(ue, type, ...) \
if (ue->scopeData) \
if (ue->scopeData) \
...
...
openair1/SCHED_NR_UE/defs.h
View file @
56a9b74f
...
@@ -132,7 +132,7 @@ void nr_fill_dl_indication(nr_downlink_indication_t *dl_ind,
...
@@ -132,7 +132,7 @@ void nr_fill_dl_indication(nr_downlink_indication_t *dl_ind,
fapi_nr_dci_indication_t
*
dci_ind
,
fapi_nr_dci_indication_t
*
dci_ind
,
fapi_nr_rx_indication_t
*
rx_ind
,
fapi_nr_rx_indication_t
*
rx_ind
,
const
UE_nr_rxtx_proc_t
*
proc
,
const
UE_nr_rxtx_proc_t
*
proc
,
PHY_VARS_NR_UE
*
ue
,
const
PHY_VARS_NR_UE
*
ue
,
void
*
phy_data
);
void
*
phy_data
);
/*@}*/
/*@}*/
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
56a9b74f
...
@@ -84,7 +84,7 @@ void nr_fill_dl_indication(nr_downlink_indication_t *dl_ind,
...
@@ -84,7 +84,7 @@ void nr_fill_dl_indication(nr_downlink_indication_t *dl_ind,
fapi_nr_dci_indication_t
*
dci_ind
,
fapi_nr_dci_indication_t
*
dci_ind
,
fapi_nr_rx_indication_t
*
rx_ind
,
fapi_nr_rx_indication_t
*
rx_ind
,
const
UE_nr_rxtx_proc_t
*
proc
,
const
UE_nr_rxtx_proc_t
*
proc
,
PHY_VARS_NR_UE
*
ue
,
const
PHY_VARS_NR_UE
*
ue
,
void
*
phy_data
)
void
*
phy_data
)
{
{
memset
((
void
*
)
dl_ind
,
0
,
sizeof
(
nr_downlink_indication_t
));
memset
((
void
*
)
dl_ind
,
0
,
sizeof
(
nr_downlink_indication_t
));
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
56a9b74f
...
@@ -98,7 +98,7 @@ void nr_fill_dl_indication(nr_downlink_indication_t *dl_ind,
...
@@ -98,7 +98,7 @@ void nr_fill_dl_indication(nr_downlink_indication_t *dl_ind,
fapi_nr_dci_indication_t
*
dci_ind
,
fapi_nr_dci_indication_t
*
dci_ind
,
fapi_nr_rx_indication_t
*
rx_ind
,
fapi_nr_rx_indication_t
*
rx_ind
,
const
UE_nr_rxtx_proc_t
*
proc
,
const
UE_nr_rxtx_proc_t
*
proc
,
PHY_VARS_NR_UE
*
ue
,
const
PHY_VARS_NR_UE
*
ue
,
void
*
phy_data
)
void
*
phy_data
)
{
{
}
}
...
...
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