Skip to content

Commit 492ecf6

Browse files
atull-alteragregkh
authored andcommitted
docs: fpga: document fpga manager flags
Add flags #defines to kerneldoc documentation in a useful place. Signed-off-by: Alan Tull <atull@kernel.org> Acked-by: Moritz Fischer <mdf@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b4d9a0e commit 492ecf6

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

Documentation/driver-api/fpga/fpga-mgr.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ API for implementing a new FPGA Manager driver
184184
API for programming an FPGA
185185
---------------------------
186186

187+
FPGA Manager flags
188+
189+
.. kernel-doc:: include/linux/fpga/fpga-mgr.h
190+
:doc: FPGA Manager flags
191+
187192
.. kernel-doc:: include/linux/fpga/fpga-mgr.h
188193
:functions: fpga_image_info
189194

include/linux/fpga/fpga-mgr.h

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,20 @@ enum fpga_mgr_states {
5353
FPGA_MGR_STATE_OPERATING,
5454
};
5555

56-
/*
57-
* FPGA Manager flags
58-
* FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported
59-
* FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting
60-
* FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first
61-
* FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed
56+
/**
57+
* DOC: FPGA Manager flags
58+
*
59+
* Flags used in the &fpga_image_info->flags field
60+
*
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
6270
*/
6371
#define FPGA_MGR_PARTIAL_RECONFIG BIT(0)
6472
#define FPGA_MGR_EXTERNAL_CONFIG BIT(1)

0 commit comments

Comments
 (0)