Skip to content

Commit 301b20a

Browse files
kartbencfriedt
authored andcommitted
include: drivers: edac: add doxygen documentation to edac_synopsys.h
This ensures the vendor-specific API provided in this header file is fully documented and exposed in our API documentation. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 52c8f88 commit 301b20a

File tree

2 files changed

+38
-19
lines changed

2 files changed

+38
-19
lines changed

include/zephyr/drivers/edac.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
* @version 0.8.0
2525
* @ingroup io_interfaces
2626
* @{
27+
*
28+
* @defgroup edac_interface_ext Device-specific EDAC API extensions
29+
* @{
30+
* @}
2731
*/
2832

2933
/**

include/zephyr/drivers/edac/edac_synopsys.h

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,65 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/**
8+
* @file
9+
* @brief Header file for extended EDAC API of Synopsys DDR controller
10+
* @ingroup edac_interface_ext
11+
*/
12+
713
#ifndef ZEPHYR_DRIVERS_EDAC_EDAC_SYNOPSYS_H_
814
#define ZEPHYR_DRIVERS_EDAC_EDAC_SYNOPSYS_H_
915

16+
/**
17+
* @brief Synopsys DDR controller EDAC driver
18+
* @defgroup edac_synopsys_interface Synopsys DDR controller EDAC
19+
* @ingroup edac_interface_ext
20+
* @{
21+
*/
22+
1023
#include <stdint.h>
1124

12-
/* Callback data provided to function passed to notify_cb_set */
25+
/** Callback data provided to function passed to @ref edac_notify_callback_set */
1326
struct edac_synopsys_callback_data {
14-
/* Number of corrected errors since last callback */
27+
/** Number of corrected errors since last callback */
1528
uint16_t corr_err_count;
16-
/* Rank number of last corrected ECC error */
29+
/** Rank number of last corrected ECC error */
1730
uint8_t corr_err_rank;
18-
/* Bank group number of last corrected ECC error */
31+
/** Bank group number of last corrected ECC error */
1932
uint8_t corr_err_bg;
20-
/* Bank number of last corrected ECC error */
33+
/** Bank number of last corrected ECC error */
2134
uint8_t corr_err_bank;
22-
/* Row number of last corrected ECC error */
35+
/** Row number of last corrected ECC error */
2336
uint32_t corr_err_row;
24-
/* Column number of last corrected ECC error */
37+
/** Column number of last corrected ECC error */
2538
uint8_t corr_err_col;
26-
/* Syndrome (data pattern) of last corrected ECC error */
39+
/** Syndrome (data pattern) of last corrected ECC error */
2740
uint64_t corr_err_syndrome;
28-
/* Syndrome ECC bits for last corrected ECC error */
41+
/** Syndrome ECC bits for last corrected ECC error */
2942
uint8_t corr_err_syndrome_ecc;
30-
/* Bitmask of corrected error bits in data word */
43+
/** Bitmask of corrected error bits in data word */
3144
uint64_t corr_err_bitmask;
32-
/* Bitmask of corrected error bits in ECC word */
45+
/** Bitmask of corrected error bits in ECC word */
3346
uint8_t corr_err_bitmask_ecc;
3447

35-
/* Number of uncorrected errors since last callback */
48+
/** Number of uncorrected errors since last callback */
3649
uint16_t uncorr_err_count;
37-
/* Rank number of last uncorrected ECC error */
50+
/** Rank number of last uncorrected ECC error */
3851
uint8_t uncorr_err_rank;
39-
/* Bank group number of last uncorrected ECC error */
52+
/** Bank group number of last uncorrected ECC error */
4053
uint8_t uncorr_err_bg;
41-
/* Bank number of last uncorrected ECC error */
54+
/** Bank number of last uncorrected ECC error */
4255
uint8_t uncorr_err_bank;
43-
/* Row number of last uncorrected ECC error */
56+
/** Row number of last uncorrected ECC error */
4457
uint32_t uncorr_err_row;
45-
/* Column number of last uncorrected ECC error */
58+
/** Column number of last uncorrected ECC error */
4659
uint8_t uncorr_err_col;
47-
/* Syndrome (data pattern) of last uncorrected ECC error */
60+
/** Syndrome (data pattern) of last uncorrected ECC error */
4861
uint64_t uncorr_err_syndrome;
49-
/* Syndrome ECC bits of last uncorrected ECC error */
62+
/** Syndrome ECC bits of last uncorrected ECC error */
5063
uint8_t uncorr_err_syndrome_ecc;
5164
};
5265

66+
/** @} */
67+
5368
#endif /* ZEPHYR_DRIVERS_EDAC_EDAC_SYNOPSYS_H_ */

0 commit comments

Comments
 (0)