mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
b24413180f
Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of the kernel, which is GPL version 2. Update the files which contain no license information with the 'GPL-2.0' SPDX license identifier. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. How this work was done: Patches were generated and checked against linux-4.14-rc6 for a subset of the use cases: - file had no licensing information it it. - file was a */uapi/* one with no licensing information in it, - file was a */uapi/* one with existing licensing information, Further patches will be generated in subsequent months to fix up cases where non-standard license headers were used, and references to license had to be inferred by heuristics based on keywords. The analysis to determine which SPDX License Identifier to be applied to a file was done in a spreadsheet of side by side results from of the output of two independent scanners (ScanCode & Windriver) producing SPDX tag:value files created by Philippe Ombredanne. Philippe prepared the base worksheet, and did an initial spot review of a few 1000 files. The 4.13 kernel was the starting point of the analysis with 60,537 files assessed. Kate Stewart did a file by file comparison of the scanner results in the spreadsheet to determine which SPDX license identifier(s) to be applied to the file. She confirmed any determination that was not immediately clear with lawyers working with the Linux Foundation. Criteria used to select files for SPDX license identifier tagging was: - Files considered eligible had to be source code files. - Make and config files were included as candidates if they contained >5 lines of source - File already had some variant of a license header in it (even if <5 lines). All documentation files were explicitly excluded. The following heuristics were used to determine which SPDX license identifiers to apply. - when both scanners couldn't find any license traces, file was considered to have no license information in it, and the top level COPYING file license applied. For non */uapi/* files that summary was: SPDX license identifier # files ---------------------------------------------------|------- GPL-2.0 11139 and resulted in the first patch in this series. If that file was a */uapi/* path one, it was "GPL-2.0 WITH Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was: SPDX license identifier # files ---------------------------------------------------|------- GPL-2.0 WITH Linux-syscall-note 930 and resulted in the second patch in this series. - if a file had some form of licensing information in it, and was one of the */uapi/* ones, it was denoted with the Linux-syscall-note if any GPL family license was found in the file or had no licensing in it (per prior point). Results summary: SPDX license identifier # files ---------------------------------------------------|------ GPL-2.0 WITH Linux-syscall-note 270 GPL-2.0+ WITH Linux-syscall-note 169 ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21 ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17 LGPL-2.1+ WITH Linux-syscall-note 15 GPL-1.0+ WITH Linux-syscall-note 14 ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5 LGPL-2.0+ WITH Linux-syscall-note 4 LGPL-2.1 WITH Linux-syscall-note 3 ((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3 ((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1 and that resulted in the third patch in this series. - when the two scanners agreed on the detected license(s), that became the concluded license(s). - when there was disagreement between the two scanners (one detected a license but the other didn't, or they both detected different licenses) a manual inspection of the file occurred. - In most cases a manual inspection of the information in the file resulted in a clear resolution of the license that should apply (and which scanner probably needed to revisit its heuristics). - When it was not immediately clear, the license identifier was confirmed with lawyers working with the Linux Foundation. - If there was any question as to the appropriate license identifier, the file was flagged for further research and to be revisited later in time. In total, over 70 hours of logged manual review was done on the spreadsheet to determine the SPDX license identifiers to apply to the source files by Kate, Philippe, Thomas and, in some cases, confirmation by lawyers working with the Linux Foundation. Kate also obtained a third independent scan of the 4.13 code base from FOSSology, and compared selected files where the other two scanners disagreed against that SPDX file, to see if there was new insights. The Windriver scanner is based on an older version of FOSSology in part, so they are related. Thomas did random spot checks in about 500 files from the spreadsheets for the uapi headers and agreed with SPDX license identifier in the files he inspected. For the non-uapi files Thomas did random spot checks in about 15000 files. In initial set of patches against 4.14-rc6, 3 files were found to have copy/paste license identifier errors, and have been fixed to reflect the correct identifier. Additionally Philippe spent 10 hours this week doing a detailed manual inspection and review of the 12,461 patched files from the initial patch version early this week with: - a full scancode scan run, collecting the matched texts, detected license ids and scores - reviewing anything where there was a license detected (about 500+ files) to ensure that the applied SPDX license was correct - reviewing anything where there was no detection but the patch license was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied SPDX license was correct This produced a worksheet with 20 files needing minor correction. This worksheet was then exported into 3 different .csv files for the different types of files to be modified. These .csv files were then reviewed by Greg. Thomas wrote a script to parse the csv files and add the proper SPDX tag to the file, in the format that the file expected. This script was further refined by Greg based on the output to detect more types of files automatically and to distinguish between header and source .c files (which need different comment types.) Finally Greg ran the script using the .csv files to generate the patches. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1069 lines
38 KiB
C
1069 lines
38 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef BCM63XX_CPU_H_
|
|
#define BCM63XX_CPU_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/init.h>
|
|
|
|
/*
|
|
* Macro to fetch bcm63xx cpu id and revision, should be optimized at
|
|
* compile time if only one CPU support is enabled (idea stolen from
|
|
* arm mach-types)
|
|
*/
|
|
#define BCM3368_CPU_ID 0x3368
|
|
#define BCM6328_CPU_ID 0x6328
|
|
#define BCM6338_CPU_ID 0x6338
|
|
#define BCM6345_CPU_ID 0x6345
|
|
#define BCM6348_CPU_ID 0x6348
|
|
#define BCM6358_CPU_ID 0x6358
|
|
#define BCM6362_CPU_ID 0x6362
|
|
#define BCM6368_CPU_ID 0x6368
|
|
|
|
void __init bcm63xx_cpu_init(void);
|
|
u8 bcm63xx_get_cpu_rev(void);
|
|
unsigned int bcm63xx_get_cpu_freq(void);
|
|
|
|
static inline u16 __pure __bcm63xx_get_cpu_id(const u16 cpu_id)
|
|
{
|
|
switch (cpu_id) {
|
|
#ifdef CONFIG_BCM63XX_CPU_3368
|
|
case BCM3368_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6328
|
|
case BCM6328_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6338
|
|
case BCM6338_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6345
|
|
case BCM6345_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6348
|
|
case BCM6348_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6358
|
|
case BCM6358_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6362
|
|
case BCM6362_CPU_ID:
|
|
#endif
|
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6368
|
|
case BCM6368_CPU_ID:
|
|
#endif
|
|
break;
|
|
default:
|
|
unreachable();
|
|
}
|
|
|
|
return cpu_id;
|
|
}
|
|
|
|
extern u16 bcm63xx_cpu_id;
|
|
|
|
static inline u16 __pure bcm63xx_get_cpu_id(void)
|
|
{
|
|
const u16 cpu_id = bcm63xx_cpu_id;
|
|
|
|
return __bcm63xx_get_cpu_id(cpu_id);
|
|
}
|
|
|
|
#define BCMCPU_IS_3368() (bcm63xx_get_cpu_id() == BCM3368_CPU_ID)
|
|
#define BCMCPU_IS_6328() (bcm63xx_get_cpu_id() == BCM6328_CPU_ID)
|
|
#define BCMCPU_IS_6338() (bcm63xx_get_cpu_id() == BCM6338_CPU_ID)
|
|
#define BCMCPU_IS_6345() (bcm63xx_get_cpu_id() == BCM6345_CPU_ID)
|
|
#define BCMCPU_IS_6348() (bcm63xx_get_cpu_id() == BCM6348_CPU_ID)
|
|
#define BCMCPU_IS_6358() (bcm63xx_get_cpu_id() == BCM6358_CPU_ID)
|
|
#define BCMCPU_IS_6362() (bcm63xx_get_cpu_id() == BCM6362_CPU_ID)
|
|
#define BCMCPU_IS_6368() (bcm63xx_get_cpu_id() == BCM6368_CPU_ID)
|
|
|
|
/*
|
|
* While registers sets are (mostly) the same across 63xx CPU, base
|
|
* address of these sets do change.
|
|
*/
|
|
enum bcm63xx_regs_set {
|
|
RSET_DSL_LMEM = 0,
|
|
RSET_PERF,
|
|
RSET_TIMER,
|
|
RSET_WDT,
|
|
RSET_UART0,
|
|
RSET_UART1,
|
|
RSET_GPIO,
|
|
RSET_SPI,
|
|
RSET_HSSPI,
|
|
RSET_UDC0,
|
|
RSET_OHCI0,
|
|
RSET_OHCI_PRIV,
|
|
RSET_USBH_PRIV,
|
|
RSET_USBD,
|
|
RSET_USBDMA,
|
|
RSET_MPI,
|
|
RSET_PCMCIA,
|
|
RSET_PCIE,
|
|
RSET_DSL,
|
|
RSET_ENET0,
|
|
RSET_ENET1,
|
|
RSET_ENETDMA,
|
|
RSET_ENETDMAC,
|
|
RSET_ENETDMAS,
|
|
RSET_ENETSW,
|
|
RSET_EHCI0,
|
|
RSET_SDRAM,
|
|
RSET_MEMC,
|
|
RSET_DDR,
|
|
RSET_M2M,
|
|
RSET_ATM,
|
|
RSET_XTM,
|
|
RSET_XTMDMA,
|
|
RSET_XTMDMAC,
|
|
RSET_XTMDMAS,
|
|
RSET_PCM,
|
|
RSET_PCMDMA,
|
|
RSET_PCMDMAC,
|
|
RSET_PCMDMAS,
|
|
RSET_RNG,
|
|
RSET_MISC
|
|
};
|
|
|
|
#define RSET_DSL_LMEM_SIZE (64 * 1024 * 4)
|
|
#define RSET_DSL_SIZE 4096
|
|
#define RSET_WDT_SIZE 12
|
|
#define BCM_6338_RSET_SPI_SIZE 64
|
|
#define BCM_6348_RSET_SPI_SIZE 64
|
|
#define BCM_6358_RSET_SPI_SIZE 1804
|
|
#define BCM_6368_RSET_SPI_SIZE 1804
|
|
#define RSET_ENET_SIZE 2048
|
|
#define RSET_ENETDMA_SIZE 256
|
|
#define RSET_6345_ENETDMA_SIZE 64
|
|
#define RSET_ENETDMAC_SIZE(chans) (16 * (chans))
|
|
#define RSET_ENETDMAS_SIZE(chans) (16 * (chans))
|
|
#define RSET_ENETSW_SIZE 65536
|
|
#define RSET_UART_SIZE 24
|
|
#define RSET_HSSPI_SIZE 1536
|
|
#define RSET_UDC_SIZE 256
|
|
#define RSET_OHCI_SIZE 256
|
|
#define RSET_EHCI_SIZE 256
|
|
#define RSET_USBD_SIZE 256
|
|
#define RSET_USBDMA_SIZE 1280
|
|
#define RSET_PCMCIA_SIZE 12
|
|
#define RSET_M2M_SIZE 256
|
|
#define RSET_ATM_SIZE 4096
|
|
#define RSET_XTM_SIZE 10240
|
|
#define RSET_XTMDMA_SIZE 256
|
|
#define RSET_XTMDMAC_SIZE(chans) (16 * (chans))
|
|
#define RSET_XTMDMAS_SIZE(chans) (16 * (chans))
|
|
#define RSET_RNG_SIZE 20
|
|
|
|
/*
|
|
* 3368 register sets base address
|
|
*/
|
|
#define BCM_3368_DSL_LMEM_BASE (0xdeadbeef)
|
|
#define BCM_3368_PERF_BASE (0xfff8c000)
|
|
#define BCM_3368_TIMER_BASE (0xfff8c040)
|
|
#define BCM_3368_WDT_BASE (0xfff8c080)
|
|
#define BCM_3368_UART0_BASE (0xfff8c100)
|
|
#define BCM_3368_UART1_BASE (0xfff8c120)
|
|
#define BCM_3368_GPIO_BASE (0xfff8c080)
|
|
#define BCM_3368_SPI_BASE (0xfff8c800)
|
|
#define BCM_3368_HSSPI_BASE (0xdeadbeef)
|
|
#define BCM_3368_UDC0_BASE (0xdeadbeef)
|
|
#define BCM_3368_USBDMA_BASE (0xdeadbeef)
|
|
#define BCM_3368_OHCI0_BASE (0xdeadbeef)
|
|
#define BCM_3368_OHCI_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_3368_USBH_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_3368_USBD_BASE (0xdeadbeef)
|
|
#define BCM_3368_MPI_BASE (0xfff80000)
|
|
#define BCM_3368_PCMCIA_BASE (0xfff80054)
|
|
#define BCM_3368_PCIE_BASE (0xdeadbeef)
|
|
#define BCM_3368_SDRAM_REGS_BASE (0xdeadbeef)
|
|
#define BCM_3368_DSL_BASE (0xdeadbeef)
|
|
#define BCM_3368_UBUS_BASE (0xdeadbeef)
|
|
#define BCM_3368_ENET0_BASE (0xfff98000)
|
|
#define BCM_3368_ENET1_BASE (0xfff98800)
|
|
#define BCM_3368_ENETDMA_BASE (0xfff99800)
|
|
#define BCM_3368_ENETDMAC_BASE (0xfff99900)
|
|
#define BCM_3368_ENETDMAS_BASE (0xfff99a00)
|
|
#define BCM_3368_ENETSW_BASE (0xdeadbeef)
|
|
#define BCM_3368_EHCI0_BASE (0xdeadbeef)
|
|
#define BCM_3368_SDRAM_BASE (0xdeadbeef)
|
|
#define BCM_3368_MEMC_BASE (0xfff84000)
|
|
#define BCM_3368_DDR_BASE (0xdeadbeef)
|
|
#define BCM_3368_M2M_BASE (0xdeadbeef)
|
|
#define BCM_3368_ATM_BASE (0xdeadbeef)
|
|
#define BCM_3368_XTM_BASE (0xdeadbeef)
|
|
#define BCM_3368_XTMDMA_BASE (0xdeadbeef)
|
|
#define BCM_3368_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_3368_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_3368_PCM_BASE (0xfff9c200)
|
|
#define BCM_3368_PCMDMA_BASE (0xdeadbeef)
|
|
#define BCM_3368_PCMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_3368_PCMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_3368_RNG_BASE (0xdeadbeef)
|
|
#define BCM_3368_MISC_BASE (0xdeadbeef)
|
|
|
|
/*
|
|
* 6328 register sets base address
|
|
*/
|
|
#define BCM_6328_DSL_LMEM_BASE (0xdeadbeef)
|
|
#define BCM_6328_PERF_BASE (0xb0000000)
|
|
#define BCM_6328_TIMER_BASE (0xb0000040)
|
|
#define BCM_6328_WDT_BASE (0xb000005c)
|
|
#define BCM_6328_UART0_BASE (0xb0000100)
|
|
#define BCM_6328_UART1_BASE (0xb0000120)
|
|
#define BCM_6328_GPIO_BASE (0xb0000080)
|
|
#define BCM_6328_SPI_BASE (0xdeadbeef)
|
|
#define BCM_6328_HSSPI_BASE (0xb0001000)
|
|
#define BCM_6328_UDC0_BASE (0xdeadbeef)
|
|
#define BCM_6328_USBDMA_BASE (0xb000c000)
|
|
#define BCM_6328_OHCI0_BASE (0xb0002600)
|
|
#define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6328_USBH_PRIV_BASE (0xb0002700)
|
|
#define BCM_6328_USBD_BASE (0xb0002400)
|
|
#define BCM_6328_MPI_BASE (0xdeadbeef)
|
|
#define BCM_6328_PCMCIA_BASE (0xdeadbeef)
|
|
#define BCM_6328_PCIE_BASE (0xb0e40000)
|
|
#define BCM_6328_SDRAM_REGS_BASE (0xdeadbeef)
|
|
#define BCM_6328_DSL_BASE (0xb0001900)
|
|
#define BCM_6328_UBUS_BASE (0xdeadbeef)
|
|
#define BCM_6328_ENET0_BASE (0xdeadbeef)
|
|
#define BCM_6328_ENET1_BASE (0xdeadbeef)
|
|
#define BCM_6328_ENETDMA_BASE (0xb000d800)
|
|
#define BCM_6328_ENETDMAC_BASE (0xb000da00)
|
|
#define BCM_6328_ENETDMAS_BASE (0xb000dc00)
|
|
#define BCM_6328_ENETSW_BASE (0xb0e00000)
|
|
#define BCM_6328_EHCI0_BASE (0xb0002500)
|
|
#define BCM_6328_SDRAM_BASE (0xdeadbeef)
|
|
#define BCM_6328_MEMC_BASE (0xdeadbeef)
|
|
#define BCM_6328_DDR_BASE (0xb0003000)
|
|
#define BCM_6328_M2M_BASE (0xdeadbeef)
|
|
#define BCM_6328_ATM_BASE (0xdeadbeef)
|
|
#define BCM_6328_XTM_BASE (0xdeadbeef)
|
|
#define BCM_6328_XTMDMA_BASE (0xb000b800)
|
|
#define BCM_6328_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6328_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6328_PCM_BASE (0xb000a800)
|
|
#define BCM_6328_PCMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6328_PCMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6328_PCMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6328_RNG_BASE (0xdeadbeef)
|
|
#define BCM_6328_MISC_BASE (0xb0001800)
|
|
#define BCM_6328_OTP_BASE (0xb0000600)
|
|
|
|
/*
|
|
* 6338 register sets base address
|
|
*/
|
|
#define BCM_6338_DSL_LMEM_BASE (0xfff00000)
|
|
#define BCM_6338_PERF_BASE (0xfffe0000)
|
|
#define BCM_6338_BB_BASE (0xfffe0100)
|
|
#define BCM_6338_TIMER_BASE (0xfffe0200)
|
|
#define BCM_6338_WDT_BASE (0xfffe021c)
|
|
#define BCM_6338_UART0_BASE (0xfffe0300)
|
|
#define BCM_6338_UART1_BASE (0xdeadbeef)
|
|
#define BCM_6338_GPIO_BASE (0xfffe0400)
|
|
#define BCM_6338_SPI_BASE (0xfffe0c00)
|
|
#define BCM_6338_HSSPI_BASE (0xdeadbeef)
|
|
#define BCM_6338_UDC0_BASE (0xdeadbeef)
|
|
#define BCM_6338_USBDMA_BASE (0xfffe2400)
|
|
#define BCM_6338_OHCI0_BASE (0xdeadbeef)
|
|
#define BCM_6338_OHCI_PRIV_BASE (0xfffe3000)
|
|
#define BCM_6338_USBH_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6338_USBD_BASE (0xdeadbeef)
|
|
#define BCM_6338_MPI_BASE (0xfffe3160)
|
|
#define BCM_6338_PCMCIA_BASE (0xdeadbeef)
|
|
#define BCM_6338_PCIE_BASE (0xdeadbeef)
|
|
#define BCM_6338_SDRAM_REGS_BASE (0xfffe3100)
|
|
#define BCM_6338_DSL_BASE (0xfffe1000)
|
|
#define BCM_6338_UBUS_BASE (0xdeadbeef)
|
|
#define BCM_6338_ENET0_BASE (0xfffe2800)
|
|
#define BCM_6338_ENET1_BASE (0xdeadbeef)
|
|
#define BCM_6338_ENETDMA_BASE (0xfffe2400)
|
|
#define BCM_6338_ENETDMAC_BASE (0xfffe2500)
|
|
#define BCM_6338_ENETDMAS_BASE (0xfffe2600)
|
|
#define BCM_6338_ENETSW_BASE (0xdeadbeef)
|
|
#define BCM_6338_EHCI0_BASE (0xdeadbeef)
|
|
#define BCM_6338_SDRAM_BASE (0xfffe3100)
|
|
#define BCM_6338_MEMC_BASE (0xdeadbeef)
|
|
#define BCM_6338_DDR_BASE (0xdeadbeef)
|
|
#define BCM_6338_M2M_BASE (0xdeadbeef)
|
|
#define BCM_6338_ATM_BASE (0xfffe2000)
|
|
#define BCM_6338_XTM_BASE (0xdeadbeef)
|
|
#define BCM_6338_XTMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6338_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6338_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6338_PCM_BASE (0xdeadbeef)
|
|
#define BCM_6338_PCMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6338_PCMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6338_PCMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6338_RNG_BASE (0xdeadbeef)
|
|
#define BCM_6338_MISC_BASE (0xdeadbeef)
|
|
|
|
/*
|
|
* 6345 register sets base address
|
|
*/
|
|
#define BCM_6345_DSL_LMEM_BASE (0xfff00000)
|
|
#define BCM_6345_PERF_BASE (0xfffe0000)
|
|
#define BCM_6345_BB_BASE (0xfffe0100)
|
|
#define BCM_6345_TIMER_BASE (0xfffe0200)
|
|
#define BCM_6345_WDT_BASE (0xfffe021c)
|
|
#define BCM_6345_UART0_BASE (0xfffe0300)
|
|
#define BCM_6345_UART1_BASE (0xdeadbeef)
|
|
#define BCM_6345_GPIO_BASE (0xfffe0400)
|
|
#define BCM_6345_SPI_BASE (0xdeadbeef)
|
|
#define BCM_6345_HSSPI_BASE (0xdeadbeef)
|
|
#define BCM_6345_UDC0_BASE (0xdeadbeef)
|
|
#define BCM_6345_USBDMA_BASE (0xfffe2800)
|
|
#define BCM_6345_ENET0_BASE (0xfffe1800)
|
|
#define BCM_6345_ENETDMA_BASE (0xfffe2800)
|
|
#define BCM_6345_ENETDMAC_BASE (0xfffe2840)
|
|
#define BCM_6345_ENETDMAS_BASE (0xfffe2a00)
|
|
#define BCM_6345_ENETSW_BASE (0xdeadbeef)
|
|
#define BCM_6345_PCMCIA_BASE (0xfffe2028)
|
|
#define BCM_6345_MPI_BASE (0xfffe2000)
|
|
#define BCM_6345_PCIE_BASE (0xdeadbeef)
|
|
#define BCM_6345_OHCI0_BASE (0xfffe2100)
|
|
#define BCM_6345_OHCI_PRIV_BASE (0xfffe2200)
|
|
#define BCM_6345_USBH_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6345_USBD_BASE (0xdeadbeef)
|
|
#define BCM_6345_SDRAM_REGS_BASE (0xfffe2300)
|
|
#define BCM_6345_DSL_BASE (0xdeadbeef)
|
|
#define BCM_6345_UBUS_BASE (0xdeadbeef)
|
|
#define BCM_6345_ENET1_BASE (0xdeadbeef)
|
|
#define BCM_6345_EHCI0_BASE (0xdeadbeef)
|
|
#define BCM_6345_SDRAM_BASE (0xfffe2300)
|
|
#define BCM_6345_MEMC_BASE (0xdeadbeef)
|
|
#define BCM_6345_DDR_BASE (0xdeadbeef)
|
|
#define BCM_6345_M2M_BASE (0xdeadbeef)
|
|
#define BCM_6345_ATM_BASE (0xfffe4000)
|
|
#define BCM_6345_XTM_BASE (0xdeadbeef)
|
|
#define BCM_6345_XTMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6345_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6345_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6345_PCM_BASE (0xdeadbeef)
|
|
#define BCM_6345_PCMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6345_PCMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6345_PCMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6345_RNG_BASE (0xdeadbeef)
|
|
#define BCM_6345_MISC_BASE (0xdeadbeef)
|
|
|
|
/*
|
|
* 6348 register sets base address
|
|
*/
|
|
#define BCM_6348_DSL_LMEM_BASE (0xfff00000)
|
|
#define BCM_6348_PERF_BASE (0xfffe0000)
|
|
#define BCM_6348_TIMER_BASE (0xfffe0200)
|
|
#define BCM_6348_WDT_BASE (0xfffe021c)
|
|
#define BCM_6348_UART0_BASE (0xfffe0300)
|
|
#define BCM_6348_UART1_BASE (0xdeadbeef)
|
|
#define BCM_6348_GPIO_BASE (0xfffe0400)
|
|
#define BCM_6348_SPI_BASE (0xfffe0c00)
|
|
#define BCM_6348_HSSPI_BASE (0xdeadbeef)
|
|
#define BCM_6348_UDC0_BASE (0xfffe1000)
|
|
#define BCM_6348_USBDMA_BASE (0xdeadbeef)
|
|
#define BCM_6348_OHCI0_BASE (0xfffe1b00)
|
|
#define BCM_6348_OHCI_PRIV_BASE (0xfffe1c00)
|
|
#define BCM_6348_USBH_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6348_USBD_BASE (0xdeadbeef)
|
|
#define BCM_6348_MPI_BASE (0xfffe2000)
|
|
#define BCM_6348_PCMCIA_BASE (0xfffe2054)
|
|
#define BCM_6348_PCIE_BASE (0xdeadbeef)
|
|
#define BCM_6348_SDRAM_REGS_BASE (0xfffe2300)
|
|
#define BCM_6348_M2M_BASE (0xfffe2800)
|
|
#define BCM_6348_DSL_BASE (0xfffe3000)
|
|
#define BCM_6348_ENET0_BASE (0xfffe6000)
|
|
#define BCM_6348_ENET1_BASE (0xfffe6800)
|
|
#define BCM_6348_ENETDMA_BASE (0xfffe7000)
|
|
#define BCM_6348_ENETDMAC_BASE (0xfffe7100)
|
|
#define BCM_6348_ENETDMAS_BASE (0xfffe7200)
|
|
#define BCM_6348_ENETSW_BASE (0xdeadbeef)
|
|
#define BCM_6348_EHCI0_BASE (0xdeadbeef)
|
|
#define BCM_6348_SDRAM_BASE (0xfffe2300)
|
|
#define BCM_6348_MEMC_BASE (0xdeadbeef)
|
|
#define BCM_6348_DDR_BASE (0xdeadbeef)
|
|
#define BCM_6348_ATM_BASE (0xfffe4000)
|
|
#define BCM_6348_XTM_BASE (0xdeadbeef)
|
|
#define BCM_6348_XTMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6348_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6348_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6348_PCM_BASE (0xdeadbeef)
|
|
#define BCM_6348_PCMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6348_PCMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6348_PCMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6348_RNG_BASE (0xdeadbeef)
|
|
#define BCM_6348_MISC_BASE (0xdeadbeef)
|
|
|
|
/*
|
|
* 6358 register sets base address
|
|
*/
|
|
#define BCM_6358_DSL_LMEM_BASE (0xfff00000)
|
|
#define BCM_6358_PERF_BASE (0xfffe0000)
|
|
#define BCM_6358_TIMER_BASE (0xfffe0040)
|
|
#define BCM_6358_WDT_BASE (0xfffe005c)
|
|
#define BCM_6358_UART0_BASE (0xfffe0100)
|
|
#define BCM_6358_UART1_BASE (0xfffe0120)
|
|
#define BCM_6358_GPIO_BASE (0xfffe0080)
|
|
#define BCM_6358_SPI_BASE (0xfffe0800)
|
|
#define BCM_6358_HSSPI_BASE (0xdeadbeef)
|
|
#define BCM_6358_UDC0_BASE (0xfffe0800)
|
|
#define BCM_6358_USBDMA_BASE (0xdeadbeef)
|
|
#define BCM_6358_OHCI0_BASE (0xfffe1400)
|
|
#define BCM_6358_OHCI_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6358_USBH_PRIV_BASE (0xfffe1500)
|
|
#define BCM_6358_USBD_BASE (0xdeadbeef)
|
|
#define BCM_6358_MPI_BASE (0xfffe1000)
|
|
#define BCM_6358_PCMCIA_BASE (0xfffe1054)
|
|
#define BCM_6358_PCIE_BASE (0xdeadbeef)
|
|
#define BCM_6358_SDRAM_REGS_BASE (0xfffe2300)
|
|
#define BCM_6358_M2M_BASE (0xdeadbeef)
|
|
#define BCM_6358_DSL_BASE (0xfffe3000)
|
|
#define BCM_6358_ENET0_BASE (0xfffe4000)
|
|
#define BCM_6358_ENET1_BASE (0xfffe4800)
|
|
#define BCM_6358_ENETDMA_BASE (0xfffe5000)
|
|
#define BCM_6358_ENETDMAC_BASE (0xfffe5100)
|
|
#define BCM_6358_ENETDMAS_BASE (0xfffe5200)
|
|
#define BCM_6358_ENETSW_BASE (0xdeadbeef)
|
|
#define BCM_6358_EHCI0_BASE (0xfffe1300)
|
|
#define BCM_6358_SDRAM_BASE (0xdeadbeef)
|
|
#define BCM_6358_MEMC_BASE (0xfffe1200)
|
|
#define BCM_6358_DDR_BASE (0xfffe12a0)
|
|
#define BCM_6358_ATM_BASE (0xfffe2000)
|
|
#define BCM_6358_XTM_BASE (0xdeadbeef)
|
|
#define BCM_6358_XTMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6358_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6358_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6358_PCM_BASE (0xfffe1600)
|
|
#define BCM_6358_PCMDMA_BASE (0xfffe1800)
|
|
#define BCM_6358_PCMDMAC_BASE (0xfffe1900)
|
|
#define BCM_6358_PCMDMAS_BASE (0xfffe1a00)
|
|
#define BCM_6358_RNG_BASE (0xdeadbeef)
|
|
#define BCM_6358_MISC_BASE (0xdeadbeef)
|
|
|
|
|
|
/*
|
|
* 6362 register sets base address
|
|
*/
|
|
#define BCM_6362_DSL_LMEM_BASE (0xdeadbeef)
|
|
#define BCM_6362_PERF_BASE (0xb0000000)
|
|
#define BCM_6362_TIMER_BASE (0xb0000040)
|
|
#define BCM_6362_WDT_BASE (0xb000005c)
|
|
#define BCM_6362_UART0_BASE (0xb0000100)
|
|
#define BCM_6362_UART1_BASE (0xb0000120)
|
|
#define BCM_6362_GPIO_BASE (0xb0000080)
|
|
#define BCM_6362_SPI_BASE (0xb0000800)
|
|
#define BCM_6362_HSSPI_BASE (0xb0001000)
|
|
#define BCM_6362_UDC0_BASE (0xdeadbeef)
|
|
#define BCM_6362_USBDMA_BASE (0xb000c000)
|
|
#define BCM_6362_OHCI0_BASE (0xb0002600)
|
|
#define BCM_6362_OHCI_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6362_USBH_PRIV_BASE (0xb0002700)
|
|
#define BCM_6362_USBD_BASE (0xb0002400)
|
|
#define BCM_6362_MPI_BASE (0xdeadbeef)
|
|
#define BCM_6362_PCMCIA_BASE (0xdeadbeef)
|
|
#define BCM_6362_PCIE_BASE (0xb0e40000)
|
|
#define BCM_6362_SDRAM_REGS_BASE (0xdeadbeef)
|
|
#define BCM_6362_DSL_BASE (0xdeadbeef)
|
|
#define BCM_6362_UBUS_BASE (0xdeadbeef)
|
|
#define BCM_6362_ENET0_BASE (0xdeadbeef)
|
|
#define BCM_6362_ENET1_BASE (0xdeadbeef)
|
|
#define BCM_6362_ENETDMA_BASE (0xb000d800)
|
|
#define BCM_6362_ENETDMAC_BASE (0xb000da00)
|
|
#define BCM_6362_ENETDMAS_BASE (0xb000dc00)
|
|
#define BCM_6362_ENETSW_BASE (0xb0e00000)
|
|
#define BCM_6362_EHCI0_BASE (0xb0002500)
|
|
#define BCM_6362_SDRAM_BASE (0xdeadbeef)
|
|
#define BCM_6362_MEMC_BASE (0xdeadbeef)
|
|
#define BCM_6362_DDR_BASE (0xb0003000)
|
|
#define BCM_6362_M2M_BASE (0xdeadbeef)
|
|
#define BCM_6362_ATM_BASE (0xdeadbeef)
|
|
#define BCM_6362_XTM_BASE (0xb0007800)
|
|
#define BCM_6362_XTMDMA_BASE (0xb000b800)
|
|
#define BCM_6362_XTMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6362_XTMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6362_PCM_BASE (0xb000a800)
|
|
#define BCM_6362_PCMDMA_BASE (0xdeadbeef)
|
|
#define BCM_6362_PCMDMAC_BASE (0xdeadbeef)
|
|
#define BCM_6362_PCMDMAS_BASE (0xdeadbeef)
|
|
#define BCM_6362_RNG_BASE (0xdeadbeef)
|
|
#define BCM_6362_MISC_BASE (0xb0001800)
|
|
|
|
#define BCM_6362_NAND_REG_BASE (0xb0000200)
|
|
#define BCM_6362_NAND_CACHE_BASE (0xb0000600)
|
|
#define BCM_6362_LED_BASE (0xb0001900)
|
|
#define BCM_6362_IPSEC_BASE (0xb0002800)
|
|
#define BCM_6362_IPSEC_DMA_BASE (0xb000d000)
|
|
#define BCM_6362_WLAN_CHIPCOMMON_BASE (0xb0004000)
|
|
#define BCM_6362_WLAN_D11_BASE (0xb0005000)
|
|
#define BCM_6362_WLAN_SHIM_BASE (0xb0007000)
|
|
|
|
/*
|
|
* 6368 register sets base address
|
|
*/
|
|
#define BCM_6368_DSL_LMEM_BASE (0xdeadbeef)
|
|
#define BCM_6368_PERF_BASE (0xb0000000)
|
|
#define BCM_6368_TIMER_BASE (0xb0000040)
|
|
#define BCM_6368_WDT_BASE (0xb000005c)
|
|
#define BCM_6368_UART0_BASE (0xb0000100)
|
|
#define BCM_6368_UART1_BASE (0xb0000120)
|
|
#define BCM_6368_GPIO_BASE (0xb0000080)
|
|
#define BCM_6368_SPI_BASE (0xb0000800)
|
|
#define BCM_6368_HSSPI_BASE (0xdeadbeef)
|
|
#define BCM_6368_UDC0_BASE (0xdeadbeef)
|
|
#define BCM_6368_USBDMA_BASE (0xb0004800)
|
|
#define BCM_6368_OHCI0_BASE (0xb0001600)
|
|
#define BCM_6368_OHCI_PRIV_BASE (0xdeadbeef)
|
|
#define BCM_6368_USBH_PRIV_BASE (0xb0001700)
|
|
#define BCM_6368_USBD_BASE (0xb0001400)
|
|
#define BCM_6368_MPI_BASE (0xb0001000)
|
|
#define BCM_6368_PCMCIA_BASE (0xb0001054)
|
|
#define BCM_6368_PCIE_BASE (0xdeadbeef)
|
|
#define BCM_6368_SDRAM_REGS_BASE (0xdeadbeef)
|
|
#define BCM_6368_M2M_BASE (0xdeadbeef)
|
|
#define BCM_6368_DSL_BASE (0xdeadbeef)
|
|
#define BCM_6368_ENET0_BASE (0xdeadbeef)
|
|
#define BCM_6368_ENET1_BASE (0xdeadbeef)
|
|
#define BCM_6368_ENETDMA_BASE (0xb0006800)
|
|
#define BCM_6368_ENETDMAC_BASE (0xb0006a00)
|
|
#define BCM_6368_ENETDMAS_BASE (0xb0006c00)
|
|
#define BCM_6368_ENETSW_BASE (0xb0f00000)
|
|
#define BCM_6368_EHCI0_BASE (0xb0001500)
|
|
#define BCM_6368_SDRAM_BASE (0xdeadbeef)
|
|
#define BCM_6368_MEMC_BASE (0xb0001200)
|
|
#define BCM_6368_DDR_BASE (0xb0001280)
|
|
#define BCM_6368_ATM_BASE (0xdeadbeef)
|
|
#define BCM_6368_XTM_BASE (0xb0001800)
|
|
#define BCM_6368_XTMDMA_BASE (0xb0005000)
|
|
#define BCM_6368_XTMDMAC_BASE (0xb0005200)
|
|
#define BCM_6368_XTMDMAS_BASE (0xb0005400)
|
|
#define BCM_6368_PCM_BASE (0xb0004000)
|
|
#define BCM_6368_PCMDMA_BASE (0xb0005800)
|
|
#define BCM_6368_PCMDMAC_BASE (0xb0005a00)
|
|
#define BCM_6368_PCMDMAS_BASE (0xb0005c00)
|
|
#define BCM_6368_RNG_BASE (0xb0004180)
|
|
#define BCM_6368_MISC_BASE (0xdeadbeef)
|
|
|
|
|
|
extern const unsigned long *bcm63xx_regs_base;
|
|
|
|
#define __GEN_CPU_REGS_TABLE(__cpu) \
|
|
[RSET_DSL_LMEM] = BCM_## __cpu ##_DSL_LMEM_BASE, \
|
|
[RSET_PERF] = BCM_## __cpu ##_PERF_BASE, \
|
|
[RSET_TIMER] = BCM_## __cpu ##_TIMER_BASE, \
|
|
[RSET_WDT] = BCM_## __cpu ##_WDT_BASE, \
|
|
[RSET_UART0] = BCM_## __cpu ##_UART0_BASE, \
|
|
[RSET_UART1] = BCM_## __cpu ##_UART1_BASE, \
|
|
[RSET_GPIO] = BCM_## __cpu ##_GPIO_BASE, \
|
|
[RSET_SPI] = BCM_## __cpu ##_SPI_BASE, \
|
|
[RSET_HSSPI] = BCM_## __cpu ##_HSSPI_BASE, \
|
|
[RSET_UDC0] = BCM_## __cpu ##_UDC0_BASE, \
|
|
[RSET_OHCI0] = BCM_## __cpu ##_OHCI0_BASE, \
|
|
[RSET_OHCI_PRIV] = BCM_## __cpu ##_OHCI_PRIV_BASE, \
|
|
[RSET_USBH_PRIV] = BCM_## __cpu ##_USBH_PRIV_BASE, \
|
|
[RSET_USBD] = BCM_## __cpu ##_USBD_BASE, \
|
|
[RSET_USBDMA] = BCM_## __cpu ##_USBDMA_BASE, \
|
|
[RSET_MPI] = BCM_## __cpu ##_MPI_BASE, \
|
|
[RSET_PCMCIA] = BCM_## __cpu ##_PCMCIA_BASE, \
|
|
[RSET_PCIE] = BCM_## __cpu ##_PCIE_BASE, \
|
|
[RSET_DSL] = BCM_## __cpu ##_DSL_BASE, \
|
|
[RSET_ENET0] = BCM_## __cpu ##_ENET0_BASE, \
|
|
[RSET_ENET1] = BCM_## __cpu ##_ENET1_BASE, \
|
|
[RSET_ENETDMA] = BCM_## __cpu ##_ENETDMA_BASE, \
|
|
[RSET_ENETDMAC] = BCM_## __cpu ##_ENETDMAC_BASE, \
|
|
[RSET_ENETDMAS] = BCM_## __cpu ##_ENETDMAS_BASE, \
|
|
[RSET_ENETSW] = BCM_## __cpu ##_ENETSW_BASE, \
|
|
[RSET_EHCI0] = BCM_## __cpu ##_EHCI0_BASE, \
|
|
[RSET_SDRAM] = BCM_## __cpu ##_SDRAM_BASE, \
|
|
[RSET_MEMC] = BCM_## __cpu ##_MEMC_BASE, \
|
|
[RSET_DDR] = BCM_## __cpu ##_DDR_BASE, \
|
|
[RSET_M2M] = BCM_## __cpu ##_M2M_BASE, \
|
|
[RSET_ATM] = BCM_## __cpu ##_ATM_BASE, \
|
|
[RSET_XTM] = BCM_## __cpu ##_XTM_BASE, \
|
|
[RSET_XTMDMA] = BCM_## __cpu ##_XTMDMA_BASE, \
|
|
[RSET_XTMDMAC] = BCM_## __cpu ##_XTMDMAC_BASE, \
|
|
[RSET_XTMDMAS] = BCM_## __cpu ##_XTMDMAS_BASE, \
|
|
[RSET_PCM] = BCM_## __cpu ##_PCM_BASE, \
|
|
[RSET_PCMDMA] = BCM_## __cpu ##_PCMDMA_BASE, \
|
|
[RSET_PCMDMAC] = BCM_## __cpu ##_PCMDMAC_BASE, \
|
|
[RSET_PCMDMAS] = BCM_## __cpu ##_PCMDMAS_BASE, \
|
|
[RSET_RNG] = BCM_## __cpu ##_RNG_BASE, \
|
|
[RSET_MISC] = BCM_## __cpu ##_MISC_BASE, \
|
|
|
|
|
|
static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set)
|
|
{
|
|
return bcm63xx_regs_base[set];
|
|
}
|
|
|
|
/*
|
|
* IRQ number changes across CPU too
|
|
*/
|
|
enum bcm63xx_irq {
|
|
IRQ_TIMER = 0,
|
|
IRQ_SPI,
|
|
IRQ_UART0,
|
|
IRQ_UART1,
|
|
IRQ_DSL,
|
|
IRQ_ENET0,
|
|
IRQ_ENET1,
|
|
IRQ_ENET_PHY,
|
|
IRQ_HSSPI,
|
|
IRQ_OHCI0,
|
|
IRQ_EHCI0,
|
|
IRQ_USBD,
|
|
IRQ_USBD_RXDMA0,
|
|
IRQ_USBD_TXDMA0,
|
|
IRQ_USBD_RXDMA1,
|
|
IRQ_USBD_TXDMA1,
|
|
IRQ_USBD_RXDMA2,
|
|
IRQ_USBD_TXDMA2,
|
|
IRQ_ENET0_RXDMA,
|
|
IRQ_ENET0_TXDMA,
|
|
IRQ_ENET1_RXDMA,
|
|
IRQ_ENET1_TXDMA,
|
|
IRQ_PCI,
|
|
IRQ_PCMCIA,
|
|
IRQ_ATM,
|
|
IRQ_ENETSW_RXDMA0,
|
|
IRQ_ENETSW_RXDMA1,
|
|
IRQ_ENETSW_RXDMA2,
|
|
IRQ_ENETSW_RXDMA3,
|
|
IRQ_ENETSW_TXDMA0,
|
|
IRQ_ENETSW_TXDMA1,
|
|
IRQ_ENETSW_TXDMA2,
|
|
IRQ_ENETSW_TXDMA3,
|
|
IRQ_XTM,
|
|
IRQ_XTM_DMA0,
|
|
};
|
|
|
|
/*
|
|
* 3368 irqs
|
|
*/
|
|
#define BCM_3368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_3368_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
#define BCM_3368_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_3368_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
#define BCM_3368_DSL_IRQ 0
|
|
#define BCM_3368_UDC0_IRQ 0
|
|
#define BCM_3368_OHCI0_IRQ 0
|
|
#define BCM_3368_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_3368_ENET1_IRQ (IRQ_INTERNAL_BASE + 6)
|
|
#define BCM_3368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
#define BCM_3368_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
|
|
#define BCM_3368_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
|
|
#define BCM_3368_HSSPI_IRQ 0
|
|
#define BCM_3368_EHCI0_IRQ 0
|
|
#define BCM_3368_USBD_IRQ 0
|
|
#define BCM_3368_USBD_RXDMA0_IRQ 0
|
|
#define BCM_3368_USBD_TXDMA0_IRQ 0
|
|
#define BCM_3368_USBD_RXDMA1_IRQ 0
|
|
#define BCM_3368_USBD_TXDMA1_IRQ 0
|
|
#define BCM_3368_USBD_RXDMA2_IRQ 0
|
|
#define BCM_3368_USBD_TXDMA2_IRQ 0
|
|
#define BCM_3368_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17)
|
|
#define BCM_3368_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18)
|
|
#define BCM_3368_PCI_IRQ (IRQ_INTERNAL_BASE + 31)
|
|
#define BCM_3368_PCMCIA_IRQ 0
|
|
#define BCM_3368_ATM_IRQ 0
|
|
#define BCM_3368_ENETSW_RXDMA0_IRQ 0
|
|
#define BCM_3368_ENETSW_RXDMA1_IRQ 0
|
|
#define BCM_3368_ENETSW_RXDMA2_IRQ 0
|
|
#define BCM_3368_ENETSW_RXDMA3_IRQ 0
|
|
#define BCM_3368_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_3368_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_3368_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_3368_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_3368_XTM_IRQ 0
|
|
#define BCM_3368_XTM_DMA0_IRQ 0
|
|
|
|
#define BCM_3368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25)
|
|
#define BCM_3368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26)
|
|
#define BCM_3368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27)
|
|
#define BCM_3368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28)
|
|
|
|
|
|
/*
|
|
* 6328 irqs
|
|
*/
|
|
#define BCM_6328_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
|
|
|
|
#define BCM_6328_TIMER_IRQ (IRQ_INTERNAL_BASE + 31)
|
|
#define BCM_6328_SPI_IRQ 0
|
|
#define BCM_6328_UART0_IRQ (IRQ_INTERNAL_BASE + 28)
|
|
#define BCM_6328_UART1_IRQ (BCM_6328_HIGH_IRQ_BASE + 7)
|
|
#define BCM_6328_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
|
|
#define BCM_6328_UDC0_IRQ 0
|
|
#define BCM_6328_ENET0_IRQ 0
|
|
#define BCM_6328_ENET1_IRQ 0
|
|
#define BCM_6328_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12)
|
|
#define BCM_6328_HSSPI_IRQ (IRQ_INTERNAL_BASE + 29)
|
|
#define BCM_6328_OHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 9)
|
|
#define BCM_6328_EHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 10)
|
|
#define BCM_6328_USBD_IRQ (IRQ_INTERNAL_BASE + 4)
|
|
#define BCM_6328_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
#define BCM_6328_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 6)
|
|
#define BCM_6328_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 7)
|
|
#define BCM_6328_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6328_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
#define BCM_6328_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 10)
|
|
#define BCM_6328_PCMCIA_IRQ 0
|
|
#define BCM_6328_ENET0_RXDMA_IRQ 0
|
|
#define BCM_6328_ENET0_TXDMA_IRQ 0
|
|
#define BCM_6328_ENET1_RXDMA_IRQ 0
|
|
#define BCM_6328_ENET1_TXDMA_IRQ 0
|
|
#define BCM_6328_PCI_IRQ (IRQ_INTERNAL_BASE + 23)
|
|
#define BCM_6328_ATM_IRQ 0
|
|
#define BCM_6328_ENETSW_RXDMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 0)
|
|
#define BCM_6328_ENETSW_RXDMA1_IRQ (BCM_6328_HIGH_IRQ_BASE + 1)
|
|
#define BCM_6328_ENETSW_RXDMA2_IRQ (BCM_6328_HIGH_IRQ_BASE + 2)
|
|
#define BCM_6328_ENETSW_RXDMA3_IRQ (BCM_6328_HIGH_IRQ_BASE + 3)
|
|
#define BCM_6328_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_6328_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_6328_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_6328_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_6328_XTM_IRQ (BCM_6328_HIGH_IRQ_BASE + 31)
|
|
#define BCM_6328_XTM_DMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 11)
|
|
|
|
#define BCM_6328_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6328_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
#define BCM_6328_EXT_IRQ0 (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6328_EXT_IRQ1 (IRQ_INTERNAL_BASE + 25)
|
|
#define BCM_6328_EXT_IRQ2 (IRQ_INTERNAL_BASE + 26)
|
|
#define BCM_6328_EXT_IRQ3 (IRQ_INTERNAL_BASE + 27)
|
|
|
|
/*
|
|
* 6338 irqs
|
|
*/
|
|
#define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_6338_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
#define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6338_UART1_IRQ 0
|
|
#define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
#define BCM_6338_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6338_ENET1_IRQ 0
|
|
#define BCM_6338_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
#define BCM_6338_HSSPI_IRQ 0
|
|
#define BCM_6338_OHCI0_IRQ 0
|
|
#define BCM_6338_EHCI0_IRQ 0
|
|
#define BCM_6338_USBD_IRQ 0
|
|
#define BCM_6338_USBD_RXDMA0_IRQ 0
|
|
#define BCM_6338_USBD_TXDMA0_IRQ 0
|
|
#define BCM_6338_USBD_RXDMA1_IRQ 0
|
|
#define BCM_6338_USBD_TXDMA1_IRQ 0
|
|
#define BCM_6338_USBD_RXDMA2_IRQ 0
|
|
#define BCM_6338_USBD_TXDMA2_IRQ 0
|
|
#define BCM_6338_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
|
|
#define BCM_6338_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
|
|
#define BCM_6338_ENET1_RXDMA_IRQ 0
|
|
#define BCM_6338_ENET1_TXDMA_IRQ 0
|
|
#define BCM_6338_PCI_IRQ 0
|
|
#define BCM_6338_PCMCIA_IRQ 0
|
|
#define BCM_6338_ATM_IRQ 0
|
|
#define BCM_6338_ENETSW_RXDMA0_IRQ 0
|
|
#define BCM_6338_ENETSW_RXDMA1_IRQ 0
|
|
#define BCM_6338_ENETSW_RXDMA2_IRQ 0
|
|
#define BCM_6338_ENETSW_RXDMA3_IRQ 0
|
|
#define BCM_6338_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_6338_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_6338_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_6338_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_6338_XTM_IRQ 0
|
|
#define BCM_6338_XTM_DMA0_IRQ 0
|
|
|
|
/*
|
|
* 6345 irqs
|
|
*/
|
|
#define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_6345_SPI_IRQ 0
|
|
#define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6345_UART1_IRQ 0
|
|
#define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
#define BCM_6345_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6345_ENET1_IRQ 0
|
|
#define BCM_6345_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12)
|
|
#define BCM_6345_HSSPI_IRQ 0
|
|
#define BCM_6345_OHCI0_IRQ 0
|
|
#define BCM_6345_EHCI0_IRQ 0
|
|
#define BCM_6345_USBD_IRQ 0
|
|
#define BCM_6345_USBD_RXDMA0_IRQ 0
|
|
#define BCM_6345_USBD_TXDMA0_IRQ 0
|
|
#define BCM_6345_USBD_RXDMA1_IRQ 0
|
|
#define BCM_6345_USBD_TXDMA1_IRQ 0
|
|
#define BCM_6345_USBD_RXDMA2_IRQ 0
|
|
#define BCM_6345_USBD_TXDMA2_IRQ 0
|
|
#define BCM_6345_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 1)
|
|
#define BCM_6345_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 2)
|
|
#define BCM_6345_ENET1_RXDMA_IRQ 0
|
|
#define BCM_6345_ENET1_TXDMA_IRQ 0
|
|
#define BCM_6345_PCI_IRQ 0
|
|
#define BCM_6345_PCMCIA_IRQ 0
|
|
#define BCM_6345_ATM_IRQ 0
|
|
#define BCM_6345_ENETSW_RXDMA0_IRQ 0
|
|
#define BCM_6345_ENETSW_RXDMA1_IRQ 0
|
|
#define BCM_6345_ENETSW_RXDMA2_IRQ 0
|
|
#define BCM_6345_ENETSW_RXDMA3_IRQ 0
|
|
#define BCM_6345_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_6345_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_6345_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_6345_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_6345_XTM_IRQ 0
|
|
#define BCM_6345_XTM_DMA0_IRQ 0
|
|
|
|
/*
|
|
* 6348 irqs
|
|
*/
|
|
#define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_6348_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
#define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6348_UART1_IRQ 0
|
|
#define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
|
|
#define BCM_6348_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6348_ENET1_IRQ (IRQ_INTERNAL_BASE + 7)
|
|
#define BCM_6348_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
#define BCM_6348_HSSPI_IRQ 0
|
|
#define BCM_6348_OHCI0_IRQ (IRQ_INTERNAL_BASE + 12)
|
|
#define BCM_6348_EHCI0_IRQ 0
|
|
#define BCM_6348_USBD_IRQ 0
|
|
#define BCM_6348_USBD_RXDMA0_IRQ 0
|
|
#define BCM_6348_USBD_TXDMA0_IRQ 0
|
|
#define BCM_6348_USBD_RXDMA1_IRQ 0
|
|
#define BCM_6348_USBD_TXDMA1_IRQ 0
|
|
#define BCM_6348_USBD_RXDMA2_IRQ 0
|
|
#define BCM_6348_USBD_TXDMA2_IRQ 0
|
|
#define BCM_6348_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 20)
|
|
#define BCM_6348_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 21)
|
|
#define BCM_6348_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 22)
|
|
#define BCM_6348_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 23)
|
|
#define BCM_6348_PCI_IRQ (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6348_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6348_ATM_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
#define BCM_6348_ENETSW_RXDMA0_IRQ 0
|
|
#define BCM_6348_ENETSW_RXDMA1_IRQ 0
|
|
#define BCM_6348_ENETSW_RXDMA2_IRQ 0
|
|
#define BCM_6348_ENETSW_RXDMA3_IRQ 0
|
|
#define BCM_6348_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_6348_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_6348_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_6348_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_6348_XTM_IRQ 0
|
|
#define BCM_6348_XTM_DMA0_IRQ 0
|
|
|
|
/*
|
|
* 6358 irqs
|
|
*/
|
|
#define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_6358_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
#define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
#define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29)
|
|
#define BCM_6358_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6358_ENET1_IRQ (IRQ_INTERNAL_BASE + 6)
|
|
#define BCM_6358_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
#define BCM_6358_HSSPI_IRQ 0
|
|
#define BCM_6358_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
#define BCM_6358_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
|
|
#define BCM_6358_USBD_IRQ 0
|
|
#define BCM_6358_USBD_RXDMA0_IRQ 0
|
|
#define BCM_6358_USBD_TXDMA0_IRQ 0
|
|
#define BCM_6358_USBD_RXDMA1_IRQ 0
|
|
#define BCM_6358_USBD_TXDMA1_IRQ 0
|
|
#define BCM_6358_USBD_RXDMA2_IRQ 0
|
|
#define BCM_6358_USBD_TXDMA2_IRQ 0
|
|
#define BCM_6358_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
|
|
#define BCM_6358_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
|
|
#define BCM_6358_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17)
|
|
#define BCM_6358_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18)
|
|
#define BCM_6358_PCI_IRQ (IRQ_INTERNAL_BASE + 31)
|
|
#define BCM_6358_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6358_ATM_IRQ (IRQ_INTERNAL_BASE + 19)
|
|
#define BCM_6358_ENETSW_RXDMA0_IRQ 0
|
|
#define BCM_6358_ENETSW_RXDMA1_IRQ 0
|
|
#define BCM_6358_ENETSW_RXDMA2_IRQ 0
|
|
#define BCM_6358_ENETSW_RXDMA3_IRQ 0
|
|
#define BCM_6358_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_6358_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_6358_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_6358_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_6358_XTM_IRQ 0
|
|
#define BCM_6358_XTM_DMA0_IRQ 0
|
|
|
|
#define BCM_6358_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 23)
|
|
#define BCM_6358_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6358_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25)
|
|
#define BCM_6358_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26)
|
|
#define BCM_6358_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27)
|
|
#define BCM_6358_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28)
|
|
|
|
/*
|
|
* 6362 irqs
|
|
*/
|
|
#define BCM_6362_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
|
|
|
|
#define BCM_6362_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_6362_SPI_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6362_UART0_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
#define BCM_6362_UART1_IRQ (IRQ_INTERNAL_BASE + 4)
|
|
#define BCM_6362_DSL_IRQ (IRQ_INTERNAL_BASE + 28)
|
|
#define BCM_6362_UDC0_IRQ 0
|
|
#define BCM_6362_ENET0_IRQ 0
|
|
#define BCM_6362_ENET1_IRQ 0
|
|
#define BCM_6362_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 14)
|
|
#define BCM_6362_HSSPI_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
#define BCM_6362_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
#define BCM_6362_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
|
|
#define BCM_6362_USBD_IRQ (IRQ_INTERNAL_BASE + 11)
|
|
#define BCM_6362_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 20)
|
|
#define BCM_6362_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 21)
|
|
#define BCM_6362_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 22)
|
|
#define BCM_6362_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 23)
|
|
#define BCM_6362_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6362_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 25)
|
|
#define BCM_6362_PCMCIA_IRQ 0
|
|
#define BCM_6362_ENET0_RXDMA_IRQ 0
|
|
#define BCM_6362_ENET0_TXDMA_IRQ 0
|
|
#define BCM_6362_ENET1_RXDMA_IRQ 0
|
|
#define BCM_6362_ENET1_TXDMA_IRQ 0
|
|
#define BCM_6362_PCI_IRQ (IRQ_INTERNAL_BASE + 30)
|
|
#define BCM_6362_ATM_IRQ 0
|
|
#define BCM_6362_ENETSW_RXDMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 0)
|
|
#define BCM_6362_ENETSW_RXDMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 1)
|
|
#define BCM_6362_ENETSW_RXDMA2_IRQ (BCM_6362_HIGH_IRQ_BASE + 2)
|
|
#define BCM_6362_ENETSW_RXDMA3_IRQ (BCM_6362_HIGH_IRQ_BASE + 3)
|
|
#define BCM_6362_ENETSW_TXDMA0_IRQ 0
|
|
#define BCM_6362_ENETSW_TXDMA1_IRQ 0
|
|
#define BCM_6362_ENETSW_TXDMA2_IRQ 0
|
|
#define BCM_6362_ENETSW_TXDMA3_IRQ 0
|
|
#define BCM_6362_XTM_IRQ 0
|
|
#define BCM_6362_XTM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 12)
|
|
|
|
#define BCM_6362_RING_OSC_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
#define BCM_6362_WLAN_GPIO_IRQ (IRQ_INTERNAL_BASE + 6)
|
|
#define BCM_6362_WLAN_IRQ (IRQ_INTERNAL_BASE + 7)
|
|
#define BCM_6362_IPSEC_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6362_NAND_IRQ (IRQ_INTERNAL_BASE + 12)
|
|
#define BCM_6362_PCM_IRQ (IRQ_INTERNAL_BASE + 13)
|
|
#define BCM_6362_DG_IRQ (IRQ_INTERNAL_BASE + 15)
|
|
#define BCM_6362_EPHY_ENERGY0_IRQ (IRQ_INTERNAL_BASE + 16)
|
|
#define BCM_6362_EPHY_ENERGY1_IRQ (IRQ_INTERNAL_BASE + 17)
|
|
#define BCM_6362_EPHY_ENERGY2_IRQ (IRQ_INTERNAL_BASE + 18)
|
|
#define BCM_6362_EPHY_ENERGY3_IRQ (IRQ_INTERNAL_BASE + 19)
|
|
#define BCM_6362_IPSEC_DMA0_IRQ (IRQ_INTERNAL_BASE + 26)
|
|
#define BCM_6362_IPSEC_DMA1_IRQ (IRQ_INTERNAL_BASE + 27)
|
|
#define BCM_6362_FAP0_IRQ (IRQ_INTERNAL_BASE + 29)
|
|
#define BCM_6362_PCM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 4)
|
|
#define BCM_6362_PCM_DMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 5)
|
|
#define BCM_6362_DECT0_IRQ (BCM_6362_HIGH_IRQ_BASE + 6)
|
|
#define BCM_6362_DECT1_IRQ (BCM_6362_HIGH_IRQ_BASE + 7)
|
|
#define BCM_6362_EXT_IRQ0 (BCM_6362_HIGH_IRQ_BASE + 8)
|
|
#define BCM_6362_EXT_IRQ1 (BCM_6362_HIGH_IRQ_BASE + 9)
|
|
#define BCM_6362_EXT_IRQ2 (BCM_6362_HIGH_IRQ_BASE + 10)
|
|
#define BCM_6362_EXT_IRQ3 (BCM_6362_HIGH_IRQ_BASE + 11)
|
|
|
|
/*
|
|
* 6368 irqs
|
|
*/
|
|
#define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
|
|
|
|
#define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
#define BCM_6368_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
#define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
#define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
#define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
|
|
#define BCM_6368_ENET0_IRQ 0
|
|
#define BCM_6368_ENET1_IRQ 0
|
|
#define BCM_6368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 15)
|
|
#define BCM_6368_HSSPI_IRQ 0
|
|
#define BCM_6368_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
#define BCM_6368_EHCI0_IRQ (IRQ_INTERNAL_BASE + 7)
|
|
#define BCM_6368_USBD_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
#define BCM_6368_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 26)
|
|
#define BCM_6368_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 27)
|
|
#define BCM_6368_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 28)
|
|
#define BCM_6368_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 29)
|
|
#define BCM_6368_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 30)
|
|
#define BCM_6368_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 31)
|
|
#define BCM_6368_PCMCIA_IRQ 0
|
|
#define BCM_6368_ENET0_RXDMA_IRQ 0
|
|
#define BCM_6368_ENET0_TXDMA_IRQ 0
|
|
#define BCM_6368_ENET1_RXDMA_IRQ 0
|
|
#define BCM_6368_ENET1_TXDMA_IRQ 0
|
|
#define BCM_6368_PCI_IRQ (IRQ_INTERNAL_BASE + 13)
|
|
#define BCM_6368_ATM_IRQ 0
|
|
#define BCM_6368_ENETSW_RXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 0)
|
|
#define BCM_6368_ENETSW_RXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 1)
|
|
#define BCM_6368_ENETSW_RXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 2)
|
|
#define BCM_6368_ENETSW_RXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 3)
|
|
#define BCM_6368_ENETSW_TXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 4)
|
|
#define BCM_6368_ENETSW_TXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 5)
|
|
#define BCM_6368_ENETSW_TXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 6)
|
|
#define BCM_6368_ENETSW_TXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 7)
|
|
#define BCM_6368_XTM_IRQ (IRQ_INTERNAL_BASE + 11)
|
|
#define BCM_6368_XTM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 8)
|
|
|
|
#define BCM_6368_PCM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 30)
|
|
#define BCM_6368_PCM_DMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 31)
|
|
#define BCM_6368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 20)
|
|
#define BCM_6368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 21)
|
|
#define BCM_6368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 22)
|
|
#define BCM_6368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 23)
|
|
#define BCM_6368_EXT_IRQ4 (IRQ_INTERNAL_BASE + 24)
|
|
#define BCM_6368_EXT_IRQ5 (IRQ_INTERNAL_BASE + 25)
|
|
|
|
extern const int *bcm63xx_irqs;
|
|
|
|
#define __GEN_CPU_IRQ_TABLE(__cpu) \
|
|
[IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \
|
|
[IRQ_SPI] = BCM_## __cpu ##_SPI_IRQ, \
|
|
[IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \
|
|
[IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \
|
|
[IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \
|
|
[IRQ_ENET0] = BCM_## __cpu ##_ENET0_IRQ, \
|
|
[IRQ_ENET1] = BCM_## __cpu ##_ENET1_IRQ, \
|
|
[IRQ_ENET_PHY] = BCM_## __cpu ##_ENET_PHY_IRQ, \
|
|
[IRQ_HSSPI] = BCM_## __cpu ##_HSSPI_IRQ, \
|
|
[IRQ_OHCI0] = BCM_## __cpu ##_OHCI0_IRQ, \
|
|
[IRQ_EHCI0] = BCM_## __cpu ##_EHCI0_IRQ, \
|
|
[IRQ_USBD] = BCM_## __cpu ##_USBD_IRQ, \
|
|
[IRQ_USBD_RXDMA0] = BCM_## __cpu ##_USBD_RXDMA0_IRQ, \
|
|
[IRQ_USBD_TXDMA0] = BCM_## __cpu ##_USBD_TXDMA0_IRQ, \
|
|
[IRQ_USBD_RXDMA1] = BCM_## __cpu ##_USBD_RXDMA1_IRQ, \
|
|
[IRQ_USBD_TXDMA1] = BCM_## __cpu ##_USBD_TXDMA1_IRQ, \
|
|
[IRQ_USBD_RXDMA2] = BCM_## __cpu ##_USBD_RXDMA2_IRQ, \
|
|
[IRQ_USBD_TXDMA2] = BCM_## __cpu ##_USBD_TXDMA2_IRQ, \
|
|
[IRQ_ENET0_RXDMA] = BCM_## __cpu ##_ENET0_RXDMA_IRQ, \
|
|
[IRQ_ENET0_TXDMA] = BCM_## __cpu ##_ENET0_TXDMA_IRQ, \
|
|
[IRQ_ENET1_RXDMA] = BCM_## __cpu ##_ENET1_RXDMA_IRQ, \
|
|
[IRQ_ENET1_TXDMA] = BCM_## __cpu ##_ENET1_TXDMA_IRQ, \
|
|
[IRQ_PCI] = BCM_## __cpu ##_PCI_IRQ, \
|
|
[IRQ_PCMCIA] = BCM_## __cpu ##_PCMCIA_IRQ, \
|
|
[IRQ_ATM] = BCM_## __cpu ##_ATM_IRQ, \
|
|
[IRQ_ENETSW_RXDMA0] = BCM_## __cpu ##_ENETSW_RXDMA0_IRQ, \
|
|
[IRQ_ENETSW_RXDMA1] = BCM_## __cpu ##_ENETSW_RXDMA1_IRQ, \
|
|
[IRQ_ENETSW_RXDMA2] = BCM_## __cpu ##_ENETSW_RXDMA2_IRQ, \
|
|
[IRQ_ENETSW_RXDMA3] = BCM_## __cpu ##_ENETSW_RXDMA3_IRQ, \
|
|
[IRQ_ENETSW_TXDMA0] = BCM_## __cpu ##_ENETSW_TXDMA0_IRQ, \
|
|
[IRQ_ENETSW_TXDMA1] = BCM_## __cpu ##_ENETSW_TXDMA1_IRQ, \
|
|
[IRQ_ENETSW_TXDMA2] = BCM_## __cpu ##_ENETSW_TXDMA2_IRQ, \
|
|
[IRQ_ENETSW_TXDMA3] = BCM_## __cpu ##_ENETSW_TXDMA3_IRQ, \
|
|
[IRQ_XTM] = BCM_## __cpu ##_XTM_IRQ, \
|
|
[IRQ_XTM_DMA0] = BCM_## __cpu ##_XTM_DMA0_IRQ, \
|
|
|
|
static inline int bcm63xx_get_irq_number(enum bcm63xx_irq irq)
|
|
{
|
|
return bcm63xx_irqs[irq];
|
|
}
|
|
|
|
/*
|
|
* return installed memory size
|
|
*/
|
|
unsigned int bcm63xx_get_memory_size(void);
|
|
|
|
void bcm63xx_machine_halt(void);
|
|
|
|
void bcm63xx_machine_reboot(void);
|
|
|
|
#endif /* !BCM63XX_CPU_H_ */
|