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
canghaiwuhen
OpenXG-RAN
Commits
cef6d0af
Commit
cef6d0af
authored
Oct 02, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input all the MAC parameters, prepare for the next step function integration
parent
b8a38a2d
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
549 additions
and
1047 deletions
+549
-1047
openair1/PHY/extern_NB_IoT.h
openair1/PHY/extern_NB_IoT.h
+1
-1
openair2/LAYER2/MAC/defs_NB_IoT.h
openair2/LAYER2/MAC/defs_NB_IoT.h
+534
-680
openair2/LAYER2/MAC/extern_NB_IoT.h
openair2/LAYER2/MAC/extern_NB_IoT.h
+1
-36
openair2/LAYER2/MAC/main_NB_IoT.c
openair2/LAYER2/MAC/main_NB_IoT.c
+1
-1
openair2/LAYER2/MAC/vars_NB_IoT.h
openair2/LAYER2/MAC/vars_NB_IoT.h
+1
-17
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
+4
-3
openair2/PHY_INTERFACE/defs_NB_IoT.h
openair2/PHY_INTERFACE/defs_NB_IoT.h
+0
-302
openair2/RRC/LITE/L2_interface_NB_IoT.c
openair2/RRC/LITE/L2_interface_NB_IoT.c
+2
-2
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+2
-1
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+3
-4
No files found.
openair1/PHY/extern_NB_IoT.h
View file @
cef6d0af
...
...
@@ -55,7 +55,7 @@ extern PHY_VARS_eNB_NB_IoT * PHY_vars_eNB_NB_IoT_g[MAX_eNB_NB_IoT][MAX_NUM_CCs];
#endif
extern
MAC_xface_NB_IoT
*
mac_xface_NB_IoT
;
//
extern MAC_xface_NB_IoT *mac_xface_NB_IoT;
extern
IF_Module_t
*
if_inst
;
/*
...
...
openair2/LAYER2/MAC/defs_NB_IoT.h
View file @
cef6d0af
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/extern_NB_IoT.h
View file @
cef6d0af
...
...
@@ -45,15 +45,12 @@
#include "openair2/PHY_INTERFACE/defs_NB_IoT.h"
//#include "RRC/LITE/defs_NB_IoT.h"
//#ifdef NB_IOT
#include "LAYER2/MAC/defs_NB_IoT.h"
//NB-IoT
extern
IF_Module_t
*
if_inst
;
extern
eNB_MAC_INST_NB_IoT
*
eNB_mac_inst_NB_IoT
;
//#endif
extern
const
uint32_t
BSR_TABLE_NB_IoT
[
BSR_TABLE_SIZE_NB_IoT
];
// //extern uint32_t EBSR_Level[63];
// extern const uint32_t Extended_BSR_TABLE[BSR_TABLE_SIZE];
// //extern uint32_t Extended_BSR_TABLE[63]; ----currently not used
...
...
@@ -73,13 +70,8 @@ extern const uint32_t BSR_TABLE_NB_IoT[BSR_TABLE_SIZE_NB_IoT];
// extern uint8_t Is_rrc_registered;
extern
eNB_ULSCH_INFO_NB_IoT
eNB_ulsch_info_NB_IoT
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX_NB_IoT
];
// eNBxUE = 8x8
extern
eNB_DLSCH_INFO_NB_IoT
eNB_dlsch_info_NB_IoT
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX_NB_IoT
];
// eNBxUE = 8x8
//#ifndef USER_MODE
extern
MAC_xface_NB_IoT
*
mac_xface_NB_IoT
;
// extern RRC_XFACE *Rrc_xface; //// to uncomment when it is used
extern
uint8_t
Is_rrc_registered
;
...
...
@@ -100,33 +92,6 @@ extern EMULATION_VARS *Emul_vars;
#endif //PHY_EMUL
// extern int cqi_to_mcs[16];
// extern uint32_t RRC_CONNECTION_FLAG;
// extern uint8_t rb_table[33];
// extern DCI0_5MHz_TDD_1_6_t UL_alloc_pdu;
extern
DCI1A_5MHz_TDD_1_6_t
RA_alloc_pdu
;
extern
DCI1A_5MHz_TDD_1_6_t
DLSCH_alloc_pdu1A
;
// extern DCI1A_5MHz_TDD_1_6_t BCCH_alloc_pdu;
// extern DCI1A_5MHz_TDD_1_6_t CCCH_alloc_pdu;
// extern DCI1_5MHz_TDD_t DLSCH_alloc_pdu;
// extern DCI0_5MHz_FDD_t UL_alloc_pdu_fdd;
// extern DCI1A_5MHz_FDD_t DLSCH_alloc_pdu1A_fdd;
// extern DCI1A_5MHz_FDD_t RA_alloc_pdu_fdd;
// extern DCI1A_5MHz_FDD_t BCCH_alloc_pdu_fdd;
// extern DCI1A_5MHz_FDD_t CCCH_alloc_pdu_fdd;
// extern DCI1_5MHz_FDD_t DLSCH_alloc_pdu_fdd;
// extern DCI2_5MHz_2A_TDD_t DLSCH_alloc_pdu1;
// extern DCI2_5MHz_2A_TDD_t DLSCH_alloc_pdu2;
// extern DCI1E_5MHz_2A_M10PRB_TDD_t DLSCH_alloc_pdu1E;
//NB-IoT---------------------------------
...
...
openair2/LAYER2/MAC/main_NB_IoT.c
View file @
cef6d0af
...
...
@@ -34,6 +34,7 @@
#include "LAYER2/MAC/defs_NB_IoT.h"
#include "LAYER2/MAC/proto_NB_IoT.h"
#include "LAYER2/MAC/extern_NB_IoT.h"
#include "vars_NB_IoT.h"
#include "RRC/LITE/proto_NB_IoT.h"
int
mac_init_global_param_NB_IoT
(
void
)
...
...
@@ -67,7 +68,6 @@ int mac_top_init_NB_IoT()
int
l2_init_eNB_NB_IoT
()
{
LOG_I
(
MAC
,
"[MAIN] Mapping L2 IF-Module functions
\n
"
);
IF_Module_init_L2
();
...
...
openair2/LAYER2/MAC/vars_NB_IoT.h
View file @
cef6d0af
...
...
@@ -41,24 +41,8 @@
//#include "PHY_INTERFACE/defs.h"
//#include "COMMON/mac_rrc_primitives.h"
#ifdef NB_IOT
//NB-IoT
eNB_MAC_INST_NB_IoT
*
eNB_mac_inst_NB_IoT
;
IF_Module_t
*
if_inst
;
#endif
const
uint32_t
BSR_TABLE_NB_IoT
[
BSR_TABLE_SIZE_NB_IoT
]
=
{
0
,
10
,
12
,
14
,
17
,
19
,
22
,
26
,
31
,
36
,
42
,
49
,
57
,
67
,
78
,
91
,
105
,
125
,
146
,
171
,
200
,
234
,
274
,
321
,
376
,
440
,
515
,
603
,
706
,
826
,
967
,
1132
,
1326
,
1552
,
1817
,
2127
,
2490
,
2915
,
3413
,
3995
,
4677
,
5467
,
6411
,
7505
,
8787
,
10287
,
12043
,
14099
,
16507
,
19325
,
22624
,
26487
,
31009
,
36304
,
42502
,
49759
,
58255
,
68201
,
79846
,
93479
,
109439
,
128125
,
150000
,
300000
};
eNB_ULSCH_INFO_NB_IoT
eNB_ulsch_info_NB_IoT
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX_NB_IoT
];
// eNBxUE = 8x8
eNB_DLSCH_INFO_NB_IoT
eNB_dlsch_info_NB_IoT
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX_NB_IoT
];
// eNBxUE = 8x8
MAC_xface_NB_IoT
*
mac_xface_NB_IoT
;
IF_Module_t
*
if_inst
;
//NB-IoT--------------------------------------
eNB_MAC_INST_NB_IoT
*
eNB_mac_inst_NB_IoT
;
...
...
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
View file @
cef6d0af
...
...
@@ -10,6 +10,7 @@ void UL_indication(UL_IND_t *UL_INFO)
{
for
(
i
=
0
;
i
<
UL_INFO
->
NRACH
.
number_of_initial_scs_detected
;
i
++
)
{
/*
initiate_ra_proc_NB_IoT(UL_INFO->module_id,
UL_INFO->CC_id,
UL_INFO->frame,
...
...
@@ -17,7 +18,7 @@ void UL_indication(UL_IND_t *UL_INFO)
//timing_offset = Timing_advance * 16
(UL_INFO->NRACH.nrach_pdu_list+i)->nrach_indication_rel13.timing_advance * 16,
UL_INFO->subframe
);
);
*/
}
}
if
(
UL_INFO
->
RX_NPUSCH
.
number_of_pdus
>
0
)
...
...
@@ -25,7 +26,7 @@ void UL_indication(UL_IND_t *UL_INFO)
/*If there is a Uplink SDU (even MSG3, NAK) need to send to MAC*/
for
(
i
=
0
;
i
<
UL_INFO
->
RX_NPUSCH
.
number_of_pdus
;
i
++
)
{
/*For MSG3, Normal Uplink Data, NAK
*/
/*For MSG3, Normal Uplink Data, NAK
rx_sdu_NB_IoT(UL_INFO->module_id,
UL_INFO->CC_id,
UL_INFO->frame,
...
...
@@ -34,7 +35,7 @@ void UL_indication(UL_IND_t *UL_INFO)
(UL_INFO->RX_NPUSCH.rx_pdu_list+i)->data,
(UL_INFO->RX_NPUSCH.rx_pdu_list+i)->rx_indication_rel8.length,
(UL_INFO->RX_NPUSCH.rx_pdu_list+i)->rx_ue_information.harq_pid
);
);
*/
}
...
...
openair2/PHY_INTERFACE/defs_NB_IoT.h
View file @
cef6d0af
This diff is collapsed.
Click to expand it.
openair2/RRC/LITE/L2_interface_NB_IoT.c
View file @
cef6d0af
...
...
@@ -704,9 +704,9 @@ int rrc_mac_config_req_eNB_NB_IoT(
}
//Now trigger the phy_config_xxx for configuring PHY through the PHY_config_req
/*
AssertFatal(if_inst->PHY_config_req != NULL, "rrc_mac_config_req_eNB_NB_IoT: PHY_config_req pointer function is NULL\n");
AssertFatal
(
if_inst
->
PHY_config_req
!=
NULL
,
"rrc_mac_config_req_eNB_NB_IoT: PHY_config_req pointer function is NULL
\n
"
);
if
(
if_inst
->
PHY_config_req
)
if_inst->PHY_config_req(config_INFO);
*/
if_inst
->
PHY_config_req
(
config_INFO
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_RRC_MAC_CONFIG
,
VCD_FUNCTION_OUT
);
...
...
targets/RT/USER/lte-enb.c
View file @
cef6d0af
...
...
@@ -75,6 +75,7 @@
#include "PHY/defs_NB_IoT.h"
#include "SCHED/defs_NB_IoT.h"
#include "PHY_INTERFACE/IF_Module_NB_IoT.h"
#include "LAYER2/MAC/extern_NB_IoT.h"
#include "PHY/extern_NB_IoT.h"
#include "LAYER2/MAC/defs.h"
#include "LAYER2/MAC/extern.h"
...
...
@@ -614,7 +615,7 @@ static inline int rxtx_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,eNB_rxtx_proc_NB_IoT_t *p
* (on its turn the scheduler will trigger the phy_procedure_eNB_TX through schedule_responce function
*/
//
if(if_inst->UL_indication) if_inst->UL_indication(UL_INFO);
if
(
if_inst
->
UL_indication
)
if_inst
->
UL_indication
(
UL_INFO
);
if
(
oai_exit
)
return
(
-
1
);
...
...
targets/RT/USER/lte-softmodem.c
View file @
cef6d0af
...
...
@@ -1811,10 +1811,10 @@ int main( int argc, char **argv ) {
if
(
node_function
[
0
]
<=
NGFI_RAU_IF4p5
)
{
// don't initialize L2 for RRU
// MP, Nick: Initialization of IF module for NB-IoT should be here
#ifdef NB_IOT
if_inst
=
malloc
(
sizeof
(
IF_Module_t
));
LOG_I
(
PHY
,
"Allocate IF-Module for NB-IoT
\n
"
);
#endif
//---------------------------
LOG_I
(
PHY
,
"Intializing L2
\n
"
);
...
...
@@ -1825,9 +1825,8 @@ int main( int argc, char **argv ) {
0
);
// HO flag
//initialize L2 for NB-IoT stuff (complementary to legacy OAI initialization)
#ifdef NB_IOT
l2_init_eNB_NB_IoT
();
#endif
mac_xface
->
macphy_exit
=
&
exit_fun
;
...
...
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