12#ifndef ZEPHYR_INCLUDE_DRIVERS_EDAC_H_
13#define ZEPHYR_INCLUDE_DRIVERS_EDAC_H_
void(* edac_notify_callback_f)(const struct device *dev, void *data)
Definition: edac.h:19
static int edac_inject_set_error_type(const struct device *dev, uint32_t error_type)
Set error type value.
Definition: edac.h:175
static int edac_notify_callback_set(const struct device *dev, edac_notify_callback_f cb)
Register callback function for memory error exception.
Definition: edac.h:379
static int edac_inject_get_param2(const struct device *dev, uint64_t *value)
Get injection parameter param2.
Definition: edac.h:151
edac_error_type
EDAC error type.
Definition: edac.h:30
static int edac_ecc_error_log_get(const struct device *dev, uint64_t *value)
Get ECC Error Log.
Definition: edac.h:247
static int edac_inject_get_param1(const struct device *dev, uint64_t *value)
Get injection parameter param1.
Definition: edac.h:104
static int edac_inject_set_param2(const struct device *dev, uint64_t value)
Set injection parameter param2.
Definition: edac.h:129
static int edac_parity_error_log_get(const struct device *dev, uint64_t *value)
Get Parity Error Log.
Definition: edac.h:293
static int edac_ecc_error_log_clear(const struct device *dev)
Clear ECC Error Log.
Definition: edac.h:270
static int edac_parity_error_log_clear(const struct device *dev)
Clear Parity Error Log.
Definition: edac.h:316
static int edac_inject_set_param1(const struct device *dev, uint64_t value)
Set injection parameter param1.
Definition: edac.h:80
static int edac_errors_cor_get(const struct device *dev)
Get number of correctable errors.
Definition: edac.h:336
static int edac_errors_uc_get(const struct device *dev)
Get number of uncorrectable errors.
Definition: edac.h:356
static int edac_inject_error_trigger(const struct device *dev)
Set injection control.
Definition: edac.h:222
static int edac_inject_get_error_type(const struct device *dev, uint32_t *error_type)
Get error type value.
Definition: edac.h:199
@ EDAC_ERROR_TYPE_DRAM_UC
Uncorrectable error type.
Definition: edac.h:34
@ EDAC_ERROR_TYPE_DRAM_COR
Correctable error type.
Definition: edac.h:32
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition: util_macro.h:44
#define ENOSYS
Function not implemented.
Definition: errno.h:83
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91
Runtime device structure (in ROM) per driver instance.
Definition: device.h:381
void * data
Address of the device instance private data.
Definition: device.h:391
const void * api
Address of the API structure exposed by the device instance.
Definition: device.h:387
EDAC driver API.
Definition: edac.h:42
int(* inject_get_error_type)(const struct device *dev, uint32_t *value)
Definition: edac.h:49
int(* ecc_error_log_get)(const struct device *dev, uint64_t *value)
Definition: edac.h:53
int(* errors_uc_get)(const struct device *dev)
Definition: edac.h:60
int(* inject_set_error_type)(const struct device *dev, uint32_t value)
Definition: edac.h:48
int(* parity_error_log_get)(const struct device *dev, uint64_t *value)
Definition: edac.h:55
int(* errors_cor_get)(const struct device *dev)
Definition: edac.h:59
int(* inject_get_param1)(const struct device *dev, uint64_t *value)
Definition: edac.h:45
int(* inject_get_param2)(const struct device *dev, uint64_t *value)
Definition: edac.h:47
int(* inject_set_param1)(const struct device *dev, uint64_t value)
Definition: edac.h:44
int(* ecc_error_log_clear)(const struct device *dev)
Definition: edac.h:54
int(* parity_error_log_clear)(const struct device *dev)
Definition: edac.h:56
int(* notify_cb_set)(const struct device *dev, edac_notify_callback_f cb)
Definition: edac.h:63
int(* inject_error_trigger)(const struct device *dev)
Definition: edac.h:50
int(* inject_set_param2)(const struct device *dev, uint64_t value)
Definition: edac.h:46