/* <:copyright-BRCM:2016:DUAL/GPL:standard Copyright (c) 2016 Broadcom All Rights Reserved This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation (the "GPL"). This program is distributed in the hope that 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. A copy of the GPL is available at http://www.broadcom.com/licenses/GPLv2.php, or by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. :> */ //************************************************************************** // File Name : bcm_chip_arch.c // // Description: This file defines the Chip specific restrictions // for Ethernet LAN/WAN ports. // //************************************************************************** #define VERSION "0.1" #define VER_STR "v" VERSION " " __DATE__ " " __TIME__ #ifndef _BCM_CHIP_ARCH_C_ #define _BCM_CHIP_ARCH_C_ #include #include #include #include #include #include "boardparms.h" /* Port bit map for LAN/WAN attributes */ #if defined(CONFIG_BCM963138) || defined(CONFIG_BCM963148) u32 chip_arch_wan_only_portmap[BP_MAX_ENET_MACS] = {0x01, 0x00}; u32 chip_arch_wan_pref_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_lan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0xff}; u32 chip_arch_all_portmap[BP_MAX_ENET_MACS] = {0x03, 0x1bf}; u32 chip_arch_mgmt_portmap[BP_MAX_ENET_MACS] = {0x02, 0x100}; #elif defined(CONFIG_BCM94908) u32 chip_arch_wan_only_portmap[BP_MAX_ENET_MACS] = {0x08, 0x00}; u32 chip_arch_wan_pref_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_lan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0xff}; u32 chip_arch_all_portmap[BP_MAX_ENET_MACS] = {0x0f, 0x1bf}; u32 chip_arch_mgmt_portmap[BP_MAX_ENET_MACS] = {0x07, 0x130}; #elif defined(CONFIG_BCM963158) u32 chip_arch_wan_only_portmap[BP_MAX_ENET_MACS] = {0x30, 0x00}; u32 chip_arch_wan_pref_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_lan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x5f}; u32 chip_arch_all_portmap[BP_MAX_ENET_MACS] = {0x37, 0x1ff}; u32 chip_arch_mgmt_portmap[BP_MAX_ENET_MACS] = {0x07, 0x1a0}; #elif defined(CONFIG_BCM963178) u32 chip_arch_wan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_wan_pref_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_lan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_all_portmap[BP_MAX_ENET_MACS] = {0x13f, 0x00}; u32 chip_arch_mgmt_portmap[BP_MAX_ENET_MACS] = {0x100, 0x00}; #elif defined(CONFIG_BCM947622) u32 chip_arch_wan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_wan_pref_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_lan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x000}; u32 chip_arch_all_portmap[BP_MAX_ENET_MACS] = {0x03, 0x12f}; u32 chip_arch_mgmt_portmap[BP_MAX_ENET_MACS] = {0x02, 0x100}; #else u32 chip_arch_wan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_wan_pref_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; u32 chip_arch_lan_only_portmap[BP_MAX_ENET_MACS] = {0x00, 0x00}; #endif #endif /* _BCM_CHIP_ARCH_C_ */