svn commit: r262202 - head/sys/dev/etherswitch/arswitch

Adrian Chadd adrian at FreeBSD.org
Wed Feb 19 05:09:48 UTC 2014


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;
 
 /*


More information about the svn-src-head mailing list