Path: blob/master/arch/microblaze/include/asm/irq.h
15126 views
/*1* Copyright (C) 2006 Atmark Techno, Inc.2*3* This file is subject to the terms and conditions of the GNU General Public4* License. See the file "COPYING" in the main directory of this archive5* for more details.6*/78#ifndef _ASM_MICROBLAZE_IRQ_H9#define _ASM_MICROBLAZE_IRQ_H1011#define NR_IRQS 3212#include <asm-generic/irq.h>1314/* This type is the placeholder for a hardware interrupt number. It has to15* be big enough to enclose whatever representation is used by a given16* platform.17*/18typedef unsigned long irq_hw_number_t;1920extern unsigned int nr_irq;2122#define NO_IRQ (-1)2324struct pt_regs;25extern void do_IRQ(struct pt_regs *regs);2627/** FIXME - not implement28* irq_dispose_mapping - Unmap an interrupt29* @virq: linux virq number of the interrupt to unmap30*/31static inline void irq_dispose_mapping(unsigned int virq)32{33return;34}3536struct irq_host;3738/**39* irq_create_mapping - Map a hardware interrupt into linux virq space40* @host: host owning this hardware interrupt or NULL for default host41* @hwirq: hardware irq number in that host space42*43* Only one mapping per hardware interrupt is permitted. Returns a linux44* virq number.45* If the sense/trigger is to be specified, set_irq_type() should be called46* on the number returned from that call.47*/48extern unsigned int irq_create_mapping(struct irq_host *host,49irq_hw_number_t hwirq);5051#endif /* _ASM_MICROBLAZE_IRQ_H */525354