O-RAN E Maintenance Release contribution for ODULOW
[o-du/phy.git] / fhi_lib / lib / src / xran_rx_proc.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2020 Intel.
4 *
5 *   Licensed under the Apache License, Version 2.0 (the "License");
6 *   you may not use this file except in compliance with the License.
7 *   You may obtain a copy of the License at
8 *
9 *       http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *   Unless required by applicable law or agreed to in writing, software
12 *   distributed under the License is distributed on an "AS IS" BASIS,
13 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *   See the License for the specific language governing permissions and
15 *   limitations under the License.
16 *
17 *******************************************************************************/
18
19 /**
20  * @brief XRAN RX header file
21  * @file xran_rx.h
22  * @ingroup group_source_xran
23  * @author Intel Corporation
24  **/
25
26 #ifndef _XRAN_RX_PROC_H_
27 #define _XRAN_RX_PROC_H_
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #include <stdio.h>
34 #include <unistd.h>
35 #include <sys/param.h>
36 #include <sys/queue.h>
37
38 #include <rte_common.h>
39 #include <rte_mbuf.h>
40 #include <rte_timer.h>
41
42 #include "xran_fh_o_du.h"
43 #include "xran_prach_cfg.h"
44 #include "xran_up_api.h"
45
46
47 int32_t xran_process_rx_sym(void *arg,
48                         struct rte_mbuf *mbuf,
49                         void *iq_data_start,
50                         uint16_t size,
51                         uint8_t CC_ID,
52                         uint8_t Ant_ID,
53                         uint8_t frame_id,
54                         uint8_t subframe_id,
55                         uint8_t slot_id,
56                         uint8_t symb_id,
57                         uint16_t num_prbu,
58                         uint16_t start_prbu,
59                         uint16_t sym_inc,
60                         uint16_t rb,
61                         uint16_t sect_id,
62                         uint32_t *mb_free,
63                         int8_t   expect_comp,
64                         uint8_t compMeth,
65                         uint8_t iqWidth);
66
67 int32_t xran_process_prach_sym(void *arg,
68                         struct rte_mbuf *mbuf,
69                         void *iq_data_start,
70                         uint16_t size,
71                         uint8_t CC_ID,
72                         uint8_t Ant_ID,
73                         uint8_t frame_id,
74                         uint8_t subframe_id,
75                         uint8_t slot_id,
76                         uint8_t symb_id,
77                         uint16_t num_prbu,
78                         uint16_t start_prbu,
79                         uint16_t sym_inc,
80                         uint16_t rb,
81                         uint16_t sect_id,
82                         uint32_t *mb_free);
83
84 int32_t xran_process_srs_sym(void *arg,
85                         struct rte_mbuf *mbuf,
86                         void *iq_data_start,
87                         uint16_t size,
88                         uint8_t CC_ID,
89                         uint8_t Ant_ID,
90                         uint8_t frame_id,
91                         uint8_t subframe_id,
92                         uint8_t slot_id,
93                         uint8_t symb_id,
94                         uint16_t num_prbu,
95                         uint16_t start_prbu,
96                         uint16_t sym_inc,
97                         uint16_t rb,
98                         uint16_t sect_id,
99                         uint32_t *mb_free,
100                         int8_t  expect_comp,
101                         uint8_t compMeth,
102                         uint8_t iqWidth);
103
104 #ifdef __cplusplus
105 }
106 #endif
107
108 #endif /* _XRAN_TX_PROC_H_ */