blob: 3a66ebd754bd03604eca6efd4ed8b0efed7093cd [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* irq.h: FRV IRQ definitions
2 *
David Howells1bcbba32006-09-25 23:32:04 -07003 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 * 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
David Howells1bcbba32006-09-25 23:32:04 -070015#define NR_IRQS 48
16#define IRQ_BASE_CPU (0 * 16)
17#define IRQ_BASE_FPGA (1 * 16)
18#define IRQ_BASE_MB93493 (2 * 16)
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20/* probe returns a 32-bit IRQ mask:-/ */
David Howells1bcbba32006-09-25 23:32:04 -070021#define MIN_PROBE_IRQ (NR_IRQS - 32)
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
David Howells1bcbba32006-09-25 23:32:04 -070023#ifndef __ASSEMBLY__
Linus Torvalds1da177e2005-04-16 15:20:36 -070024static inline int irq_canonicalize(int irq)
25{
26 return irq;
27}
David Howells1bcbba32006-09-25 23:32:04 -070028#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
30#endif /* _ASM_IRQ_H_ */