Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 05:09:47 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262202 - head/sys/dev/etherswitch/arswitch
Message-ID:  <201402190509.s1J59ls8041011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Feb 19 05:09:47 2014
New Revision: 262202
URL: http://svnweb.freebsd.org/changeset/base/262202

Log:
  Add in the AR8327 probe/attach code and switch type.
  
  It detects fine, but (as expected) it won't attach just yet, let alone
  pass traffic.
  
  Tested:
  
  * DB120, AR8327 switch

Modified:
  head/sys/dev/etherswitch/arswitch/arswitch.c
  head/sys/dev/etherswitch/arswitch/arswitchvar.h

Modified: head/sys/dev/etherswitch/arswitch/arswitch.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch.c	Wed Feb 19 04:30:53 2014	(r262201)
+++ head/sys/dev/etherswitch/arswitch/arswitch.c	Wed Feb 19 05:09:47 2014	(r262202)
@@ -129,6 +129,11 @@ arswitch_probe(device_t dev)
 		chipname = "AR8316";
 		sc->sc_switchtype = AR8X16_SWITCH_AR8316;
 		break;
+	case 0x1202:
+		chipname = "AR8327";
+		sc->sc_switchtype = AR8X16_SWITCH_AR8327;
+		sc->mii_lo_first = 1;
+		break;
 	default:
 		chipname = NULL;
 	}

Modified: head/sys/dev/etherswitch/arswitch/arswitchvar.h
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitchvar.h	Wed Feb 19 04:30:53 2014	(r262201)
+++ head/sys/dev/etherswitch/arswitch/arswitchvar.h	Wed Feb 19 05:09:47 2014	(r262202)
@@ -35,6 +35,8 @@ typedef enum {
 	AR8X16_SWITCH_AR8226,
 	AR8X16_SWITCH_AR8316,
 	AR8X16_SWITCH_AR9340,
+	AR8X16_SWITCH_AR8327,
+	AR8X16_SWITCH_AR8337,
 } ar8x16_switch_type;
 
 /*



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