aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dfl.h
diff options
context:
space:
mode:
authorMartin Hundebøll <mhu@silicom.dk>2021-07-16 15:54:39 +0200
committerMoritz Fischer <mdf@kernel.org>2021-07-29 12:54:10 -0700
commit1604986c3e6bd84f3f3fd709c1a619c6fc9d79a9 (patch)
treeaefabf9b4c8eac27a3656a22184b3d1676993a07 /include/linux/dfl.h
parentfpga: Fix spelling mistake "eXchnage" -> "exchange" in Kconfig (diff)
downloadlinux-dev-1604986c3e6bd84f3f3fd709c1a619c6fc9d79a9.tar.xz
linux-dev-1604986c3e6bd84f3f3fd709c1a619c6fc9d79a9.zip
fpga: dfl: expose feature revision from struct dfl_device
DFL device drivers have a common need for checking feature revision information from the DFL header, as well as other common DFL information like the already exposed feature id and type. This patch exposes the feature revision information directly via the DFL device data structure. Since the DFL core code has already read the DFL header, this this patch saves additional mmio reads from DFL device drivers too. Acked-by: Wu Hao <hao.wu@intel.com> Acked-by: Matthew Gerlach <matthew.gerlach@linux.intel.com> Signed-off-by: Martin Hundebøll <mhu@silicom.dk> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'include/linux/dfl.h')
-rw-r--r--include/linux/dfl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dfl.h b/include/linux/dfl.h
index 6cc10982351a..431636a0dc78 100644
--- a/include/linux/dfl.h
+++ b/include/linux/dfl.h
@@ -38,6 +38,7 @@ struct dfl_device {
int id;
u16 type;
u16 feature_id;
+ u8 revision;
struct resource mmio_res;
int *irqs;
unsigned int num_irqs;