unsigned int vec_cnt)
{
struct ifpga_hw *hw = binfo->hw;
- struct feature *feature = NULL;
+ struct ifpga_feature *feature = NULL;
struct feature_irq_ctx *ctx = NULL;
int port_id, ret = 0;
unsigned int i;
fid = fid?fid:feature_id(start);
size = size?size:feature_size(start);
- feature = opae_malloc(sizeof(struct feature));
+ feature = opae_malloc(sizeof(struct ifpga_feature));
if (!feature)
return -ENOMEM;
struct opae_bridge *br;
struct opae_accelerator *acc;
struct ifpga_port_hw *port;
- struct feature *feature;
+ struct ifpga_fme_hw *fme;
+ struct ifpga_feature *feature;
if (!binfo->fiu)
return 0;
}
acc->br = br;
+ if (hw->adapter->mgr)
+ acc->mgr = hw->adapter->mgr;
acc->index = br->id;
+ fme = &hw->fme;
+ fme->nums_acc_region = info->num_regions;
+
opae_adapter_add_acc(hw->adapter, acc);
} else if (binfo->current_type == FME_ID) {
{
struct ifpga_fme_hw *fme = &hw->fme;
struct ifpga_port_hw *port;
- struct feature *feature;
+ struct ifpga_feature *feature;
int i;
dev_info(hw, "found fme_device, is in PF: %s\n",