blob: dfe832a3bfc71c04ca5361a89ea994e77332123d [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Russell King4baa9922008-08-02 10:55:55 +01003 * arch/arm/include/asm/mach/irq.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
5 * Copyright (C) 1995-2000 Russell King.
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7#ifndef __ASM_ARM_MACH_IRQ_H
8#define __ASM_ARM_MACH_IRQ_H
9
Thomas Gleixner4a2581a2006-07-01 22:30:09 +010010#include <linux/irq.h>
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012struct seq_file;
13
Russell King664399e2005-09-04 19:45:00 +010014/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 * This is internal. Do not use it.
16 */
Shawn Guobc896632012-06-28 14:42:08 +080017extern void init_FIQ(int);
Russell Kingf13cd412010-11-15 14:33:51 +000018extern int show_fiq_list(struct seq_file *, int);
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20/*
Thomas Gleixner4a2581a2006-07-01 22:30:09 +010021 * This is for easy migration, but should be changed in the source
Linus Torvalds1da177e2005-04-16 15:20:36 -070022 */
Thomas Gleixnerbd0b9ac2015-09-14 10:42:37 +020023#define do_bad_IRQ(desc) \
Thomas Gleixner4a2581a2006-07-01 22:30:09 +010024do { \
Thomas Gleixner239007b2009-11-17 16:46:45 +010025 raw_spin_lock(&desc->lock); \
Thomas Gleixnerbd0b9ac2015-09-14 10:42:37 +020026 handle_bad_irq(desc); \
Thomas Gleixner239007b2009-11-17 16:46:45 +010027 raw_spin_unlock(&desc->lock); \
Thomas Gleixner4a2581a2006-07-01 22:30:09 +010028} while(0)
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#endif