fpga: dfl: add basic support for DFHv1
authorMatthew Gerlach <matthew.gerlach@linux.intel.com>
Sun, 15 Jan 2023 15:14:46 +0000 (07:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 15:07:40 +0000 (16:07 +0100)
commit4747ab89b4a652f835494fcf8342aaa0efb9b0fd
tree3b2fc824ad508cbcb087c385f86a5661ad37e730
parent0926d8d52d42799806148ce6d57992849e57816c
fpga: dfl: add basic support for DFHv1

Version 1 of the Device Feature Header (DFH) definition adds
functionality to the Device Feature List (DFL) bus.

A DFHv1 header may have one or more parameter blocks that
further describes the HW to SW. Add support to the DFL bus
to parse the MSI-X parameter.

The location of a feature's register set is explicitly
described in DFHv1 and can be relative to the base of the DFHv1
or an absolute address. Parse the location and pass the information
to DFL driver.

Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230115151447.1353428-4-matthew.gerlach@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/dfl.c
drivers/fpga/dfl.h
include/linux/dfl.h