10 #include <linux/errno.h>
11 #include <linux/kernel.h>
13 #include <asm/ptrace.h>
14 #include <asm/traps.h>
22 #if defined(CONFIG_GDB_DEBUG)
44 static const struct irq_pins irq_assign_table0[16]={
55 static const struct irq_pins irq_assign_table1[16]={
67 #define IRQ_GPIO_MAP(irqbit,irq,port,bit) \
69 if (*(volatile unsigned short *)ITSR & irqbit) { \
70 port = irq_assign_table1[irq - EXT_IRQ0].port_no; \
71 bit = irq_assign_table1[irq - EXT_IRQ0].bit_no; \
73 port = irq_assign_table0[irq - EXT_IRQ0].port_no; \
74 bit = irq_assign_table0[irq - EXT_IRQ0].bit_no; \
80 if (irq >= EXT_IRQ0 && irq <= EXT_IRQ15) {
81 unsigned short ptn = 1 << (irq - EXT_IRQ0);
87 *(
volatile unsigned short *)
ISR &= ~ptn;
95 if (irq >= EXT_IRQ0 && irq <= EXT_IRQ15) {
97 unsigned short ptn = 1 << (irq - EXT_IRQ0);
99 *(
volatile unsigned short *)
ISR &= ~ptn;
100 *(
volatile unsigned short *)
IER &= ~ptn;