interrupt.h

来自「uC/IP源代码 2003-08-16[摘][码] 该软件是本人在uco」· C头文件 代码 · 共 32 行

H
32
字号
/* 
 * $Id: interrupt.h,v 1.1 2002/02/07 01:09:36 linfusheng Exp $
 */
#ifndef INTERRUPT_H
#define INTERRUPT_H
/*
 * Interrupt handler chains.  isa_intr_establish() inserts a handler into
 * the list.  The handler is called with its (single) argument.
 */

struct intrhand {
	int	(*ih_fun) __P((void *));
	void	*ih_arg;
	unsigned long	ih_count;
	int	ih_level;
	int	ih_irq;
	char	*ih_what;
};

extern struct intrhand intrhand[];

extern void init_intr_table(void);
/*
 * Set up an interrupt handler to start being called.
 * XXX PRONE TO RACE CONDITIONS, UGLY, 'INTERESTING' INSERTION ALGORITHM.
 */
extern void *intr_establish(int irq, int type, int level, int (*ih_fun) __P((void *)), void *ih_arg, char *ih_what);
#define IRQ_REQUEST(irq,func,arg)	\
	intr_establish(irq,0,0,func,arg,NULL)
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?