blob: 58b619215a50c7e279a310185911b88c2b40bb02 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* irq.h: FRV IRQ definitions
2 *
3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12#ifndef _ASM_IRQ_H_
13#define _ASM_IRQ_H_
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
16/*
17 * the system has an on-CPU PIC and another PIC on the FPGA and other PICs on other peripherals,
18 * so we do some routing in irq-routing.[ch] to reduce the number of false-positives seen by
19 * drivers
20 */
21
22/* this number is used when no interrupt has been assigned */
23#define NO_IRQ (-1)
24
25#define NR_IRQ_LOG2_ACTIONS_PER_GROUP 5
26#define NR_IRQ_ACTIONS_PER_GROUP (1 << NR_IRQ_LOG2_ACTIONS_PER_GROUP)
27#define NR_IRQ_GROUPS 4
28#define NR_IRQS (NR_IRQ_ACTIONS_PER_GROUP * NR_IRQ_GROUPS)
29
30/* probe returns a 32-bit IRQ mask:-/ */
31#define MIN_PROBE_IRQ (NR_IRQS - 32)
32
33static inline int irq_canonicalize(int irq)
34{
35 return irq;
36}
37
38extern void disable_irq_nosync(unsigned int irq);
39extern void disable_irq(unsigned int irq);
40extern void enable_irq(unsigned int irq);
41
42
43#endif /* _ASM_IRQ_H_ */