|
Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Data Structures | |
| struct | foo_single_dev_data |
| struct | foo_single_config_info |
| struct | foo_mult_dev_data |
| struct | foo_mult_config_info |
Macros | |
| #define | DT_DRV_COMPAT fakedriver |
| #define | DEV_DATA(dev) ((struct foo_mult_dev_data *)((dev)->data)) |
| #define | DEV_CFG(dev) ((struct foo_mult_config_info *)((dev)->config)) |
Functions | |
| int | foo_single_init (const struct device *dev) |
| ZTEST (device, test_mmio_single) | |
| Test DEVICE_MMIO_* macros. | |
| int | foo_mult_init (const struct device *dev) |
| ZTEST (device, test_mmio_multiple) | |
| Test DEVICE_MMIO_NAMED_* macros. | |
| DEVICE_MMIO_TOPLEVEL (foo3, DT_DRV_INST(3)) | |
| DEVICE_MMIO_TOPLEVEL_STATIC (foo4, DT_DRV_INST(4)) | |
| ZTEST (device, test_mmio_toplevel) | |
| Test DEVICE_MMIO_TOPLEVEL_* macros. | |
| ZTEST (device, test_mmio_device_map) | |
| device_map() test | |
Variables | |
| struct foo_single_dev_data | foo0_data |
| const struct foo_single_config_info | foo0_config |
| struct foo_mult_dev_data | foo12_data |
| const struct foo_mult_config_info | foo12_config |
| #define DEV_CFG | ( | dev | ) | ((struct foo_mult_config_info *)((dev)->config)) |
| #define DEV_DATA | ( | dev | ) | ((struct foo_mult_dev_data *)((dev)->data)) |
| #define DT_DRV_COMPAT fakedriver |
| DEVICE_MMIO_TOPLEVEL | ( | foo3 | , |
| DT_DRV_INST(3) | |||
| ) |
| DEVICE_MMIO_TOPLEVEL_STATIC | ( | foo4 | , |
| DT_DRV_INST(4) | |||
| ) |
| int foo_mult_init | ( | const struct device * | dev | ) |
| int foo_single_init | ( | const struct device * | dev | ) |
| ZTEST | ( | device | , |
| test_mmio_device_map | |||
| ) |
device_map() test
Show that device_map() populates a memory address. We don't do anything else; tests for k_map() will prove that virtual memory mapping actually works.
| const struct foo_single_config_info foo0_config |
| struct foo_single_dev_data foo0_data |
| const struct foo_mult_config_info foo12_config |
| struct foo_mult_dev_data foo12_data |