18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* irq.h: IRQ registers on the Sparc. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net) 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _SPARC_IRQ_H 88c2ecf20Sopenharmony_ci#define _SPARC_IRQ_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* Allocated number of logical irq numbers. 118c2ecf20Sopenharmony_ci * sun4d boxes (ss2000e) should be OK with ~32. 128c2ecf20Sopenharmony_ci * Be on the safe side and make room for 64 138c2ecf20Sopenharmony_ci */ 148c2ecf20Sopenharmony_ci#define NR_IRQS 64 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#include <linux/interrupt.h> 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define irq_canonicalize(irq) (irq) 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_civoid __init init_IRQ(void); 218c2ecf20Sopenharmony_civoid __init sun4d_init_sbi_irq(void); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define NO_IRQ 0xffffffff 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif 26