2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _ASM_IRQ_H
|
|
|
|
#define _ASM_IRQ_H
|
|
|
|
|
|
|
|
#include <linux/hardirq.h>
|
2011-05-26 15:48:24 +08:00
|
|
|
#include <linux/types.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
enum interruption_class {
|
|
|
|
EXTERNAL_INTERRUPT,
|
|
|
|
IO_INTERRUPT,
|
2011-01-05 19:47:28 +08:00
|
|
|
EXTINT_CLK,
|
2011-10-30 22:17:19 +08:00
|
|
|
EXTINT_EXC,
|
|
|
|
EXTINT_EMS,
|
2011-01-05 19:47:28 +08:00
|
|
|
EXTINT_TMR,
|
|
|
|
EXTINT_TLA,
|
|
|
|
EXTINT_PFL,
|
|
|
|
EXTINT_DSD,
|
|
|
|
EXTINT_VRT,
|
|
|
|
EXTINT_SCP,
|
|
|
|
EXTINT_IUC,
|
2012-05-09 22:27:40 +08:00
|
|
|
EXTINT_CMS,
|
|
|
|
EXTINT_CMC,
|
2012-07-31 16:52:05 +08:00
|
|
|
EXTINT_CMR,
|
2011-10-30 22:16:04 +08:00
|
|
|
IOINT_CIO,
|
2011-01-05 19:47:29 +08:00
|
|
|
IOINT_QAI,
|
2011-01-05 19:47:30 +08:00
|
|
|
IOINT_DAS,
|
2011-01-05 19:47:31 +08:00
|
|
|
IOINT_C15,
|
2011-01-05 19:47:32 +08:00
|
|
|
IOINT_C70,
|
2011-01-05 19:47:33 +08:00
|
|
|
IOINT_TAP,
|
2011-01-05 19:47:34 +08:00
|
|
|
IOINT_VMR,
|
2011-01-05 19:47:35 +08:00
|
|
|
IOINT_LCS,
|
2011-01-05 19:47:36 +08:00
|
|
|
IOINT_CLW,
|
2011-01-05 19:47:37 +08:00
|
|
|
IOINT_CTC,
|
2011-01-05 19:47:38 +08:00
|
|
|
IOINT_APB,
|
2012-08-28 22:48:47 +08:00
|
|
|
IOINT_ADM,
|
2011-10-30 22:16:54 +08:00
|
|
|
IOINT_CSC,
|
2011-01-05 19:47:28 +08:00
|
|
|
NMI_NMI,
|
2005-04-17 06:20:36 +08:00
|
|
|
NR_IRQS,
|
|
|
|
};
|
|
|
|
|
2012-03-11 23:59:31 +08:00
|
|
|
struct ext_code {
|
|
|
|
unsigned short subcode;
|
|
|
|
unsigned short code;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
|
2011-05-26 15:48:24 +08:00
|
|
|
|
|
|
|
int register_external_interrupt(u16 code, ext_int_handler_t handler);
|
|
|
|
int unregister_external_interrupt(u16 code, ext_int_handler_t handler);
|
|
|
|
void service_subclass_irq_register(void);
|
|
|
|
void service_subclass_irq_unregister(void);
|
2012-03-23 18:13:05 +08:00
|
|
|
void measurement_alert_subclass_register(void);
|
|
|
|
void measurement_alert_subclass_unregister(void);
|
2011-05-26 15:48:24 +08:00
|
|
|
|
2011-01-05 19:47:28 +08:00
|
|
|
#endif /* _ASM_IRQ_H */
|