diff options
Diffstat (limited to 'include/uapi/linux/fpga-dfl.h')
-rw-r--r-- | include/uapi/linux/fpga-dfl.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/uapi/linux/fpga-dfl.h b/include/uapi/linux/fpga-dfl.h index 9666af85a8f5..e6b4dd26cc68 100644 --- a/include/uapi/linux/fpga-dfl.h +++ b/include/uapi/linux/fpga-dfl.h | |||
@@ -29,8 +29,11 @@ | |||
29 | #define DFL_FPGA_MAGIC 0xB6 | 29 | #define DFL_FPGA_MAGIC 0xB6 |
30 | 30 | ||
31 | #define DFL_FPGA_BASE 0 | 31 | #define DFL_FPGA_BASE 0 |
32 | #define DFL_PORT_BASE 0x40 | ||
32 | #define DFL_FME_BASE 0x80 | 33 | #define DFL_FME_BASE 0x80 |
33 | 34 | ||
35 | /* Common IOCTLs for both FME and AFU file descriptor */ | ||
36 | |||
34 | /** | 37 | /** |
35 | * DFL_FPGA_GET_API_VERSION - _IO(DFL_FPGA_MAGIC, DFL_FPGA_BASE + 0) | 38 | * DFL_FPGA_GET_API_VERSION - _IO(DFL_FPGA_MAGIC, DFL_FPGA_BASE + 0) |
36 | * | 39 | * |
@@ -49,6 +52,20 @@ | |||
49 | 52 | ||
50 | #define DFL_FPGA_CHECK_EXTENSION _IO(DFL_FPGA_MAGIC, DFL_FPGA_BASE + 1) | 53 | #define DFL_FPGA_CHECK_EXTENSION _IO(DFL_FPGA_MAGIC, DFL_FPGA_BASE + 1) |
51 | 54 | ||
55 | /* IOCTLs for AFU file descriptor */ | ||
56 | |||
57 | /** | ||
58 | * DFL_FPGA_PORT_RESET - _IO(DFL_FPGA_MAGIC, DFL_PORT_BASE + 0) | ||
59 | * | ||
60 | * Reset the FPGA Port and its AFU. No parameters are supported. | ||
61 | * Userspace can do Port reset at any time, e.g. during DMA or PR. But | ||
62 | * it should never cause any system level issue, only functional failure | ||
63 | * (e.g. DMA or PR operation failure) and be recoverable from the failure. | ||
64 | * Return: 0 on success, -errno of failure | ||
65 | */ | ||
66 | |||
67 | #define DFL_FPGA_PORT_RESET _IO(DFL_FPGA_MAGIC, DFL_PORT_BASE + 0) | ||
68 | |||
52 | /* IOCTLs for FME file descriptor */ | 69 | /* IOCTLs for FME file descriptor */ |
53 | 70 | ||
54 | /** | 71 | /** |