blob: 42a15f5ce0d08d9fefd8a47371e0e6c0402dc1e3 [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
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 * Changed by HuTao Apr18, 2003
7 *
8 * Copyright was missing when I got the code so took from MIPS arch ...MaTed---
9 * Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle
10 * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 by Ralf Baechle
11 *
12 * Adapted for BlackFin (ADI) by Ted Ma <mated@sympatico.ca>
13 * Copyright (c) 2002 Arcturus Networks Inc. (www.arcturusnetworks.com)
14 * Copyright (c) 2002 Lineo, Inc. <mattw@lineo.com>
15 */
16
17#ifndef _BFIN_IRQ_H_
18#define _BFIN_IRQ_H_
19
Mike Frysinger8f860012009-06-08 12:49:48 -040020#include <linux/irqflags.h>
21
22/* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
Bryan Wu639f6572008-08-27 10:51:02 +080023#include <mach/irq.h>
Bryan Wu1394f032007-05-06 14:50:22 -070024
Yi Li6a01f232009-01-07 23:14:39 +080025#if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE)
26# define NOP_PAD_ANOMALY_05000244 "nop; nop;"
27#else
28# define NOP_PAD_ANOMALY_05000244
29#endif
30
31#define idle_with_irq_disabled() \
32 __asm__ __volatile__( \
33 NOP_PAD_ANOMALY_05000244 \
34 ".align 8;" \
35 "sti %0;" \
36 "idle;" \
37 : \
38 : "d" (bfin_irq_flags) \
39 )
40
Mike Frysingerd5ce5282009-06-13 11:32:34 -040041#include <asm-generic/irq.h>
Yi Li6a01f232009-01-07 23:14:39 +080042
Bryan Wu1394f032007-05-06 14:50:22 -070043#endif /* _BFIN_IRQ_H_ */