1 /* 2 * Copyright (c) 2018 Intel Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/device.h> 9 #define DUMMY_DRIVER_NAME "dummy_driver" 10 11 typedef int (*dummy_api_open_t)(const struct device *dev); 12 13 typedef int (*dummy_api_read_t)(const struct device *dev, 14 uint32_t *val); 15 typedef int (*dummy_api_write_t)(const struct device *dev, 16 uint32_t val); 17 typedef int (*dummy_api_close_t)(const struct device *dev); 18 19 struct dummy_driver_api { 20 dummy_api_open_t open; 21 dummy_api_read_t read; 22 dummy_api_write_t write; 23 dummy_api_close_t close; 24 }; 25