1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14 
15 #ifndef __ISYS_IRQ_GLOBAL_H__
16 #define __ISYS_IRQ_GLOBAL_H__
17 
18 #if defined(USE_INPUT_SYSTEM_VERSION_2401)
19 
20 /* Register offset/index from base location */
21 #define ISYS_IRQ_EDGE_REG_IDX		(0)
22 #define ISYS_IRQ_MASK_REG_IDX		(ISYS_IRQ_EDGE_REG_IDX + 1)
23 #define ISYS_IRQ_STATUS_REG_IDX		(ISYS_IRQ_EDGE_REG_IDX + 2)
24 #define ISYS_IRQ_CLEAR_REG_IDX		(ISYS_IRQ_EDGE_REG_IDX + 3)
25 #define ISYS_IRQ_ENABLE_REG_IDX		(ISYS_IRQ_EDGE_REG_IDX + 4)
26 #define ISYS_IRQ_LEVEL_NO_REG_IDX	(ISYS_IRQ_EDGE_REG_IDX + 5)
27 
28 /* Register values */
29 #define ISYS_IRQ_MASK_REG_VALUE		(0xFFFF)
30 #define ISYS_IRQ_CLEAR_REG_VALUE	(0xFFFF)
31 #define ISYS_IRQ_ENABLE_REG_VALUE	(0xFFFF)
32 
33 #endif /* defined(USE_INPUT_SYSTEM_VERSION_2401) */
34 
35 #endif	/* __ISYS_IRQ_GLOBAL_H__ */
36