debuggers.hg

view tools/ioemu/hw/arm_pic.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 /*
2 * Generic ARM Programmable Interrupt Controller support.
3 *
4 * Copyright (c) 2006 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licenced under the LGPL.
8 *
9 * Arm hardware uses a wide variety of interrupt handling hardware.
10 * This provides a generic framework for connecting interrupt sources and
11 * inputs.
12 */
14 #ifndef ARM_INTERRUPT_H
15 #define ARM_INTERRUPT_H 1
17 /* The first element of an individual PIC state structures should
18 be a pointer to the handler routine. */
19 typedef void (*arm_pic_handler)(void *opaque, int irq, int level);
21 /* The CPU is also modeled as an interrupt controller. */
22 #define ARM_PIC_CPU_IRQ 0
23 #define ARM_PIC_CPU_FIQ 1
24 void *arm_pic_init_cpu(CPUState *env);
26 #endif /* !ARM_INTERRUPT_H */