OSDN Git Service

fpga: dfl: afu: add header sub feature support
authorWu Hao <hao.wu@intel.com>
Sat, 30 Jun 2018 00:53:32 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 11:55:47 +0000 (13:55 +0200)
commite4664c0ee4ac44993c62d10b048ab0a960691da5
treef40f47fa0c5ddadc371ff4772479c9b4a8306149
parent47c1b19c160fe1641469c145dba78fbbe48b996a
fpga: dfl: afu: add header sub feature support

The port header register set is always present for port, it is mainly
for capability, control and status of the ports that AFU connected to.

This patch implements header sub feature support. Below user interfaces
are created by this patch.

Sysfs interface:
* /sys/class/fpga_region/<regionX>/<dfl-port.x>/id
  Read-only. Port ID.

Ioctl interface:
* DFL_FPGA_PORT_RESET
  Reset the FPGA Port and its AFU.

Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
Signed-off-by: Enno Luebbers <enno.luebbers@intel.com>
Signed-off-by: Shiva Rao <shiva.rao@intel.com>
Signed-off-by: Christopher Rauer <christopher.rauer@intel.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-platform-dfl-port [new file with mode: 0644]
drivers/fpga/dfl-afu-main.c
include/uapi/linux/fpga-dfl.h