/* Copyright 2007-2010 Broadcom Corp. All Rights Reserved. <:label-BRCM:2011:DUAL/GPL:standard 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. :> */ #define _BCMENET_LOCAL_ #include #include #include #include #include #include #include #include #include "boardparms.h" #include #include "bcm_intr.h" #include "bcmenet.h" #include "bcmmii.h" #include "hwapi_mac.h" #include #include "bcmswshared.h" #include "ethsw.h" #include "ethsw_phy.h" #include "eth_pwrmngt.h" #include "bcmsw_runner.h" extern struct semaphore bcm_ethlock_switch_config; int ethsw_reset_ports(struct net_device *dev) { return 0; } int ethsw_add_proc_files(struct net_device *dev) { return 0; } int ethsw_del_proc_files(void) { return 0; } int ethsw_disable_hw_switching(void) { return 0; } void ethsw_dump_page(int page) { } void fast_age_port(uint8_t port, uint8_t age_static) { } int ethsw_counter_collect(uint32_t portmap, int discard) { return 0; } void ethsw_get_txrx_imp_port_pkts(unsigned int *tx, unsigned int *rx) { } EXPORT_SYMBOL(ethsw_get_txrx_imp_port_pkts); int ethsw_phy_intr_ctrl(int port, int on) { return 0; } void ethsw_phy_apply_init_bp(void) { } int ethsw_setup_led(void) { return 0; } int ethsw_setup_phys(void) { ethsw_shutdown_unused_phys(); return 0; } int ethsw_enable_hw_switching(void) { return 0; } /* Code to handle exceptions chip specific cases */ void ethsw_phy_handle_exception_cases(void) { } void ethsw_port_mirror_get(int *enable, int *mirror_port, unsigned int *ing_pmap, unsigned int *eg_pmap, unsigned int *blk_no_mrr, int *tx_port, int *rx_port) { printk("Runner port mirroring is not supported\n"); } void ethsw_port_mirror_set(int enable, int mirror_port, unsigned int ing_pmap, unsigned int eg_pmap, unsigned int blk_no_mrr, int tx_port, int rx_port) { printk("Runner port mirroring is not supported\n"); }