Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 03:45:34 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242423 - head/sys/contrib/octeon-sdk
Message-ID:  <201211010345.qA13jYlF009703@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmallett
Date: Thu Nov  1 03:45:33 2012
New Revision: 242423
URL: http://svn.freebsd.org/changeset/base/242423

Log:
  Handle the management port on the EBT5600 and disable loopback.  The XAUI
  port connected to the Broadcom switch does not seem operable, but it's unclear
  if that's simply due to a lack of configuration information for the switch.
  The switch does not seem to present any identifying information via MDIO,
  and is a BCM56512.

Modified:
  head/sys/contrib/octeon-sdk/cvmx-helper-board.c

Modified: head/sys/contrib/octeon-sdk/cvmx-helper-board.c
==============================================================================
--- head/sys/contrib/octeon-sdk/cvmx-helper-board.c	Thu Nov  1 00:09:01 2012	(r242422)
+++ head/sys/contrib/octeon-sdk/cvmx-helper-board.c	Thu Nov  1 03:45:33 2012	(r242423)
@@ -451,6 +451,12 @@ int cvmx_helper_board_get_mii_address(in
                 return ipd_port+1;
             else
                 return -1;
+        case CVMX_BOARD_TYPE_EBT5600:
+	    /* Board has 1 management port */
+            if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT)
+                return 0;
+	    /* Board has 1 XAUI port connected to a switch.  */
+	    return -1;
         case CVMX_BOARD_TYPE_EBB5600:
             {
                 static unsigned char qlm_switch_addr = 0;
@@ -990,6 +996,7 @@ cvmx_helper_link_info_t __cvmx_helper_bo
             }
             /* Fall through to the generic code below */
             break;
+        case CVMX_BOARD_TYPE_EBT5600:
         case CVMX_BOARD_TYPE_EBH5600:
         case CVMX_BOARD_TYPE_EBH5601:
         case CVMX_BOARD_TYPE_EBH5610:
@@ -1289,6 +1296,11 @@ int __cvmx_helper_board_interface_probe(
                 return 0;
 #endif
 	    break;
+        case CVMX_BOARD_TYPE_EBT5600:
+	    /* Disable loopback.  */
+	    if (interface == 3)
+		return 0;
+	    break;
         case CVMX_BOARD_TYPE_EBT5810:
             return 1;  /* Two ports on each SPI: 1 hooked to MAC, 1 loopback
                        ** Loopback disabled by default. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211010345.qA13jYlF009703>