irq.h 784 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4
#ifndef _ASM_IRQ_H
#define _ASM_IRQ_H

#include <linux/hardirq.h>
5
#include <linux/types.h>
L
Linus Torvalds 已提交
6 7 8 9

enum interruption_class {
	EXTERNAL_INTERRUPT,
	IO_INTERRUPT,
10 11 12 13 14 15 16 17 18
	EXTINT_CLK,
	EXTINT_IPI,
	EXTINT_TMR,
	EXTINT_TLA,
	EXTINT_PFL,
	EXTINT_DSD,
	EXTINT_VRT,
	EXTINT_SCP,
	EXTINT_IUC,
19
	EXTINT_CPM,
20
	IOINT_CIO,
21
	IOINT_QAI,
22
	IOINT_DAS,
23
	IOINT_C15,
24
	IOINT_C70,
25
	IOINT_TAP,
26
	IOINT_VMR,
27
	IOINT_LCS,
28
	IOINT_CLW,
29
	IOINT_CTC,
30
	IOINT_APB,
31
	IOINT_CSC,
32
	NMI_NMI,
L
Linus Torvalds 已提交
33 34 35
	NR_IRQS,
};

36 37 38 39 40 41 42
typedef void (*ext_int_handler_t)(unsigned int, unsigned int, unsigned long);

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);

43
#endif /* _ASM_IRQ_H */