David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * arch/arm/include/asm/hardware/vic.h |
| 4 | * |
| 5 | * Copyright (c) ARM Limited 2003. All rights reserved. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | #ifndef __ASM_ARM_HARDWARE_VIC_H |
| 8 | #define __ASM_ARM_HARDWARE_VIC_H |
| 9 | |
| 10 | #include <linux/types.h> |
| 11 | |
| 12 | #define VIC_RAW_STATUS 0x08 |
| 13 | #define VIC_INT_ENABLE 0x10 /* 1 = enable, 0 = disable */ |
| 14 | #define VIC_INT_ENABLE_CLEAR 0x14 |
| 15 | |
| 16 | struct device_node; |
| 17 | struct pt_regs; |
| 18 | |
| 19 | void __vic_init(void __iomem *base, int parent_irq, int irq_start, |
| 20 | u32 vic_sources, u32 resume_sources, struct device_node *node); |
| 21 | void vic_init(void __iomem *base, unsigned int irq_start, u32 vic_sources, u32 resume_sources); |
| 22 | int vic_init_cascaded(void __iomem *base, unsigned int parent_irq, |
| 23 | u32 vic_sources, u32 resume_sources); |
| 24 | |
| 25 | #endif |