2005-04-17 00:20:36 +02:00
|
|
|
/* irq.h: FRV IRQ definitions
|
|
|
|
*
|
2006-09-26 08:32:04 +02:00
|
|
|
* Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
|
2005-04-17 00:20:36 +02:00
|
|
|
* 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_
|
|
|
|
|
|
|
|
/* this number is used when no interrupt has been assigned */
|
|
|
|
#define NO_IRQ (-1)
|
|
|
|
|
2006-09-26 08:32:04 +02:00
|
|
|
#define NR_IRQS 48
|
|
|
|
#define IRQ_BASE_CPU (0 * 16)
|
|
|
|
#define IRQ_BASE_FPGA (1 * 16)
|
|
|
|
#define IRQ_BASE_MB93493 (2 * 16)
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* probe returns a 32-bit IRQ mask:-/ */
|
2006-09-26 08:32:04 +02:00
|
|
|
#define MIN_PROBE_IRQ (NR_IRQS - 32)
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-09-26 08:32:04 +02:00
|
|
|
#ifndef __ASSEMBLY__
|
2005-04-17 00:20:36 +02:00
|
|
|
static inline int irq_canonicalize(int irq)
|
|
|
|
{
|
|
|
|
return irq;
|
|
|
|
}
|
2006-09-26 08:32:04 +02:00
|
|
|
#endif
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#endif /* _ASM_IRQ_H_ */
|