| 
4 | 4 |  * SPDX-License-Identifier: Apache-2.0  | 
5 | 5 |  */  | 
6 | 6 | 
 
  | 
 | 7 | +/**  | 
 | 8 | + * @file  | 
 | 9 | + * @brief Header file for extended EDAC API of Synopsys DDR controller  | 
 | 10 | + * @ingroup edac_interface_ext  | 
 | 11 | + */  | 
 | 12 | + | 
7 | 13 | #ifndef ZEPHYR_DRIVERS_EDAC_EDAC_SYNOPSYS_H_  | 
8 | 14 | #define ZEPHYR_DRIVERS_EDAC_EDAC_SYNOPSYS_H_  | 
9 | 15 | 
 
  | 
 | 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 | + | 
10 | 23 | #include <stdint.h>  | 
11 | 24 | 
 
  | 
12 |  | -/* Callback data provided to function passed to notify_cb_set */  | 
 | 25 | +/** Callback data provided to function passed to @ref edac_notify_callback_set */  | 
13 | 26 | struct edac_synopsys_callback_data {  | 
14 |  | -	/* Number of corrected errors since last callback */  | 
 | 27 | +	/** Number of corrected errors since last callback */  | 
15 | 28 | 	uint16_t corr_err_count;  | 
16 |  | -	/* Rank number of last corrected ECC error */  | 
 | 29 | +	/** Rank number of last corrected ECC error */  | 
17 | 30 | 	uint8_t corr_err_rank;  | 
18 |  | -	/* Bank group number of last corrected ECC error */  | 
 | 31 | +	/** Bank group number of last corrected ECC error */  | 
19 | 32 | 	uint8_t corr_err_bg;  | 
20 |  | -	/* Bank number of last corrected ECC error */  | 
 | 33 | +	/** Bank number of last corrected ECC error */  | 
21 | 34 | 	uint8_t corr_err_bank;  | 
22 |  | -	/* Row number of last corrected ECC error */  | 
 | 35 | +	/** Row number of last corrected ECC error */  | 
23 | 36 | 	uint32_t corr_err_row;  | 
24 |  | -	/* Column number of last corrected ECC error */  | 
 | 37 | +	/** Column number of last corrected ECC error */  | 
25 | 38 | 	uint8_t corr_err_col;  | 
26 |  | -	/* Syndrome (data pattern) of last corrected ECC error */  | 
 | 39 | +	/** Syndrome (data pattern) of last corrected ECC error */  | 
27 | 40 | 	uint64_t corr_err_syndrome;  | 
28 |  | -	/* Syndrome ECC bits for last corrected ECC error */  | 
 | 41 | +	/** Syndrome ECC bits for last corrected ECC error */  | 
29 | 42 | 	uint8_t corr_err_syndrome_ecc;  | 
30 |  | -	/* Bitmask of corrected error bits in data word */  | 
 | 43 | +	/** Bitmask of corrected error bits in data word */  | 
31 | 44 | 	uint64_t corr_err_bitmask;  | 
32 |  | -	/* Bitmask of corrected error bits in ECC word */  | 
 | 45 | +	/** Bitmask of corrected error bits in ECC word */  | 
33 | 46 | 	uint8_t corr_err_bitmask_ecc;  | 
34 | 47 | 
 
  | 
35 |  | -	/* Number of uncorrected errors since last callback */  | 
 | 48 | +	/** Number of uncorrected errors since last callback */  | 
36 | 49 | 	uint16_t uncorr_err_count;  | 
37 |  | -	/* Rank number of last uncorrected ECC error */  | 
 | 50 | +	/** Rank number of last uncorrected ECC error */  | 
38 | 51 | 	uint8_t uncorr_err_rank;  | 
39 |  | -	/* Bank group number of last uncorrected ECC error */  | 
 | 52 | +	/** Bank group number of last uncorrected ECC error */  | 
40 | 53 | 	uint8_t uncorr_err_bg;  | 
41 |  | -	/* Bank number of last uncorrected ECC error */  | 
 | 54 | +	/** Bank number of last uncorrected ECC error */  | 
42 | 55 | 	uint8_t uncorr_err_bank;  | 
43 |  | -	/* Row number of last uncorrected ECC error */  | 
 | 56 | +	/** Row number of last uncorrected ECC error */  | 
44 | 57 | 	uint32_t uncorr_err_row;  | 
45 |  | -	/* Column number of last uncorrected ECC error */  | 
 | 58 | +	/** Column number of last uncorrected ECC error */  | 
46 | 59 | 	uint8_t uncorr_err_col;  | 
47 |  | -	/* Syndrome (data pattern) of last uncorrected ECC error */  | 
 | 60 | +	/** Syndrome (data pattern) of last uncorrected ECC error */  | 
48 | 61 | 	uint64_t uncorr_err_syndrome;  | 
49 |  | -	/* Syndrome ECC bits of last uncorrected ECC error */  | 
 | 62 | +	/** Syndrome ECC bits of last uncorrected ECC error */  | 
50 | 63 | 	uint8_t uncorr_err_syndrome_ecc;  | 
51 | 64 | };  | 
52 | 65 | 
 
  | 
 | 66 | +/** @} */  | 
 | 67 | + | 
53 | 68 | #endif /* ZEPHYR_DRIVERS_EDAC_EDAC_SYNOPSYS_H_ */  | 
0 commit comments