1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
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.
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
16 #ifndef __ISYS_IRQ_GLOBAL_H__
17 #define __ISYS_IRQ_GLOBAL_H__
21 /* Register offset/index from base location */
22 #define ISYS_IRQ_EDGE_REG_IDX (0)
23 #define ISYS_IRQ_MASK_REG_IDX (ISYS_IRQ_EDGE_REG_IDX + 1)
24 #define ISYS_IRQ_STATUS_REG_IDX (ISYS_IRQ_EDGE_REG_IDX + 2)
25 #define ISYS_IRQ_CLEAR_REG_IDX (ISYS_IRQ_EDGE_REG_IDX + 3)
26 #define ISYS_IRQ_ENABLE_REG_IDX (ISYS_IRQ_EDGE_REG_IDX + 4)
27 #define ISYS_IRQ_LEVEL_NO_REG_IDX (ISYS_IRQ_EDGE_REG_IDX + 5)
30 #define ISYS_IRQ_MASK_REG_VALUE (0xFFFF)
31 #define ISYS_IRQ_CLEAR_REG_VALUE (0xFFFF)
32 #define ISYS_IRQ_ENABLE_REG_VALUE (0xFFFF)
34 #endif /* defined(ISP2401) */
36 #endif /* __ISYS_IRQ_GLOBAL_H__ */