blob: 2b9d41899d21af3201c71916b27806c511f37267 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_IRQ_H
2#define _ASM_IRQ_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#include <linux/hardirq.h>
Heiko Carstensd7b250e2011-05-26 09:48:24 +02005#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Linus Torvalds1da177e2005-04-16 15:20:36 -07007enum interruption_class {
8 EXTERNAL_INTERRUPT,
9 IO_INTERRUPT,
Heiko Carstens052ff462011-01-05 12:47:28 +010010 EXTINT_CLK,
Heiko Carstens2a3a2d62011-10-30 15:17:19 +010011 EXTINT_EXC,
12 EXTINT_EMS,
Heiko Carstens052ff462011-01-05 12:47:28 +010013 EXTINT_TMR,
14 EXTINT_TLA,
15 EXTINT_PFL,
16 EXTINT_DSD,
17 EXTINT_VRT,
18 EXTINT_SCP,
19 EXTINT_IUC,
Hendrik Brueckner02456162012-05-09 16:27:40 +020020 EXTINT_CMS,
21 EXTINT_CMC,
Peter Oberparleiterde400d62011-10-30 15:16:04 +010022 IOINT_CIO,
Jan Glauber30d77c32011-01-05 12:47:29 +010023 IOINT_QAI,
Heiko Carstens32839422011-01-05 12:47:30 +010024 IOINT_DAS,
Heiko Carstens12fae582011-01-05 12:47:31 +010025 IOINT_C15,
Heiko Carstens3fe22f62011-01-05 12:47:32 +010026 IOINT_C70,
Heiko Carstensb86651722011-01-05 12:47:33 +010027 IOINT_TAP,
Heiko Carstensf48198d2011-01-05 12:47:34 +010028 IOINT_VMR,
Heiko Carstens096a6162011-01-05 12:47:35 +010029 IOINT_LCS,
Heiko Carstens355eb402011-01-05 12:47:36 +010030 IOINT_CLW,
Heiko Carstens85b81cd2011-01-05 12:47:37 +010031 IOINT_CTC,
Holger Dengler62d146f2011-01-05 12:47:38 +010032 IOINT_APB,
Sebastian Ott65b4e402011-10-30 15:16:54 +010033 IOINT_CSC,
Heiko Carstens052ff462011-01-05 12:47:28 +010034 NMI_NMI,
Linus Torvalds1da177e2005-04-16 15:20:36 -070035 NR_IRQS,
36};
37
Heiko Carstensfde15c32012-03-11 11:59:31 -040038struct ext_code {
39 unsigned short subcode;
40 unsigned short code;
41};
42
43typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
Heiko Carstensd7b250e2011-05-26 09:48:24 +020044
45int register_external_interrupt(u16 code, ext_int_handler_t handler);
46int unregister_external_interrupt(u16 code, ext_int_handler_t handler);
47void service_subclass_irq_register(void);
48void service_subclass_irq_unregister(void);
Jan Glauberb03d541a2012-03-23 11:13:05 +010049void measurement_alert_subclass_register(void);
50void measurement_alert_subclass_unregister(void);
Heiko Carstensd7b250e2011-05-26 09:48:24 +020051
Heiko Carstens052ff462011-01-05 12:47:28 +010052#endif /* _ASM_IRQ_H */