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
23f8ca6d
Commit
23f8ca6d
authored
May 11, 2018
by
tyhsu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threading_push
parent
bc4e26c7
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
739 additions
and
337 deletions
+739
-337
openair1/PHY/defs.h
openair1/PHY/defs.h
+60
-1
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+57
-334
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+622
-2
No files found.
openair1/PHY/defs.h
View file @
23f8ca6d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.
1
(the "License"); you may not use this file
* the OAI Public License, Version 1.
0
(the "License"); you may not use this file
* except in compliance with the License.
* except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
...
@@ -29,6 +29,18 @@
...
@@ -29,6 +29,18 @@
\note
\note
\warning
\warning
*/
*/
/*! \file PHY/defs.h
\brief Based on OAI structure definitions and add structure def. for multi-threads of PHY DL
\author Terng-Yin Hsu, Shao-Ying Yeh (fdragon)
\date 2018
\version 0.1, based on 67df8e0e
\company NCTU
\email: tyhsu@cs.nctu.edu.tw, fdragon.cs96g@g2.nctu.edu.tw
\note
\warning
*/
#ifndef __PHY_DEFS__H__
#ifndef __PHY_DEFS__H__
#define __PHY_DEFS__H__
#define __PHY_DEFS__H__
...
@@ -457,6 +469,36 @@ typedef struct {
...
@@ -457,6 +469,36 @@ typedef struct {
UE_rxtx_proc_t
proc_rxtx
[
RX_NB_TH
];
UE_rxtx_proc_t
proc_rxtx
[
RX_NB_TH
];
}
UE_proc_t
;
}
UE_proc_t
;
// ----------------Part of TX procedure----------------
typedef
struct
{
pthread_t
pthread_m2p
;
pthread_cond_t
cond_tx
;
pthread_mutex_t
mutex_tx
;
pthread_attr_t
attr_m2p
;
//=====//
}
mac2phy
;
typedef
struct
{
pthread_t
pthread_cch
;
pthread_cond_t
cond_tx
;
pthread_mutex_t
mutex_tx
;
pthread_attr_t
attr_cch
;
//=====//
relaying_type_t
r_type
;
int
do_pdcch_flag
;
PHY_VARS_RN
*
rn
;
}
control_channel
;
typedef
struct
{
pthread_t
pthread_tx
;
pthread_cond_t
cond_tx
;
pthread_mutex_t
mutex_tx
;
pthread_attr_t
attr_sch
;
//=====//
int
id
;
}
multi_share_channel
;
// [end] ----------------Part of TX procedure----------------
/// Top-level PHY Data Structure for eNB
/// Top-level PHY Data Structure for eNB
typedef
struct
PHY_VARS_eNB_s
{
typedef
struct
PHY_VARS_eNB_s
{
/// Module ID indicator for this instance
/// Module ID indicator for this instance
...
@@ -683,6 +725,23 @@ typedef struct PHY_VARS_eNB_s {
...
@@ -683,6 +725,23 @@ typedef struct PHY_VARS_eNB_s {
/// Pointer for ifdevice buffer struct
/// Pointer for ifdevice buffer struct
if_buffer_t
ifbuffer
;
if_buffer_t
ifbuffer
;
//---------------- [start] Part of TX procedure----------------
// Thread
mac2phy
thread_m2p
;
control_channel
thread_cch
;
multi_share_channel
thread_g
[
2
];
//Thread 0 for even,
//Thread 1 for odd
//DONE
volatile
uint8_t
complete_m2p
;
volatile
uint8_t
complete_dci
;
volatile
uint8_t
complete_cch
;
volatile
uint8_t
complete_sch_SR
;
volatile
uint8_t
complete_pdsch
[
2
];
//---------------- [end] Part of TX procedure----------------
}
PHY_VARS_eNB
;
}
PHY_VARS_eNB
;
#define debug_msg if (((mac_xface->frame%100) == 0) || (mac_xface->frame < 50)) msg
#define debug_msg if (((mac_xface->frame%100) == 0) || (mac_xface->frame < 50)) msg
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
23f8ca6d
This diff is collapsed.
Click to expand it.
targets/RT/USER/lte-enb.c
View file @
23f8ca6d
This diff is collapsed.
Click to expand it.
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