irq.c

来自「microwindows移植到S3C44B0的源码」· C语言 代码 · 共 45 行

C
45
字号
/* *  linux/arch/arm/mach-p52/irq.c *  2001 Mindspeed */#include <linux/init.h>#include <asm/mach/irq.h>#include <asm/hardware.h>#include <asm/io.h>#include <asm/irq.h>#include <asm/system.h> inline void p52_irq_ack(int irq){  *((unsigned long *)P52INT_STATUS) |= (1 << irq);}  void p52_mask_irq(unsigned int irq){  /* reset cooresponding bit in the 32bit Int mask register */   *((unsigned long *)P52INT_MASK) &= ~(1 << irq);}void p52_unmask_irq(unsigned int irq){  /* set cooresponding bit in the 32bit Int mask register */   *((unsigned long *)P52INT_MASK) |= (1 << irq);} void p52_mask_ack_irq(unsigned int irq){  p52_mask_irq(irq);  /* this is ok if int source is not hooked on GPIO */  *((unsigned long *)P52INT_STATUS) |= (1 << irq);}

⌨️ 快捷键说明

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