diff options
-rw-r--r-- | Documentation/driver-api/fpga/fpga-mgr.rst | 5 | ||||
-rw-r--r-- | include/linux/fpga/fpga-mgr.h | 20 |
2 files changed, 19 insertions, 6 deletions
diff --git a/Documentation/driver-api/fpga/fpga-mgr.rst b/Documentation/driver-api/fpga/fpga-mgr.rst index 4b3825da48d9..82b6dbbd31cd 100644 --- a/Documentation/driver-api/fpga/fpga-mgr.rst +++ b/Documentation/driver-api/fpga/fpga-mgr.rst | |||
@@ -184,6 +184,11 @@ API for implementing a new FPGA Manager driver | |||
184 | API for programming an FPGA | 184 | API for programming an FPGA |
185 | --------------------------- | 185 | --------------------------- |
186 | 186 | ||
187 | FPGA Manager flags | ||
188 | |||
189 | .. kernel-doc:: include/linux/fpga/fpga-mgr.h | ||
190 | :doc: FPGA Manager flags | ||
191 | |||
187 | .. kernel-doc:: include/linux/fpga/fpga-mgr.h | 192 | .. kernel-doc:: include/linux/fpga/fpga-mgr.h |
188 | :functions: fpga_image_info | 193 | :functions: fpga_image_info |
189 | 194 | ||
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index 8942e61f0028..8ab5df769923 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h | |||
@@ -53,12 +53,20 @@ enum fpga_mgr_states { | |||
53 | FPGA_MGR_STATE_OPERATING, | 53 | FPGA_MGR_STATE_OPERATING, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | /* | 56 | /** |
57 | * FPGA Manager flags | 57 | * DOC: FPGA Manager flags |
58 | * FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported | 58 | * |
59 | * FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting | 59 | * Flags used in the &fpga_image_info->flags field |
60 | * FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first | 60 | * |
61 | * FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed | 61 | * %FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported |
62 | * | ||
63 | * %FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting | ||
64 | * | ||
65 | * %FPGA_MGR_ENCRYPTED_BITSTREAM: indicates bitstream is encrypted | ||
66 | * | ||
67 | * %FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first | ||
68 | * | ||
69 | * %FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed | ||
62 | */ | 70 | */ |
63 | #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) | 71 | #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) |
64 | #define FPGA_MGR_EXTERNAL_CONFIG BIT(1) | 72 | #define FPGA_MGR_EXTERNAL_CONFIG BIT(1) |