M7350/kernel/arch/mips/include/asm/mach-pmcs-msp71xx/msp_slp_int.h

142 lines
5.3 KiB
C
Raw Permalink Normal View History

2024-09-09 08:52:07 +00:00
/*
* Defines for the MSP interrupt controller.
*
* Copyright (C) 1999 MIPS Technologies, Inc. All rights reserved.
* Author: Carsten Langgaard, carstenl@mips.com
*
* ########################################################################
*
* This program is free software; you can distribute it and/or modify it
* under the terms of the GNU General Public License (Version 2) as
* published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
*
* ########################################################################
*/
#ifndef _MSP_SLP_INT_H
#define _MSP_SLP_INT_H
/*
* The PMC-Sierra SLP interrupts are arranged in a 3 level cascaded
2024-09-09 08:57:42 +00:00
* hierarchical system. The first level are the direct MIPS interrupts
2024-09-09 08:52:07 +00:00
* and are assigned the interrupt range 0-7. The second level is the SLM
2024-09-09 08:57:42 +00:00
* interrupt controller and is assigned the range 8-39. The third level
2024-09-09 08:52:07 +00:00
* comprises the Peripherial block, the PCI block, the PCI MSI block and
* the SLP. The PCI interrupts and the SLP errors are handled by the
* relevant subsystems so the core interrupt code needs only concern
* itself with the Peripheral block. These are assigned interrupts in
* the range 40-71.
*/
/*
* IRQs directly connected to CPU
*/
#define MSP_MIPS_INTBASE 0
2024-09-09 08:57:42 +00:00
#define MSP_INT_SW0 0 /* IRQ for swint0, C_SW0 */
#define MSP_INT_SW1 1 /* IRQ for swint1, C_SW1 */
#define MSP_INT_MAC0 2 /* IRQ for MAC 0, C_IRQ0 */
#define MSP_INT_MAC1 3 /* IRQ for MAC 1, C_IRQ1 */
#define MSP_INT_C_IRQ2 4 /* Wired off, C_IRQ2 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_VE 5 /* IRQ for Voice Engine, C_IRQ3 */
#define MSP_INT_SLP 6 /* IRQ for SLM block, C_IRQ4 */
#define MSP_INT_TIMER 7 /* IRQ for the MIPS timer, C_IRQ5 */
/*
* IRQs cascaded on CPU interrupt 4 (CAUSE bit 12, C_IRQ4)
* These defines should be tied to the register definition for the SLM
* interrupt routine. For now, just use hard-coded values.
*/
#define MSP_SLP_INTBASE (MSP_MIPS_INTBASE + 8)
#define MSP_INT_EXT0 (MSP_SLP_INTBASE + 0)
2024-09-09 08:57:42 +00:00
/* External interrupt 0 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_EXT1 (MSP_SLP_INTBASE + 1)
2024-09-09 08:57:42 +00:00
/* External interrupt 1 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_EXT2 (MSP_SLP_INTBASE + 2)
2024-09-09 08:57:42 +00:00
/* External interrupt 2 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_EXT3 (MSP_SLP_INTBASE + 3)
2024-09-09 08:57:42 +00:00
/* External interrupt 3 */
/* Reserved 4-7 */
2024-09-09 08:52:07 +00:00
/*
*************************************************************************
* DANGER/DANGER/DANGER/DANGER/DANGER/DANGER/DANGER/DANGER/DANGER/DANGER *
2024-09-09 08:57:42 +00:00
* Some MSP produces have this interrupt labelled as Voice and some are *
* SEC mbox ... *
2024-09-09 08:52:07 +00:00
*************************************************************************
*/
#define MSP_INT_SLP_VE (MSP_SLP_INTBASE + 8)
/* Cascaded IRQ for Voice Engine*/
#define MSP_INT_SLP_TDM (MSP_SLP_INTBASE + 9)
2024-09-09 08:57:42 +00:00
/* TDM interrupt */
2024-09-09 08:52:07 +00:00
#define MSP_INT_SLP_MAC0 (MSP_SLP_INTBASE + 10)
2024-09-09 08:57:42 +00:00
/* Cascaded IRQ for MAC 0 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_SLP_MAC1 (MSP_SLP_INTBASE + 11)
2024-09-09 08:57:42 +00:00
/* Cascaded IRQ for MAC 1 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_SEC (MSP_SLP_INTBASE + 12)
2024-09-09 08:57:42 +00:00
/* IRQ for security engine */
#define MSP_INT_PER (MSP_SLP_INTBASE + 13)
/* Peripheral interrupt */
#define MSP_INT_TIMER0 (MSP_SLP_INTBASE + 14)
/* SLP timer 0 */
#define MSP_INT_TIMER1 (MSP_SLP_INTBASE + 15)
/* SLP timer 1 */
#define MSP_INT_TIMER2 (MSP_SLP_INTBASE + 16)
/* SLP timer 2 */
#define MSP_INT_SLP_TIMER (MSP_SLP_INTBASE + 17)
/* Cascaded MIPS timer */
2024-09-09 08:52:07 +00:00
#define MSP_INT_BLKCP (MSP_SLP_INTBASE + 18)
2024-09-09 08:57:42 +00:00
/* Block Copy */
2024-09-09 08:52:07 +00:00
#define MSP_INT_UART0 (MSP_SLP_INTBASE + 19)
2024-09-09 08:57:42 +00:00
/* UART 0 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_PCI (MSP_SLP_INTBASE + 20)
2024-09-09 08:57:42 +00:00
/* PCI subsystem */
2024-09-09 08:52:07 +00:00
#define MSP_INT_PCI_DBELL (MSP_SLP_INTBASE + 21)
2024-09-09 08:57:42 +00:00
/* PCI doorbell */
2024-09-09 08:52:07 +00:00
#define MSP_INT_PCI_MSI (MSP_SLP_INTBASE + 22)
2024-09-09 08:57:42 +00:00
/* PCI Message Signal */
2024-09-09 08:52:07 +00:00
#define MSP_INT_PCI_BC0 (MSP_SLP_INTBASE + 23)
2024-09-09 08:57:42 +00:00
/* PCI Block Copy 0 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_PCI_BC1 (MSP_SLP_INTBASE + 24)
2024-09-09 08:57:42 +00:00
/* PCI Block Copy 1 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_SLP_ERR (MSP_SLP_INTBASE + 25)
2024-09-09 08:57:42 +00:00
/* SLP error condition */
2024-09-09 08:52:07 +00:00
#define MSP_INT_MAC2 (MSP_SLP_INTBASE + 26)
2024-09-09 08:57:42 +00:00
/* IRQ for MAC2 */
/* Reserved 26-31 */
2024-09-09 08:52:07 +00:00
/*
* IRQs cascaded on SLP PER interrupt (MSP_INT_PER)
*/
#define MSP_PER_INTBASE (MSP_SLP_INTBASE + 32)
2024-09-09 08:57:42 +00:00
/* Reserved 0-1 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_UART1 (MSP_PER_INTBASE + 2)
2024-09-09 08:57:42 +00:00
/* UART 1 */
/* Reserved 3-5 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_2WIRE (MSP_PER_INTBASE + 6)
2024-09-09 08:57:42 +00:00
/* 2-wire */
2024-09-09 08:52:07 +00:00
#define MSP_INT_TM0 (MSP_PER_INTBASE + 7)
/* Peripheral timer block out 0 */
#define MSP_INT_TM1 (MSP_PER_INTBASE + 8)
/* Peripheral timer block out 1 */
2024-09-09 08:57:42 +00:00
/* Reserved 9 */
2024-09-09 08:52:07 +00:00
#define MSP_INT_SPRX (MSP_PER_INTBASE + 10)
2024-09-09 08:57:42 +00:00
/* SPI RX complete */
2024-09-09 08:52:07 +00:00
#define MSP_INT_SPTX (MSP_PER_INTBASE + 11)
2024-09-09 08:57:42 +00:00
/* SPI TX complete */
2024-09-09 08:52:07 +00:00
#define MSP_INT_GPIO (MSP_PER_INTBASE + 12)
2024-09-09 08:57:42 +00:00
/* GPIO */
2024-09-09 08:52:07 +00:00
#define MSP_INT_PER_ERR (MSP_PER_INTBASE + 13)
2024-09-09 08:57:42 +00:00
/* Peripheral error */
/* Reserved 14-31 */
2024-09-09 08:52:07 +00:00
#endif /* !_MSP_SLP_INT_H */