1 /* ipm_dummy.c - Fake IPM driver */ 2 3 /* 4 * Copyright (c) 2015 Intel Corporation 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef _IPM_DUMMY_H_ 10 11 #include <zephyr/kernel.h> 12 #include <zephyr/device.h> 13 #include <zephyr/drivers/ipm.h> 14 15 /* Arbitrary */ 16 #define DUMMY_IPM_DATA_WORDS 4 17 18 struct ipm_dummy_regs { 19 uint32_t id; 20 uint32_t data[DUMMY_IPM_DATA_WORDS]; 21 uint8_t busy; 22 uint8_t enabled; 23 }; 24 25 struct ipm_dummy_driver_data { 26 ipm_callback_t cb; 27 void *cb_context; 28 volatile struct ipm_dummy_regs regs; 29 }; 30 #endif 31