* INTC Contribution to the O-RAN F Release for O-DU Low
[o-du/phy.git] / fapi_5g / source / api / fapi2mac / p7 / nr5g_fapi_fapi2mac_p7_pvt_proc.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2021 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  * @file
21  * This file consist of macros, structures and prototypes of all FAPI
22  * to PHY P7 messages
23  *
24  **/
25
26 #ifndef _NR5G_FAPI_FAP2MAC_P7_PVT_PROC_H_
27 #define _NR5G_FAPI_FAP2MAC_P7_PVT_PROC_H_
28
29 uint8_t nr5g_fapi_rach_indication_to_fapi_translation(
30     bool is_urllc,
31     p_nr5g_fapi_phy_instance_t p_phy_instance,
32     PRXRACHIndicationStruct p_phy_rach_ind,
33     fapi_rach_indication_t * p_fapi_rach_ind);
34
35 uint8_t nr5g_fapi_crc_indication_to_fapi_translation(
36     bool is_urllc,
37     p_nr5g_fapi_phy_instance_t p_phy_instance,
38     PCRCIndicationStruct p_phy_crc_ind,
39     fapi_crc_ind_t * p_fapi_crc_ind,
40     fapi_vendor_ext_snr_t * p_fapi_snr);
41
42 uint8_t nr5g_fapi_rx_data_indication_to_fapi_translation(
43     bool is_urllc,
44     p_nr5g_fapi_phy_instance_t p_phy_instance,
45     PRXULSCHIndicationStruct p_phy_rx_ulsch_ind,
46     fapi_rx_data_indication_t * p_fapi_rx_data_ind);
47
48 uint8_t nr5g_fapi_rx_data_uci_indication_to_fapi_translation(
49     p_nr5g_fapi_phy_instance_t p_phy_instance,
50     PRXULSCHUCIIndicationStruct p_phy_rx_ulsch_uci_ind,
51     fapi_uci_indication_t * p_fapi_uci_ind);
52
53 uint8_t nr5g_fapi_uci_indication_to_fapi_translation(
54     bool is_urllc,
55     p_nr5g_fapi_phy_instance_t p_phy_instance,
56     PRXUCIIndicationStruct p_phy_uci_ind,
57     fapi_uci_indication_t * p_fapi_uci_ind,
58     fapi_vendor_ext_snr_t * p_fapi_snr);
59
60 uint8_t nr5g_fapi_srs_indication_to_fapi_translation(
61     bool is_urllc,
62     p_nr5g_fapi_phy_instance_t p_phy_instance,
63     PRXSRSIndicationStruct p_phy_srs_ind,
64     fapi_srs_indication_t * p_fapi_srs_ind,
65     fapi_vendor_ext_srs_ind_t * p_fapi_vend_srs_ind);
66
67 nr5g_fapi_pusch_info_t *nr5g_fapi_get_pusch_info(
68     uint16_t ue_id,
69     nr5g_fapi_ul_slot_info_t * p_ul_slot_info);
70
71 nr5g_fapi_srs_info_t *nr5g_fapi_get_srs_info(
72     uint16_t nUEId,
73     nr5g_fapi_ul_slot_info_t * p_ul_slot_info);
74
75 #endif                          //_NR5G_FAPI_FAP2MAC_P7_PVT_PROC_H_