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
lizhongxiao
OpenXG-RAN
Commits
2089d3e9
Commit
2089d3e9
authored
Nov 07, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variables (as flagged by gcc)
parent
14318639
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
64 deletions
+0
-64
radio/ETHERNET/oran/5g/app_io_fh_xran-E.c
radio/ETHERNET/oran/5g/app_io_fh_xran-E.c
+0
-37
radio/ETHERNET/oran/5g/config-E.c
radio/ETHERNET/oran/5g/config-E.c
+0
-4
radio/ETHERNET/oran/5g/oaioran.c
radio/ETHERNET/oran/5g/oaioran.c
+0
-2
radio/ETHERNET/oran/5g/oran_isolate.c
radio/ETHERNET/oran/5g/oran_isolate.c
+0
-8
radio/ETHERNET/oran/5g/sample-app-E.c
radio/ETHERNET/oran/5g/sample-app-E.c
+0
-13
No files found.
radio/ETHERNET/oran/5g/app_io_fh_xran-E.c
View file @
2089d3e9
...
...
@@ -93,8 +93,6 @@ app_io_xran_if_ctrl_get(uint32_t o_xu_id)
void
app_io_xran_fh_rx_callback
(
void
*
pCallbackTag
,
xran_status_t
status
)
{
uint8_t
Numerlogy
=
app_io_xran_fh_config
[
0
].
frame_conf
.
nNumerology
;
uint8_t
nNrOfSlotInSf
=
1
<<
Numerlogy
;
int32_t
nCellIdx
;
int32_t
sym
,
nSlotIdx
;
struct
xran_cb_tag
*
pTag
=
(
struct
xran_cb_tag
*
)
pCallbackTag
;
...
...
@@ -161,8 +159,6 @@ app_io_xran_interface(uint32_t o_xu_id, RuntimeConfig *p_o_xu_cfg, UsecaseConfig
void
*
ptr
;
void
*
mb
;
uint32_t
*
u32dptr
;
uint16_t
*
u16dptr
;
uint8_t
*
u8dptr
;
uint32_t
xran_max_antenna_nr
=
RTE_MAX
(
p_o_xu_cfg
->
numAxc
,
p_o_xu_cfg
->
numUlAxc
);
uint32_t
xran_max_ant_array_elm_nr
=
RTE_MAX
(
p_o_xu_cfg
->
antElmTRx
,
xran_max_antenna_nr
);
uint32_t
xran_max_sections_per_slot
=
RTE_MAX
(
p_o_xu_cfg
->
max_sections_per_slot
,
XRAN_MIN_SECTIONS_PER_SLOT
);
...
...
@@ -401,12 +397,7 @@ app_io_xran_interface(uint32_t o_xu_id, RuntimeConfig *p_o_xu_cfg, UsecaseConfig
psIoCtrl
->
sFrontHaulRxBbuIoBufCtrl
[
j
][
i
][
z
].
sBufferList
.
pBuffers
[
k
].
pCtrl
=
(
void
*
)
mb
;
if
(
ptr
){
u32dptr
=
(
uint32_t
*
)(
ptr
);
uint8_t
*
ptr_temp
=
(
uint8_t
*
)
ptr
;
memset
(
u32dptr
,
0x0
,
nFpgaToSW_FTH_RxBufferLen
);
// ptr_temp[0] = j; // TTI
// ptr_temp[1] = i; // Sec
// ptr_temp[2] = z; // Ant
// ptr_temp[3] = k; // sym
}
}
}
...
...
@@ -876,10 +867,7 @@ app_io_xran_iq_content_init_cp_rx(uint8_t appMode, struct xran_fh_config *pXra
struct
bbu_xran_io_if
*
psBbuIo
,
struct
xran_io_shared_ctrl
*
psIoCtrl
,
struct
o_xu_buffers
*
p_iq
,
int32_t
cc_id
,
int32_t
ant_id
,
int32_t
sym_id
,
int32_t
tti
,
int32_t
flowId
)
{
int32_t
status
=
0
;
struct
xran_prb_map
*
pRbMap
=
NULL
;
char
*
pos
=
NULL
;
void
*
ptr
=
NULL
;
pRbMap
=
(
struct
xran_prb_map
*
)
psIoCtrl
->
sFrontHaulRxPrbMapBbuIoBufCtrl
[
tti
][
cc_id
][
ant_id
].
sBufferList
.
pBuffers
->
pData
;
if
(
pRbMap
)
{
...
...
@@ -904,9 +892,7 @@ app_io_xran_iq_content_init_cp_rx(uint8_t appMode, struct xran_fh_config *pXra
int16_t
ext_sec_total
=
0
;
int8_t
*
ext_buf
=
(
int8_t
*
)
xran_malloc
(
ext_len
);
int8_t
*
ext_buf_start
=
ext_buf
;
int32_t
idRb
=
0
;
int16_t
*
ptr
=
NULL
;
int32_t
i
;
if
(
ext_buf
)
{
ext_buf
+=
(
RTE_PKTMBUF_HEADROOM
+
sizeof
(
struct
xran_ecpri_hdr
)
+
...
...
@@ -1213,25 +1199,12 @@ app_io_xran_iq_content_init(uint32_t o_xu_id, RuntimeConfig *p_o_xu_cfg)
int32_t
cc_id
,
ant_id
,
sym_id
,
tti
;
int32_t
flowId
;
uint8_t
frame_id
=
0
;
uint8_t
subframe_id
=
0
;
uint8_t
slot_id
=
0
;
uint8_t
sym
=
0
;
void
*
ptr
;
uint32_t
*
u32dptr
;
uint16_t
*
u16dptr
;
uint8_t
*
u8dptr
;
struct
xran_fh_config
*
pXranConf
=
&
app_io_xran_fh_config
[
o_xu_id
];
struct
xran_fh_init
*
pXranInit
=
&
app_io_xran_fh_init
;
struct
o_xu_buffers
*
p_iq
=
NULL
;
uint32_t
xran_max_antenna_nr
=
RTE_MAX
(
p_o_xu_cfg
->
numAxc
,
p_o_xu_cfg
->
numUlAxc
);
uint32_t
xran_max_ant_array_elm_nr
=
RTE_MAX
(
p_o_xu_cfg
->
antElmTRx
,
xran_max_antenna_nr
);
char
*
pos
=
NULL
;
struct
xran_prb_map
*
pRbMap
=
NULL
;
if
(
psBbuIo
==
NULL
){
rte_panic
(
"psBbuIo == NULL
\n
"
);
...
...
@@ -1318,7 +1291,6 @@ app_io_xran_iq_content_init(uint32_t o_xu_id, RuntimeConfig *p_o_xu_cfg)
void
app_io_xran_if_stop
(
void
)
{
xran_status_t
status
=
0
;
SWXRANInterfaceTypeEnum
eInterfaceType
;
status
+=
xran_mm_destroy
(
app_io_xran_handle
)
*
2
;
...
...
@@ -1333,22 +1305,13 @@ app_io_xran_iq_content_get(uint32_t o_xu_id, RuntimeConfig *p_o_xu_cfg)
{
struct
bbu_xran_io_if
*
psBbuIo
=
app_io_xran_if_get
();
struct
xran_io_shared_ctrl
*
psIoCtrl
=
app_io_xran_if_ctrl_get
(
o_xu_id
);
xran_status_t
status
;
int32_t
nSectorIndex
[
XRAN_MAX_SECTOR_NR
];
int32_t
nSectorNum
;
int32_t
cc_id
,
ant_id
,
sym_id
,
tti
;
int32_t
flowId
;
uint8_t
frame_id
=
0
;
uint8_t
subframe_id
=
0
;
uint8_t
slot_id
=
0
;
uint8_t
sym
=
0
;
uint16_t
idxDesc
=
0
;
void
*
ptr
;
uint32_t
*
u32dptr
;
uint16_t
*
u16dptr
;
uint8_t
*
u8dptr
;
struct
xran_fh_config
*
pXranConf
=
&
app_io_xran_fh_config
[
o_xu_id
];
...
...
radio/ETHERNET/oran/5g/config-E.c
View file @
2089d3e9
...
...
@@ -217,7 +217,6 @@ static void trim(char* input)
static
int
fillConfigStruct
(
RuntimeConfig
*
config
,
const
char
*
key
,
const
char
*
value
)
{
int32_t
parse_res
=
0
;
static
uint32_t
section_idx_dl
=
0
;
static
uint32_t
section_idx_ul
=
0
;
static
uint32_t
section_idx_srs
=
0
;
...
...
@@ -732,7 +731,6 @@ static int fillConfigStruct(RuntimeConfig *config, const char *key, const char *
static
int
fillUsecaseStruct
(
UsecaseConfig
*
config
,
const
char
*
key
,
const
char
*
value
)
{
int32_t
parse_res
=
0
;
if
(
strcmp
(
key
,
KEY_APP_MODE
)
==
0
){
config
->
appMode
=
atoi
(
value
);
printf
(
"appMode %d
\n
"
,
config
->
appMode
);
...
...
@@ -1141,8 +1139,6 @@ parseSlotConfigFile(char *dir, RuntimeConfig *config)
char
filename
[
512
];
size_t
len
;
int32_t
slot_idx
=
0
;
int32_t
cc_idx
=
0
;
int32_t
ant_idx
=
0
;
int32_t
direction
=
0
;
struct
slot_cfg_to_pars
slot_cfg_param
;
...
...
radio/ETHERNET/oran/5g/oaioran.c
View file @
2089d3e9
...
...
@@ -146,8 +146,6 @@ int oai_physide_ul_full_slot_call_back(void * param)
int
read_prach_data
(
ru_info_t
*
ru
,
int
frame
,
int
slot
)
{
struct
rte_mbuf
*
mb
;
/* calculate tti and subframe_id from frame, slot num */
int
tti
=
20
*
(
frame
)
+
(
slot
);
uint32_t
subframe
=
XranGetSubFrameNum
(
tti
,
2
,
10
);
...
...
radio/ETHERNET/oran/5g/oran_isolate.c
View file @
2089d3e9
...
...
@@ -207,10 +207,6 @@ void oran_fh_if4p5_south_in(RU_t *ru,
int
*
frame
,
int
*
slot
)
{
oran_eth_state_t
*
s
=
ru
->
ifdevice
.
priv
;
int
symbol
;
int32_t
*
rxdata
;
int
antenna
;
static
uint8_t
sync
=
0
;
ru_info_t
ru_info
;
...
...
@@ -261,8 +257,6 @@ void oran_fh_if4p5_south_out(RU_t *ru,
int
slot
,
uint64_t
timestamp
)
{
openair0_device
*
device
=
&
ru
->
ifdevice
;
oran_eth_state_t
*
s
=
device
->
priv
;
start_meas
(
&
ru
->
tx_fhaul
);
ru_info_t
ru_info
;
ru_info
.
nb_tx
=
ru
->
nb_tx
;
...
...
@@ -351,8 +345,6 @@ int transport_init(openair0_device *device,
eth
->
last_msg
=
(
rru_config_msg_type_t
)
-
1
;
oran_eth_state_t
*
s
=
eth
;
printf
(
"ORAN: %s
\n
"
,
__FUNCTION__
);
// Check if the machine is PTP sync
...
...
radio/ETHERNET/oran/5g/sample-app-E.c
View file @
2089d3e9
...
...
@@ -220,7 +220,6 @@ app_help(void)
static
int32_t
app_parse_cmdline_args
(
int
argc
,
char
**
argv
,
struct
sample_app_params
*
params
)
{
int32_t
ret
=
0
;
int32_t
c
=
0
;
int32_t
vf_cnt
=
0
;
int32_t
*
pInt
;
...
...
@@ -463,7 +462,6 @@ app_setup_o_xu_buffers(UsecaseConfig* p_use_cfg, RuntimeConfig* p_o_xu_cfg, str
int32_t
ret
=
0
;
int32_t
i
=
0
;
int32_t
j
=
0
;
char
filename
[
256
];
struct
o_xu_buffers
*
p_iq
=
NULL
;
if
(
p_o_xu_cfg
->
p_buff
)
{
...
...
@@ -862,23 +860,12 @@ app_alloc_all_cfgs(void)
int
*
oai_main
(
int
argc
,
char
*
argv
[])
{
int
i
;
int
j
,
len
;
int32_t
o_xu_id
=
0
;
int
lcore_id
=
0
;
char
filename
[
256
];
int32_t
xret
=
0
;
struct
stat
st
=
{
0
};
uint32_t
filenameLength
=
strlen
(
argv
[
1
]);
enum
xran_if_state
xran_curr_if_state
=
XRAN_INIT
;
struct
sample_app_params
arg_params
;
uint64_t
nTotalTime
;
uint64_t
nUsedTime
;
uint32_t
nCoresUsed
;
uint32_t
nCoreUsedNum
[
64
];
float
nUsedPercent
;
app_version_print
();
app_timer_set_tsc_freq_from_clock
();
...
...
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