irq.h (a9aa1d02de36b450990b0e25a88fc2ff1c3e6b94) irq.h (f2ffa5ab74f4dfd598860f96ca37a71c4d0a28a8)
1/*
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, 03 by Ralf Baechle
8 */
9#ifndef _ASM_IRQ_H
10#define _ASM_IRQ_H
11
12#include <linux/linkage.h>
13#include <linux/smp.h>
14
15#include <asm/mipsmtregs.h>
16
17#include <irq.h>
18
1/*
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, 03 by Ralf Baechle
8 */
9#ifndef _ASM_IRQ_H
10#define _ASM_IRQ_H
11
12#include <linux/linkage.h>
13#include <linux/smp.h>
14
15#include <asm/mipsmtregs.h>
16
17#include <irq.h>
18
19static inline void irq_dispose_mapping(unsigned int virq)
20{
21 return;
22}
23
19#ifdef CONFIG_I8259
20static inline int irq_canonicalize(int irq)
21{
22 return ((irq == I8259A_IRQ_BASE + 2) ? I8259A_IRQ_BASE + 9 : irq);
23}
24#else
25#define irq_canonicalize(irq) (irq) /* Sane hardware, sane code ... */
26#endif

--- 115 unchanged lines hidden ---
24#ifdef CONFIG_I8259
25static inline int irq_canonicalize(int irq)
26{
27 return ((irq == I8259A_IRQ_BASE + 2) ? I8259A_IRQ_BASE + 9 : irq);
28}
29#else
30#define irq_canonicalize(irq) (irq) /* Sane hardware, sane code ... */
31#endif

--- 115 unchanged lines hidden ---