diff options
author | adrian <adrian@FreeBSD.org> | 2014-02-19 05:09:47 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-02-19 05:09:47 +0000 |
commit | f0624d1188501182f133d2ce6f986491beb19f3e (patch) | |
tree | fd2b9196ee84dd5ea9b63e08ab59e7dfcd94989f | |
parent | 4223f4f32140bbb15d1ccfe8a400e64fd35512ce (diff) | |
download | FreeBSD-src-f0624d1188501182f133d2ce6f986491beb19f3e.zip FreeBSD-src-f0624d1188501182f133d2ce6f986491beb19f3e.tar.gz |
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
-rw-r--r-- | sys/dev/etherswitch/arswitch/arswitch.c | 5 | ||||
-rw-r--r-- | sys/dev/etherswitch/arswitch/arswitchvar.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c index 14977be..012e520 100644 --- a/sys/dev/etherswitch/arswitch/arswitch.c +++ b/sys/dev/etherswitch/arswitch/arswitch.c @@ -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; } diff --git a/sys/dev/etherswitch/arswitch/arswitchvar.h b/sys/dev/etherswitch/arswitch/arswitchvar.h index 54a7338..a55e533 100644 --- a/sys/dev/etherswitch/arswitch/arswitchvar.h +++ b/sys/dev/etherswitch/arswitch/arswitchvar.h @@ -35,6 +35,8 @@ typedef enum { AR8X16_SWITCH_AR8226, AR8X16_SWITCH_AR8316, AR8X16_SWITCH_AR9340, + AR8X16_SWITCH_AR8327, + AR8X16_SWITCH_AR8337, } ar8x16_switch_type; /* |