raw/ifpga: add FPGA RSU APIs
authorWei Huang <wei.huang@intel.com>
Wed, 3 Mar 2021 02:34:29 +0000 (21:34 -0500)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 5 Mar 2021 08:55:55 +0000 (09:55 +0100)
commita05bd1b40bde9f2321f6a88bd287f7e7474dac64
tree63853b793d222de4c18d7a88352b40678a853878
parentc45bd78e07e9d4b5ffc29748b9b7d4127293597a
raw/ifpga: add FPGA RSU APIs

RSU (Remote System Update) depends on secure manager which may be
different on various implementations, so a new secure manager device
is implemented for adapting such difference.
There are five APIs added:
1. rte_pmd_ifpga_get_dev_id() get raw device ID of ifpga device from PCI
   address like 'Domain:Bus:Dev.Func'.
2. rte_pmd_ifpga_update_flash() update flash with specific image file.
3. rte_pmd_ifpga_stop_update() abort flash update process.
4. rte_pmd_ifpga_reboot_try() check current ifpga status and change it
   to reboot status if it is idle.
5. rte_pmd_ifpga_reload() trigger full reconfiguration of ifpga device.

Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
17 files changed:
doc/api/doxy-api-index.md
doc/api/doxy-api.conf.in
drivers/raw/ifpga/base/ifpga_api.c
drivers/raw/ifpga/base/ifpga_fme.c
drivers/raw/ifpga/base/ifpga_fme_rsu.c [new file with mode: 0644]
drivers/raw/ifpga/base/ifpga_hw.h
drivers/raw/ifpga/base/ifpga_sec_mgr.c [new file with mode: 0644]
drivers/raw/ifpga/base/ifpga_sec_mgr.h [new file with mode: 0644]
drivers/raw/ifpga/base/meson.build
drivers/raw/ifpga/base/opae_hw_api.c
drivers/raw/ifpga/base/opae_hw_api.h
drivers/raw/ifpga/base/opae_intel_max10.c
drivers/raw/ifpga/base/opae_intel_max10.h
drivers/raw/ifpga/meson.build
drivers/raw/ifpga/rte_pmd_ifpga.c [new file with mode: 0644]
drivers/raw/ifpga/rte_pmd_ifpga.h [new file with mode: 0644]
drivers/raw/ifpga/version.map