1 /******************************************************************************
3 * Copyright (c) 2019 Intel.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 *******************************************************************************/
20 * @file This file defines all the functions used to send APIs
25 #ifndef NR5G_FAPI_FAPI2MAC_API_H
26 #define NR5G_FAPI_FAPI2MAC_API_H
28 #include "fapi_vendor_extension.h"
29 #include "nr5g_fapi_std.h"
31 typedef struct _nr5g_fapi_fapi2mac_queue {
32 volatile pthread_mutex_t lock;
33 volatile p_fapi_api_queue_elem_t p_send_list_head; // list head to, send to MAC
34 volatile p_fapi_api_queue_elem_t p_send_list_tail; // list tail to, send to MAC
35 } nr5g_fapi_fapi2mac_queue_t,
36 *p_nr5g_fapi_fapi2mac_queue_t;
38 // Function definitions
39 // -----------------------------------------------------------------------------
40 p_fapi_api_queue_elem_t nr5g_fapi_fapi2mac_create_api_list_elem(
42 uint16_t num_message_in_block,
43 uint32_t align_offset);
45 void nr5g_fapi_fapi2mac_send_api_list(
48 void nr5g_fapi_fapi2mac_add_api_to_list(
50 p_fapi_api_queue_elem_t p_list_elem,
53 void nr5g_fapi_fapi2mac_init_api_list(