Home | History | Annotate | Line # | Download | only in broadcom
bcm53xx_intr.h revision 1.1
      1  1.1  matt /* $NetBSD: bcm53xx_intr.h,v 1.1 2012/09/01 00:04:44 matt Exp $ */
      2  1.1  matt /*-
      3  1.1  matt  * Copyright (c) 2012 The NetBSD Foundation, Inc.
      4  1.1  matt  * All rights reserved.
      5  1.1  matt  *
      6  1.1  matt  * This code is derived from software contributed to The NetBSD Foundation
      7  1.1  matt  * by Matt Thomas of 3am Software Foundry.
      8  1.1  matt  *
      9  1.1  matt  * Redistribution and use in source and binary forms, with or without
     10  1.1  matt  * modification, are permitted provided that the following conditions
     11  1.1  matt  * are met:
     12  1.1  matt  * 1. Redistributions of source code must retain the above copyright
     13  1.1  matt  *    notice, this list of conditions and the following disclaimer.
     14  1.1  matt  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.1  matt  *    notice, this list of conditions and the following disclaimer in the
     16  1.1  matt  *    documentation and/or other materials provided with the distribution.
     17  1.1  matt  *
     18  1.1  matt  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     19  1.1  matt  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     20  1.1  matt  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     21  1.1  matt  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     22  1.1  matt  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     23  1.1  matt  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     24  1.1  matt  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     25  1.1  matt  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     26  1.1  matt  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     27  1.1  matt  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     28  1.1  matt  * POSSIBILITY OF SUCH DAMAGE.
     29  1.1  matt  */
     30  1.1  matt 
     31  1.1  matt #ifndef _ARM_BROADCOM_BCM53XX_INTR_H_
     32  1.1  matt #define _ARM_BROADCOM_BCM53XX_INTR_H_
     33  1.1  matt 
     34  1.1  matt #define	PIC_MAXSOURCES			256
     35  1.1  matt #define	PIC_MAXMAXSOURCES		280
     36  1.1  matt 
     37  1.1  matt /*
     38  1.1  matt  * The BCM53xx uses a generic interrupt controller so pull that stuff.
     39  1.1  matt  */
     40  1.1  matt #include <arm/cortex/gic_intr.h>
     41  1.1  matt #include <arm/cortex/a9tmr_intr.h>	/* A9 Timer PPIs */
     42  1.1  matt 
     43  1.1  matt #define	IRQ_L2CC			32
     44  1.1  matt #define	IRQ_PWRWDOG			33
     45  1.1  matt #define	IRQ_TRAP8			34
     46  1.1  matt #define	IRQ_TRAP1			35
     47  1.1  matt #define	IRQ_COMMTX			36
     48  1.1  matt #define	IRQ__RSVD37			37
     49  1.1  matt #define	IRQ_COMMRX			38
     50  1.1  matt #define	IRQ__RSVD39			39
     51  1.1  matt #define	IRQ_PMU				40
     52  1.1  matt #define	IRQ__RSVD41			41
     53  1.1  matt #define	IRQ_CTI				42
     54  1.1  matt #define	IRQ__RSVD43			43
     55  1.1  matt #define	IRQ_DEFLAG_CPU0			44
     56  1.1  matt #define	IRQ_DEFLAG_CPU1			45
     57  1.1  matt #define	IRQ_ARMCORE_M1_PINS_BUS		46
     58  1.1  matt #define	IRQ_PCIE0_M0_PINS_BUS		47
     59  1.1  matt #define	IRQ_PCIE1_M0_PINS_BUS		48
     60  1.1  matt #define	IRQ_PCIE2_M0_PINS_BUS		49
     61  1.1  matt #define	IRQ_DMA_M0_PINS_BUS		50
     62  1.1  matt #define	IRQ_AMAC_M0_PINS_BUS		51
     63  1.1  matt #define	IRQ_AMAC_M1_PINS_BUS		52
     64  1.1  matt #define	IRQ_AMAC_M2_PINS_BUS		53
     65  1.1  matt #define	IRQ_AMAC_M3_PINS_BUS		54
     66  1.1  matt #define	IRQ_USBH_M0_PINS_BUS		55
     67  1.1  matt #define	IRQ_USBH_M1_PINS_BUS		56
     68  1.1  matt #define	IRQ_SDIO_M0_PINS_BUS		57
     69  1.1  matt #define	IRQ_I2S_M0_PINS_BUS		58
     70  1.1  matt #define	IRQ_A9JTAG_M0_PINS_BUS		59
     71  1.1  matt #define	IRQ_JTAG_M0_PINS_BUS		60
     72  1.1  matt #define	IRQ_ARMCORE_ACP_PINS_BUS	61
     73  1.1  matt #define	IRQ_ARMCORE_S0_PINS_BUS		62
     74  1.1  matt #define	IRQ_DDR_S1_PINS_BUS		63
     75  1.1  matt #define	IRQ_DDR_S2_PINS_BUS		64
     76  1.1  matt #define	IRQ_PCIE0_S0_PINS_BUS		65
     77  1.1  matt #define	IRQ_PCIE1_S0_PINS_BUS		66
     78  1.1  matt #define	IRQ_PCIE2_S0_PINS_BUS		67
     79  1.1  matt #define	IRQ_ROM_S0_PINS_BUS		68
     80  1.1  matt #define	IRQ_NAND_S0_PINS_BUS		69
     81  1.1  matt #define	IRQ_QSPI_S0_PINS_BUS		70
     82  1.1  matt #define	IRQ_A9JTAG_S0_PINS_BUS		71
     83  1.1  matt #define	IRQ_APBX_S0_PINS_BUS		72
     84  1.1  matt #define	IRQ_DS_0_PINS_BUS		73
     85  1.1  matt #define	IRQ_DS_1_PINS_BUS		74
     86  1.1  matt #define	IRQ_DS_2_PINS_BUS		75
     87  1.1  matt #define	IRQ_DS_3_PINS_BUS		76
     88  1.1  matt #define	IRQ_DS_4_PINS_BUS		77
     89  1.1  matt #define	IRQ_DDR_CONTROLLER		78
     90  1.1  matt #define	IRQ_DMAC			79	/* 16 */
     91  1.1  matt #define	IRQ_DMAC_ABORT			95
     92  1.1  matt #define	IRQ_NAND_RD_MISS		96
     93  1.1  matt #define	IRQ_NAND_BLK_ERASE_COMP		97
     94  1.1  matt #define	IRQ_NAND_COPY_BACK_COMP		98
     95  1.1  matt #define	IRQ_NAND_PGM_PAGE_COMP		99
     96  1.1  matt #define	IRQ_NAND_RO_CTLR_READY		100
     97  1.1  matt #define	IRQ_NAND_RB_B			101
     98  1.1  matt #define	IRQ_NAND_ECC_MIPS_UNCORR	102
     99  1.1  matt #define	IRQ_NAND_ECC_MIPS_CORR		103
    100  1.1  matt #define	IRQ_SPI_FULLNESS_REACHED	104
    101  1.1  matt #define	IRQ_SPI_TRUNCATED	105
    102  1.1  matt #define	IRQ_SPI_IMPATIENT	106
    103  1.1  matt #define	IRQ_SPI_SESSION_DONE	107
    104  1.1  matt #define	IRQ_SPI_INTERRUPT_OVERREAD	108
    105  1.1  matt #define	IRQ_SPI_MSPI_INTERRUPT_DONE	109
    106  1.1  matt #define	IRQ_SPI_MSPI_INTERRUPT_HALT_SET_TRANSACTION_DONE	110
    107  1.1  matt #define	IRQ_USB2	111
    108  1.1  matt #define	IRQ_XHCI_0	112
    109  1.1  matt #define	IRQ_XHCI_1	113
    110  1.1  matt #define	IRQ_XHCI_2	114
    111  1.1  matt #define	IRQ_XHCI_3	115
    112  1.1  matt #define	IRQ_XHCI_HSE	116
    113  1.1  matt #define	IRQ_CCA		117
    114  1.1  matt #define	IRQ_UART2	118
    115  1.1  matt #define	IRQ_RSVD119	119
    116  1.1  matt #define	IRQ_I2S		120
    117  1.1  matt #define	IRQ_SMBUS	121
    118  1.1  matt #define	IRQ_TIMER0_1	122
    119  1.1  matt #define	IRQ_TIMER0_2	123
    120  1.1  matt #define	IRQ_TIMER1_1	124
    121  1.1  matt #define	IRQ_TIMER1_2	125
    122  1.1  matt #define	IRQ_RNG		126
    123  1.1  matt #define	IRQ_SWITCH_SOC	127	/* 32 */
    124  1.1  matt #define	 IRQ_NETWORK_LINK_EVENT	127 /* 8 */
    125  1.1  matt #define	 IRQ_PHY		135
    126  1.1  matt #define	 IRQ_TIMESYNC	136
    127  1.1  matt #define	 IRQ_IMP_SLEEP_TIMER	137 /* 3 */
    128  1.1  matt #define	IRQ_PCIE_INT0	159	/* 6 */
    129  1.1  matt #define	IRQ_PCIE_INT1	165	/* 6 */
    130  1.1  matt #define	IRQ_PCIE_INT2	171	/* 6 */
    131  1.1  matt #define	IRQ_SDIO	177
    132  1.1  matt #define	IRQ_FA		178
    133  1.1  matt #define	IRQ_GMAC0	179
    134  1.1  matt #define	IRQ_GMAC1	180
    135  1.1  matt #define	IRQ_GMAC2	181
    136  1.1  matt #define	IRQ_GMAC3	182
    137  1.1  matt 
    138  1.1  matt #endif /* _ARM_BROADCOM_BC53XX_INTR_H_ */
    139