separate the interrupt controller header. protect kernel_intr against re-inclusion.
[AROS.git] / rom / kernel / kernel_interrupts.h
blob2b9205407d37cbc2ed40cd56f25ecf588f060cf2
1 #ifndef KERNEL_INTERRUPTS_H
2 #define KERNEL_INTERRUPTS_H
3 /*
4 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
5 $Id$
7 Desc:
8 */
10 #include <inttypes.h>
13 * Internal definitions. Needed only if you replace some related function.
15 struct IntrNode
17 struct MinNode in_Node;
18 void *in_Handler;
19 void *in_HandlerData;
20 void *in_HandlerData2;
21 uint8_t in_type;
22 uint8_t in_nr;
25 enum intr_types
27 it_exception = 0xe0,
28 it_interrupt = 0xf0
31 /* Functions to be called by machine-specific code */
32 int krnRunExceptionHandlers(struct KernelBase *, uint8_t, void *); /* Run user-supplied exception handlers */
33 void krnRunIRQHandlers(struct KernelBase *, uint8_t); /* Run user-supplied IRQ handlers */
35 #endif /* !KERNEL_INTERRUPTS_H */