]> rtime.felk.cvut.cz Git - jailhouse.git/blob - inmates/lib/arm/include/gic.h
Merge remote-tracking branch 'kiszka/master'
[jailhouse.git] / inmates / lib / arm / include / gic.h
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) ARM Limited, 2014
5  *
6  * Authors:
7  *  Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  */
12 #ifndef _JAILHOUSE_INMATES_GIC_H
13 #define _JAILHOUSE_INMATES_GIC_H
14
15 #include <inmate.h>
16
17 #define GICD_ISENABLER                  0x0100
18
19 #define is_spi(irqn)                    ((irqn) > 31 && (irqn) < 1020)
20
21 #ifndef __ASSEMBLY__
22
23 int gic_init(void);
24 void gic_enable(unsigned int irqn);
25 void gic_write_eoi(u32 irqn);
26 u32 gic_read_ack(void);
27
28 #endif /* !__ASSEMBLY__ */
29 #endif