1/************************************************************************* 2Copyright (c) 2003-2007 Cavium Networks (support@cavium.com). All rights 3reserved. 4 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are 8met: --- 14 unchanged lines hidden (view full) --- 23This Software, including technical data, may be subject to U.S. export control laws, including the U.S. Export Administration Act and its associated regulations, and may be subject to export or import regulations in other countries. 24 25TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" 26AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE LIES WITH YOU. 27 28*************************************************************************/ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/mips/cavium/octe/ethernet-common.c 213346 2010-10-02 05:43:17Z jmallett $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/bus.h> 36#include <sys/endian.h> 37#include <sys/kernel.h> 38#include <sys/mbuf.h> 39#include <sys/socket.h> --- 221 unchanged lines hidden (view full) --- 261 cvm_oct_common_change_mtu(ifp, ifp->if_mtu); 262 263#if 0 264 /* Zero out stats for port so we won't mistakenly show counters from the 265 bootloader */ 266 memset(ifp->get_stats(ifp), 0, sizeof(struct ifnet_stats)); 267#endif 268 |
269 /* 270 * Do any last-minute board-specific initialization. 271 */ 272 switch (cvmx_sysinfo_get()->board_type) { 273#if defined(OCTEON_VENDOR_LANNER) 274 case CVMX_BOARD_TYPE_CUST_LANNER_MR320: 275 if (priv->phy_id == 16) 276 cvm_oct_mv88e61xx_setup_device(ifp); 277 break; 278#endif 279 default: 280 break; 281 } 282 |
283 device_attach(priv->dev); 284 285 return 0; 286} 287 288void cvm_oct_common_uninit(struct ifnet *ifp) 289{ 290 /* Currently nothing to do */ 291} 292 |