mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 22:55:21 +07:00
b2f051ae39
The old NO_IRQ define some platforms had was long ago declared obsolete and wrong. FRV should therefore not be re-introducing this, especially as IRQs are usually unsigned in the kernel. The "no IRQ" case is defined to be zero and Linus made this rather clear at the time. arch/frv shows no dependancy on this but it might show up driver fixes needing doing I guess Signed-off-by: Alan Cox <alan@redhat.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
31 lines
760 B
C
31 lines
760 B
C
/* irq.h: FRV IRQ definitions
|
|
*
|
|
* Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
|
|
* Written by David Howells (dhowells@redhat.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef _ASM_IRQ_H_
|
|
#define _ASM_IRQ_H_
|
|
|
|
#define NR_IRQS 48
|
|
#define IRQ_BASE_CPU (0 * 16)
|
|
#define IRQ_BASE_FPGA (1 * 16)
|
|
#define IRQ_BASE_MB93493 (2 * 16)
|
|
|
|
/* probe returns a 32-bit IRQ mask:-/ */
|
|
#define MIN_PROBE_IRQ (NR_IRQS - 32)
|
|
|
|
#ifndef __ASSEMBLY__
|
|
static inline int irq_canonicalize(int irq)
|
|
{
|
|
return irq;
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ASM_IRQ_H_ */
|