1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __IRQ_GLOBAL_H_INCLUDED__ 8 #define __IRQ_GLOBAL_H_INCLUDED__ 9 10 #include <system_local.h> 11 12 #define IS_IRQ_VERSION_2 13 #define IS_IRQ_MAP_VERSION_2 14 15 /* We cannot include the (hrt host ID) file defining the "CSS_RECEIVER" property without side effects */ 16 #ifndef HAS_NO_RX 17 #include "irq_types_hrt.h" 18 #endif 19 20 /* The IRQ is not mapped uniformly on its related interfaces */ 21 #define IRQ_SW_CHANNEL_OFFSET hrt_isp_css_irq_sw_pin_0 22 23 typedef enum { 24 IRQ_SW_CHANNEL0_ID = hrt_isp_css_irq_sw_pin_0 - IRQ_SW_CHANNEL_OFFSET, 25 IRQ_SW_CHANNEL1_ID = hrt_isp_css_irq_sw_pin_1 - IRQ_SW_CHANNEL_OFFSET, 26 N_IRQ_SW_CHANNEL_ID 27 } irq_sw_channel_id_t; 28 29 #endif /* __IRQ_GLOBAL_H_INCLUDED__ */ 30