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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-or32/] [irq.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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