1 /* 2 * Copyright (c) 2022 Intel Corporation 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #ifndef ZEPHYR_INCLUDE_DRIVERS_DW_ACE_H 7 #define ZEPHYR_INCLUDE_DRIVERS_DW_ACE_H 8 9 #include <zephyr/device.h> 10 11 typedef void (*irq_enable_t)(const struct device *dev, uint32_t irq); 12 typedef void (*irq_disable_t)(const struct device *dev, uint32_t irq); 13 typedef int (*irq_is_enabled_t)(const struct device *dev, unsigned int irq); 14 typedef int (*irq_connect_dynamic_t)(const struct device *dev, 15 unsigned int irq, unsigned int priority, 16 void (*routine)(const void *parameter), 17 const void *parameter, uint32_t flags); 18 19 struct dw_ace_v1_ictl_driver_api { 20 irq_enable_t intr_enable; 21 irq_disable_t intr_disable; 22 irq_is_enabled_t intr_is_enabled; 23 #ifdef CONFIG_DYNAMIC_INTERRUPTS 24 irq_connect_dynamic_t intr_connect_dynamic; 25 #endif 26 }; 27 28 #endif /* ZEPHYR_INCLUDE_DRIVERS_DW_ACE_H */ 29