raw/ifpga/base: store private features in FME and port
authorTianfei Zhang <tianfei.zhang@intel.com>
Tue, 16 Apr 2019 03:17:45 +0000 (11:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commite4dc499d565b6597dde7b4d81d64f0466a3feb72
treeb064b4ac46fad13301d7483e98a371c814fc410f
parent93bf4b3101e4588bfd6229d3844d7b5393054729
raw/ifpga/base: store private features in FME and port

Get private features attribute like size, id, address after
enumeration, and insert into FEM or Port dedicate list.

when initial the private feature driver, we just compare the
private feature id between the list and feature drivers array
to match the proper drivers.

This patch avoid the hardcore in feature_info array in previous
implementation. and the same time we can use one driver for mulitple
devices which the id is the same.

Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
drivers/raw/ifpga_rawdev/base/ifpga_defines.h
drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c
drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c
drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h
drivers/raw/ifpga_rawdev/base/ifpga_fme.c
drivers/raw/ifpga_rawdev/base/ifpga_hw.h
drivers/raw/ifpga_rawdev/base/ifpga_port.c