- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
67 lines
1.9 KiB
C
67 lines
1.9 KiB
C
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Copyright 2017 Cisco Systems, Inc.
|
|
*/
|
|
|
|
#ifndef _FAPI_STUB_H_
|
|
#define _FAPI_STUB_H_
|
|
|
|
#include "fapi_interface.h"
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct fapi fapi_t;
|
|
|
|
typedef struct fapi {
|
|
void* user_data;
|
|
} fapi_t;
|
|
|
|
typedef struct {
|
|
int (*fapi_param_response)(fapi_t* fapi, fapi_param_resp_t* resp);
|
|
int (*fapi_config_response)(fapi_t* fapi, fapi_config_resp_t* resp);
|
|
|
|
int (*fapi_subframe_ind)(fapi_t* fapi, fapi_subframe_ind_t* ind);
|
|
|
|
int (*fapi_harq_ind)(fapi_t* fapi, fapi_harq_ind_t* ind);
|
|
int (*fapi_crc_ind)(fapi_t* fapi, fapi_crc_ind_t* ind);
|
|
int (*fapi_rx_ulsch_ind)(fapi_t* fapi, fapi_rx_ulsch_ind_t* ind);
|
|
int (*fapi_rx_cqi_ind)(fapi_t* fapi, fapi_rx_cqi_ind_t* ind);
|
|
int (*fapi_rx_sr_ind)(fapi_t* fapi, fapi_rx_sr_ind_t* ind);
|
|
int (*fapi_rach_ind)(fapi_t* fapi, fapi_rach_ind_t* ind);
|
|
int (*fapi_srs_ind)(fapi_t* fapi, fapi_srs_ind_t* ind);
|
|
|
|
int (*fapi_lbt_dl_ind)(fapi_t* fapi, fapi_lbt_dl_ind_t* ind);
|
|
int (*fapi_nb_harq_ind)(fapi_t* fapi, fapi_nb_harq_ind_t* ind);
|
|
int (*fapi_nrach_ind)(fapi_t* fapi, fapi_nrach_ind_t* ind);
|
|
|
|
} fapi_cb_t;
|
|
|
|
typedef struct {
|
|
|
|
uint16_t duplex_mode;
|
|
uint16_t dl_channel_bw_support;
|
|
uint16_t ul_channel_bw_support;
|
|
} fapi_config_t;
|
|
|
|
fapi_t* fapi_create(fapi_cb_t* callbacks, fapi_config_t* config);
|
|
|
|
void fapi_start_data(fapi_t* fapi, unsigned rx_port, const char* tx_address, unsigned tx_port);
|
|
|
|
int fapi_param_request(fapi_t* fapi, fapi_param_req_t* req);
|
|
int fapi_config_request(fapi_t* fapi, fapi_config_req_t* req);
|
|
int fapi_start_request(fapi_t* fapi, fapi_start_req_t* req);
|
|
|
|
int fapi_dl_config_request(fapi_t* fapi, fapi_dl_config_req_t* req);
|
|
int fapi_ul_config_request(fapi_t* fapi, fapi_ul_config_req_t* req);
|
|
int fapi_hi_dci0_request(fapi_t* fapi, fapi_hi_dci0_req_t* req);
|
|
int fapi_tx_request(fapi_t* fapi, fapi_tx_req_t* req);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|