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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-or32/] [irq.h] - Blame information for rev 743

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 666 simons
#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 743 simons
#define IRQ_SCHED_TIMER (0)     /* interrupt source for scheduling timer */
18 666 simons
#define IRQ_UART_0      (15)    /* interrupt source for UART dvice 0 */
19 743 simons
#define IRQ_ETH_0       (16)    /* interrupt source for Ethernet dvice 0 */
20 666 simons
 
21
/*
22
 * various flags for request_irq()
23
 */
24
#define IRQ_FLG_LOCK    (0x0001)        /* handler is not replaceable   */
25
#define IRQ_FLG_REPLACE (0x0002)        /* replace existing handler     */
26
#define IRQ_FLG_PRI_HI  (0x0004)
27
#define IRQ_FLG_STD     (0x8000)        /* internally used              */
28
 
29
/*
30
 * This structure has only 4 elements for speed reasons
31
 */
32
typedef struct irq_handler {
33
        void            (*handler)(int, void *, struct pt_regs *);
34
        unsigned long   flags;
35
        void            *dev_id;
36
        const char      *devname;
37
} irq_handler_t;
38
 
39
/* count of spurious interrupts */
40
extern volatile unsigned int num_spurious;
41
 
42
#endif /* _OR32_IRQ_H_ */

powered by: WebSVN 2.1.0

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