Add NetGear FA-511 support
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 30 Apr 2006 02:02:06 +0000 (02:02 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 30 Apr 2006 02:02:06 +0000 (02:02 +0000)
Obtained-from: FreeBSD
Tested-by: Andrew Thompson <andrew@hijacked.us>
sys/dev/netif/dc/if_dc.c
sys/dev/netif/dc/if_dcreg.h

index 18cbf92..7742f76 100644 (file)
@@ -30,7 +30,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/pci/if_dc.c,v 1.9.2.45 2003/06/08 14:31:53 mux Exp $
- * $DragonFly: src/sys/dev/netif/dc/if_dc.c,v 1.49 2005/12/31 14:07:59 sephe Exp $
+ * $DragonFly: src/sys/dev/netif/dc/if_dc.c,v 1.50 2006/04/30 02:02:06 sephe Exp $
  */
 
 /*
@@ -44,6 +44,7 @@
  * ASIX Electronics AX88141 (www.asix.com.tw)
  * ADMtek AL981 (www.admtek.com.tw)
  * ADMtek AN985 (www.admtek.com.tw)
+ * Netgear FA511 (www.netgear.com) Appears to be rebadged ADMTek AN985
  * Davicom DM9100, DM9102, DM9102A (www.davicom8.com)
  * Accton EN1217 (www.accton.com)
  * Xircom X3201 (www.xircom.com)
@@ -152,6 +153,8 @@ static const struct dc_type dc_devs[] = {
                "ADMtek AL981 10/100BaseTX" },
        { DC_VENDORID_ADMTEK, DC_DEVICEID_AN985,
                "ADMtek AN985 10/100BaseTX" },
+       { DC_VENDORID_ADMTEK, DC_DEVICEID_FA511,
+               "Netgear FA511 10/100BaseTX" },
        { DC_VENDORID_ADMTEK, DC_DEVICEID_ADM9511,
                "ADMtek ADM9511 10/100BaseTX" },
        { DC_VENDORID_ADMTEK, DC_DEVICEID_ADM9513,
@@ -1916,6 +1919,7 @@ dc_attach(device_t dev)
        case DC_DEVICEID_AN985:
        case DC_DEVICEID_ADM9511:
        case DC_DEVICEID_ADM9513:
+       case DC_DEVICEID_FA511:
        case DC_DEVICEID_EN2242:
        case DC_DEVICEID_3CSOHOB:
                sc->dc_type = DC_TYPE_AN985;
index f20751a..6752a29 100644 (file)
@@ -30,7 +30,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/pci/if_dcreg.h,v 1.4.2.22 2003/06/07 16:55:35 mbr Exp $
- * $DragonFly: src/sys/dev/netif/dc/if_dcreg.h,v 1.9 2005/12/30 13:39:21 sephe Exp $
+ * $DragonFly: src/sys/dev/netif/dc/if_dcreg.h,v 1.10 2006/04/30 02:02:06 sephe Exp $
  */
 
 /*
@@ -858,6 +858,7 @@ struct dc_softc {
  */
 #define DC_DEVICEID_AL981      0x0981
 #define DC_DEVICEID_AN985      0x0985
+#define DC_DEVICEID_FA511      0x1985
 #define DC_DEVICEID_ADM9511    0x9511
 #define DC_DEVICEID_ADM9513    0x9513