2012-05-30 15:02:49 -06:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved.
|
2013-01-22 04:59:30 -07:00
|
|
|
* Douglas Leung <douglas@mips.com>
|
|
|
|
* Steven J. Hill <sjhill@mips.com>
|
2012-05-30 15:02:49 -06:00
|
|
|
*/
|
|
|
|
#ifndef _MIPS_SEAD3INT_H
|
|
|
|
#define _MIPS_SEAD3INT_H
|
|
|
|
|
2014-10-20 13:03:53 -06:00
|
|
|
#include <linux/irqchip/mips-gic.h>
|
2014-09-18 15:47:27 -06:00
|
|
|
|
2012-05-30 15:02:49 -06:00
|
|
|
/* SEAD-3 GIC address space definitions. */
|
|
|
|
#define GIC_BASE_ADDR 0x1b1c0000
|
|
|
|
#define GIC_ADDRSPACE_SZ (128 * 1024)
|
|
|
|
|
2014-09-18 15:47:24 -06:00
|
|
|
/* CPU interrupt offsets */
|
|
|
|
#define CPU_INT_GIC 2
|
|
|
|
#define CPU_INT_EHCI 2
|
|
|
|
#define CPU_INT_UART0 4
|
|
|
|
#define CPU_INT_UART1 4
|
|
|
|
#define CPU_INT_NET 6
|
|
|
|
|
|
|
|
/* GIC interrupt offsets */
|
2014-09-18 15:47:27 -06:00
|
|
|
#define GIC_INT_NET GIC_SHARED_TO_HWIRQ(0)
|
|
|
|
#define GIC_INT_UART1 GIC_SHARED_TO_HWIRQ(2)
|
|
|
|
#define GIC_INT_UART0 GIC_SHARED_TO_HWIRQ(3)
|
|
|
|
#define GIC_INT_EHCI GIC_SHARED_TO_HWIRQ(5)
|
2014-09-18 15:47:24 -06:00
|
|
|
|
2012-05-30 15:02:49 -06:00
|
|
|
#endif /* !(_MIPS_SEAD3INT_H) */
|