diff options
author | Wu Hao <hao.wu@intel.com> | 2019-08-12 10:50:01 +0800 |
---|---|---|
committer | Moritz Fischer <mdf@kernel.org> | 2019-09-03 19:35:41 -0700 |
commit | 44d247534ff266404ccb44c2f52131a850348919 (patch) | |
tree | e366ea4405aead44577cb9c61018ba3910d13330 /drivers/fpga/dfl-afu.h | |
parent | 95844372f4f3df1852118438977e0048fdabc18b (diff) | |
download | linux-next-44d247534ff266404ccb44c2f52131a850348919.tar.gz |
fpga: dfl: afu: add error reporting support.
Error reporting is one important private feature, it reports error
detected on port and accelerated function unit (AFU). It introduces
several sysfs interfaces to allow userspace to check and clear
errors detected by hardware.
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'drivers/fpga/dfl-afu.h')
-rw-r--r-- | drivers/fpga/dfl-afu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/fpga/dfl-afu.h b/drivers/fpga/dfl-afu.h index 83683f2e02cc..576e94960086 100644 --- a/drivers/fpga/dfl-afu.h +++ b/drivers/fpga/dfl-afu.h @@ -101,4 +101,9 @@ int afu_dma_unmap_region(struct dfl_feature_platform_data *pdata, u64 iova); struct dfl_afu_dma_region * afu_dma_region_find(struct dfl_feature_platform_data *pdata, u64 iova, u64 size); + +extern const struct dfl_feature_ops port_err_ops; +extern const struct dfl_feature_id port_err_id_table[]; +extern const struct attribute_group port_err_group; + #endif /* __DFL_AFU_H */ |