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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * This file is subject to the terms and conditions of the GNU General Public
3
 * License.  See the file "COPYING" in the main directory of this archive
4
 * for more details.
5
 *
6
 * Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle
7
 * Copyright (C) 1995, 96, 97, 98, 99, 2000, 01, 02 by Ralf Baechle
8
 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
9
 * Copyright (C) 2001 Kanoj Sarcar
10
 */
11
#ifndef _ASM_IRQ_H
12
#define _ASM_IRQ_H
13
 
14
#include <linux/config.h>
15
#include <linux/linkage.h>
16
 
17
#define NR_IRQS 128             /* Largest number of ints of all machines.  */
18
 
19
#ifdef CONFIG_I8259
20
static inline int irq_cannonicalize(int irq)
21
{
22
        return ((irq == 2) ? 9 : irq);
23
}
24
#else
25
#define irq_cannonicalize(irq) (irq)    /* Sane hardware, sane code ... */
26
#endif
27
 
28
extern void disable_irq(unsigned int);
29
extern void disable_irq_nosync(unsigned int);
30
extern void enable_irq(unsigned int);
31
 
32
struct pt_regs;
33
extern asmlinkage unsigned int do_IRQ(int irq, struct pt_regs *regs);
34
 
35
/* Machine specific interrupt initialization  */
36
extern void (*irq_setup)(void);
37
 
38
extern void init_generic_irq(void);
39
 
40
#endif /* _ASM_IRQ_H */

powered by: WebSVN 2.1.0

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