1*a24ea603Sjmcneill /* $NetBSD: fdt_intr.h,v 1.8 2022/06/25 13:24:34 jmcneill Exp $ */ 2c6cfeef3Sjmcneill 3c6cfeef3Sjmcneill /*- 4c6cfeef3Sjmcneill * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca> 5c6cfeef3Sjmcneill * All rights reserved. 6c6cfeef3Sjmcneill * 7c6cfeef3Sjmcneill * Redistribution and use in source and binary forms, with or without 8c6cfeef3Sjmcneill * modification, are permitted provided that the following conditions 9c6cfeef3Sjmcneill * are met: 10c6cfeef3Sjmcneill * 1. Redistributions of source code must retain the above copyright 11c6cfeef3Sjmcneill * notice, this list of conditions and the following disclaimer. 12c6cfeef3Sjmcneill * 2. Redistributions in binary form must reproduce the above copyright 13c6cfeef3Sjmcneill * notice, this list of conditions and the following disclaimer in the 14c6cfeef3Sjmcneill * documentation and/or other materials provided with the distribution. 15c6cfeef3Sjmcneill * 16c6cfeef3Sjmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17c6cfeef3Sjmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18c6cfeef3Sjmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19c6cfeef3Sjmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20c6cfeef3Sjmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21c6cfeef3Sjmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22c6cfeef3Sjmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23c6cfeef3Sjmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24c6cfeef3Sjmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25c6cfeef3Sjmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26c6cfeef3Sjmcneill * SUCH DAMAGE. 27c6cfeef3Sjmcneill */ 28c6cfeef3Sjmcneill 29c6cfeef3Sjmcneill #ifndef _ARM_FDT_INTR_H 30c6cfeef3Sjmcneill #define _ARM_FDT_INTR_H 31c6cfeef3Sjmcneill 32c6cfeef3Sjmcneill #define ARM_IRQ_HANDLER _C_LABEL(arm_fdt_irq_handler) 3342d77c91Sjmcneill #define ARM_FIQ_HANDLER _C_LABEL(arm_fdt_fiq_handler) 34c6cfeef3Sjmcneill 35c6cfeef3Sjmcneill #ifndef _LOCORE 36c6cfeef3Sjmcneill 37c6cfeef3Sjmcneill #define __HAVE_PIC_SET_PRIORITY 3869b44ac7Sjmcneill #define __HAVE_PIC_PENDING_INTRS 39c6cfeef3Sjmcneill 4040d2bfe0Sjmcneill #define PIC_MAXSOURCES 8192 4140d2bfe0Sjmcneill #define PIC_MAXMAXSOURCES (PIC_MAXSOURCES * 2 + 32) 42c6cfeef3Sjmcneill 43c6cfeef3Sjmcneill void arm_fdt_irq_set_handler(void (*)(void *)); 44c6cfeef3Sjmcneill void arm_fdt_irq_handler(void *); 4542d77c91Sjmcneill void arm_fdt_fiq_set_handler(void (*)(void *)); 4642d77c91Sjmcneill void arm_fdt_fiq_handler(void *); 47c6cfeef3Sjmcneill 48c6cfeef3Sjmcneill #include <arm/pic/picvar.h> 49c6cfeef3Sjmcneill 50c6cfeef3Sjmcneill #endif 51c6cfeef3Sjmcneill 52c6cfeef3Sjmcneill #endif /* _ARM_FDT_INTR_H */ 53