8#ifndef ZEPHYR_INCLUDE_DRIVERS_EMUL_H_
9#define ZEPHYR_INCLUDE_DRIVERS_EMUL_H_
49 const struct device *parent);
65extern const struct emul __emul_list_start[];
66extern const struct emul __emul_list_end[];
69#define EMUL_REG_NAME(node_id) (_CONCAT(__emulreg_, node_id))
82#define EMUL_DEFINE(init_ptr, node_id, cfg_ptr) \
83 static struct emul EMUL_REG_NAME(node_id) \
84 __attribute__((__section__(".emulators"))) __used = { \
86 .dev_label = DT_LABEL(node_id), \
int emul_init_for_bus_from_list(const struct device *dev, const struct emul_list_for_bus *list)
int(* emul_init_t)(const struct emul *emul, const struct device *parent)
Definition: emul.h:48
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const char * label
Definition: emul.h:30
const struct emul_link_for_bus * children
Definition: emul.h:36
unsigned int num_children
Definition: emul.h:38
emul_init_t init
Definition: emul.h:54
const void * cfg
Definition: emul.h:58
const char * dev_label
Definition: emul.h:56