X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fsource%2Fapi%2Ffapi2phy%2Fnr5g_fapi_fapi2phy_api.h;fp=fapi_5g%2Fsource%2Fapi%2Ffapi2phy%2Fnr5g_fapi_fapi2phy_api.h;h=42ef246e87f17b3b8e2b60e5b9bb34e6336d7e2e;hp=0000000000000000000000000000000000000000;hb=9d66fca5c45c8b3e0d6eab6d51a90c8e9d2614dc;hpb=2fbf70096f64af622da983e88c5a64e90ad9bdbd diff --git a/fapi_5g/source/api/fapi2phy/nr5g_fapi_fapi2phy_api.h b/fapi_5g/source/api/fapi2phy/nr5g_fapi_fapi2phy_api.h new file mode 100644 index 0000000..42ef246 --- /dev/null +++ b/fapi_5g/source/api/fapi2phy/nr5g_fapi_fapi2phy_api.h @@ -0,0 +1,56 @@ +/****************************************************************************** +* +* Copyright (c) 2019 Intel. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*******************************************************************************/ + +/** + * @file This file defines all the functions used to send APIs + * from FAPI to PHY + * + **/ + +#ifndef NR5G_FAPI_FAPI2PHY_API_H +#define NR5G_FAPI_FAPI2PHY_API_H + +#include "gnb_l1_l2_api.h" + +typedef struct _nr5g_fapi_fapi2phy_queue { + PMAC2PHY_QUEUE_EL p_send_list_head; // list head to, send to PHY + PMAC2PHY_QUEUE_EL p_send_list_tail; // list tail to, send to PHY + PMAC2PHY_QUEUE_EL p_recv_list_head; // list head received from PHY + PMAC2PHY_QUEUE_EL p_recv_list_tail; // list tail received from PHY +} nr5g_fapi_fapi2phy_queue_t, +*p_nr5g_fapi_fapi2phy_queue_t; + +// Function definitions +// ----------------------------------------------------------------------------- +PMAC2PHY_QUEUE_EL nr5g_fapi_fapi2phy_create_api_list_elem( + uint32_t msg_type, + uint16_t num_message_in_block, + uint32_t align_offset); + +void nr5g_fapi_fapi2phy_add_to_api_list( + PMAC2PHY_QUEUE_EL p_list_elem); + +void nr5g_fapi_fapi2phy_send_api_list( + ); + +void nr5g_fapi_fapi2phy_add_to_free_list( + PMAC2PHY_QUEUE_EL p_list_elem); + +void nr5g_fapi_fapi2phy_destroy_api_list_elem( + PMAC2PHY_QUEUE_EL p_list_elem); +#endif