1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 */ 15 16#ifndef __IRQ_GLOBAL_H_INCLUDED__ 17#define __IRQ_GLOBAL_H_INCLUDED__ 18 19#include <system_local.h> 20 21#define IS_IRQ_VERSION_2 22#define IS_IRQ_MAP_VERSION_2 23 24/* We cannot include the (hrt host ID) file defining the "CSS_RECEIVER" property without side effects */ 25#ifndef HAS_NO_RX 26#include "irq_types_hrt.h" 27#endif 28 29/* The IRQ is not mapped uniformly on its related interfaces */ 30#define IRQ_SW_CHANNEL_OFFSET hrt_isp_css_irq_sw_pin_0 31 32typedef enum { 33 IRQ_SW_CHANNEL0_ID = hrt_isp_css_irq_sw_pin_0 - IRQ_SW_CHANNEL_OFFSET, 34 IRQ_SW_CHANNEL1_ID = hrt_isp_css_irq_sw_pin_1 - IRQ_SW_CHANNEL_OFFSET, 35 N_IRQ_SW_CHANNEL_ID 36} irq_sw_channel_id_t; 37 38#endif /* __IRQ_GLOBAL_H_INCLUDED__ */ 39