/******************************************************************************
*
-* Copyright (c) 2019 Intel.
+* Copyright (c) 2021 Intel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#ifndef NR5G_FAPI_FAPI2MAC_API_H
#define NR5G_FAPI_FAPI2MAC_API_H
-#include "fapi_interface.h"
+#include "fapi_vendor_extension.h"
+#include "nr5g_fapi_std.h"
typedef struct _nr5g_fapi_fapi2mac_queue {
- p_fapi_api_queue_elem_t p_send_list_head; // list head to, send to MAC
- p_fapi_api_queue_elem_t p_send_list_tail; // list tail to, send to MAC
-} nr5g_fapi_fapi2mac_queue_t, *p_nr5g_fapi_fapi2mac_queue_t;
+ volatile pthread_mutex_t lock;
+ volatile p_fapi_api_queue_elem_t p_send_list_head; // list head to, send to MAC
+ volatile p_fapi_api_queue_elem_t p_send_list_tail; // list tail to, send to MAC
+} nr5g_fapi_fapi2mac_queue_t,
+*p_nr5g_fapi_fapi2mac_queue_t;
// Function definitions
// -----------------------------------------------------------------------------
uint32_t align_offset);
void nr5g_fapi_fapi2mac_send_api_list(
- );
+ bool is_urllc);
void nr5g_fapi_fapi2mac_add_api_to_list(
uint8_t phy_id,
- p_fapi_api_queue_elem_t p_list_elem);
+ p_fapi_api_queue_elem_t p_list_elem,
+ bool is_urllc);
+void nr5g_fapi_fapi2mac_init_api_list(
+ );
#endif