OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-or32/] [irq.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _OR32_IRQ_H_
2
#define _OR32_IRQ_H_
3
 
4
extern void disable_irq(unsigned int);
5
extern void enable_irq(unsigned int);
6
 
7
#include <linux/config.h>
8
 
9
 
10
#define SYS_IRQS 32
11
#define NR_IRQS SYS_IRQS
12
 
13
/*
14
 * "Generic" interrupt sources
15
 */
16
 
17
#define IRQ_UART_0          (2) /* interrupt source for UART dvice 0 */
18
#define IRQ_ETH_0             (4)       /* interrupt source for Ethernet dvice 0 */
19
#define IRQ_PS2_0             (5)       /* interrupt source for ps2 dvice 0 */
20
#define IRQ_SCHED_TIMER (0)     /* interrupt source for scheduling timer */
21
 
22
/*
23
 * various flags for request_irq()
24
 */
25
#define IRQ_FLG_LOCK    (0x0001)        /* handler is not replaceable   */
26
#define IRQ_FLG_REPLACE (0x0002)        /* replace existing handler     */
27
#define IRQ_FLG_PRI_HI  (0x0004)
28
#define IRQ_FLG_STD     (0x8000)        /* internally used              */
29
 
30
/*
31
 * This structure has only 4 elements for speed reasons
32
 */
33
typedef struct irq_handler {
34
        void            (*handler)(int, void *, struct pt_regs *);
35
        unsigned long   flags;
36
        void            *dev_id;
37
        const char      *devname;
38
} irq_handler_t;
39
 
40
/* count of spurious interrupts */
41
extern volatile unsigned int num_spurious;
42
 
43
#endif /* _OR32_IRQ_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.