default_CONFIG += CONFIG_RESOURCE_FPGA=y
-default_CONFIG += CONFIG_FPGA_COPROCESSORS=FRES_FPGA_CORRELATOR508_m
+default_CONFIG += CONFIG_FPGA_CORES=FRES_FPGA_CORRELATOR508_m
ifeq ($(CONFIG_RESOURCE_FPGA),y)
LOCAL_CONFIG_H = fpga_config.h
* State of the FPGA
*/
struct fpga_state {
- fres_coprocessors_t coprocessors; /**< Currently loaded coprocessors */
+ fres_cores_t cores; /**< Currently loaded cores */
};
int admission_test(struct fres_sa_scenario *scenario, void *priv, bool *schedulable)
fpga = fres_contract_get_fpga(c->contract);
if (fpga) {
- fres_coprocessors_t req = fpga->coprocessors;
- fres_coprocessors_t cur = data->coprocessors;
+ fres_cores_t req = fpga->cores;
+ fres_cores_t cur = data->cores;
if ((req & ~cur) != 0) *schedulable = false;
else *schedulable = true;
} else {
struct fpga_state fpga_state = {
/* Currently only static FPGA configuration specified at
* compile type is supported. */
- .coprocessors = CONFIG_FPGA_COPROCESSORS,
+ .cores = CONFIG_FPGA_CORES,
};
static const struct fres_res_manager frm = {
/* Define fres_contract_(add|get|del)_fpga. */
FRES_CONTRACT_ACCESSOR(fpga);
-/* Available FPGA coprocessors */
+/* Available FPGA cores */
#define FRES_FPGA_TIMESTAMP_b 0
#define FRES_FPGA_CORRELATOR508_b 1
* @brief Contract data block for FPGA resource
*/
module fres {
- typedef unsigned long long coprocessors_t;
+ typedef unsigned long long cores_t;
module block {
struct fpga {
- coprocessors_t coprocessors;
+ cores_t cores;
};
};
};