URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-or32/] [irq.h] - Rev 1774
Go to most recent revision | Compare with Previous | Blame | View Log
#ifdef __KERNEL__ #ifndef _OR32_IRQ_H #define _OR32_IRQ_H #include <linux/config.h> #include <asm/machdep.h> #include <asm/atomic.h> extern void disable_irq(unsigned int); extern void disable_irq_nosync(unsigned int); extern void enable_irq(unsigned int); #define NR_IRQS 32 static __inline__ int irq_cannonicalize(int irq) { return (irq); } /* * "Generic" interrupt sources */ #define IRQ_UART_0 (2) /* interrupt source for UART dvice 0 */ #define IRQ_ETH_0 (4) /* interrupt source for Ethernet dvice 0 */ #define IRQ_PS2_0 (5) /* interrupt source for ps2 dvice 0 */ #define IRQ_SCHED_TIMER (0) /* interrupt source for scheduling timer */ /* * various flags for request_irq() */ #define IRQ_FLG_LOCK (0x0001) /* handler is not replaceable */ #define IRQ_FLG_REPLACE (0x0002) /* replace existing handler */ #define IRQ_FLG_PRI_HI (0x0004) #define IRQ_FLG_STD (0x8000) /* internally used */ /* * This structure has only 4 elements for speed reasons */ typedef struct irq_handler { void (*handler)(int, void *, struct pt_regs *); unsigned long flags; void *dev_id; const char *devname; } irq_handler_t; #endif /* _OR32_IRQ_H */ #endif /* __KERNEL__ */
Go to most recent revision | Compare with Previous | Blame | View Log