X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=blobdiff_plain;f=irq.h;h=2e09926b2710405822940383e86f025ed872c752;hp=360489c8a4aee71b9c585baa766ae6c91109cd33;hb=HEAD;hpb=3169c95c4ddd84c74a397760d617e840530c13e0 diff --git a/irq.h b/irq.h index 360489c..2e09926 100644 --- a/irq.h +++ b/irq.h @@ -1,14 +1,73 @@ +/* + ppcskel - a Free Software replacement for the Nintendo/BroadOn IOS. + IRQ support + +Copyright (C) 2009 Bernhard Urban +Copyright (C) 2009 Sebastian Falbesoner + +# This code is licensed to you under the terms of the GNU GPL, version 2; +# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt +*/ + #ifndef __IRQ_H__ #define __IRQ_H__ -/* hollywood-pic registers */ -#define HW_PPCIRQFLAG (0x0d800030) -#define HW_PPCIRQMASK (0x0d800034) +#include "types.h" + +#ifdef CAN_HAZ_IRQ +#define IRQ_TIMER 0 +#define IRQ_NAND 1 +#define IRQ_AES 2 +#define IRQ_SHA1 3 +#define IRQ_EHCI 4 +#define IRQ_OHCI0 5 +#define IRQ_OHCI1 6 +#define IRQ_SDHC 7 +#define IRQ_WIFI 8 +#define IRQ_GPIO1B 10 +#define IRQ_GPIO1 11 +#define IRQ_RESET 17 +#define IRQ_PPCIPC 30 +#define IRQ_IPC 31 + +#define IRQF_TIMER (1<