13090Sache/* $NetBSD: fdt_intr.h,v 1.8 2022/06/25 13:24:34 jmcneill Exp $ */ 23090Sache 33090Sache/*- 43090Sache * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca> 53090Sache * All rights reserved. 63090Sache * 73090Sache * Redistribution and use in source and binary forms, with or without 83090Sache * modification, are permitted provided that the following conditions 93090Sache * are met: 103090Sache * 1. Redistributions of source code must retain the above copyright 113090Sache * notice, this list of conditions and the following disclaimer. 123090Sache * 2. Redistributions in binary form must reproduce the above copyright 133090Sache * notice, this list of conditions and the following disclaimer in the 143090Sache * documentation and/or other materials provided with the distribution. 153090Sache * 163090Sache * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 173090Sache * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 183090Sache * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 193090Sache * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 203090Sache * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 213090Sache * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 223090Sache * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 233090Sache * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 243090Sache * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 253090Sache * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 263090Sache * SUCH DAMAGE. 273090Sache */ 283090Sache 293090Sache#ifndef _ARM_FDT_INTR_H 303090Sache#define _ARM_FDT_INTR_H 313090Sache 323090Sache#define ARM_IRQ_HANDLER _C_LABEL(arm_fdt_irq_handler) 333090Sache#define ARM_FIQ_HANDLER _C_LABEL(arm_fdt_fiq_handler) 343090Sache 353090Sache#ifndef _LOCORE 363090Sache 373090Sache#define __HAVE_PIC_SET_PRIORITY 383090Sache#define __HAVE_PIC_PENDING_INTRS 393090Sache 403090Sache#define PIC_MAXSOURCES 8192 413090Sache#define PIC_MAXMAXSOURCES (PIC_MAXSOURCES * 2 + 32) 423090Sache 433090Sachevoid arm_fdt_irq_set_handler(void (*)(void *)); 443090Sachevoid arm_fdt_irq_handler(void *); 453090Sachevoid arm_fdt_fiq_set_handler(void (*)(void *)); 463090Sachevoid arm_fdt_fiq_handler(void *); 473090Sache 483090Sache#include <arm/pic/picvar.h> 493090Sache 503090Sache#endif 513090Sache 523090Sache#endif /* _ARM_FDT_INTR_H */ 533090Sache