Author: yongari
Date: Thu Nov 17 21:24:56 2011
New Revision: 227638
URL: http://svn.freebsd.org/changeset/base/227638

Log:
  Add preliminary support for second generation RTL8105E PCIe
  FastEthernet.
  
  H/W donated by:       RealTek Semiconductor Corp.

Modified:
  head/sys/dev/re/if_re.c
  head/sys/pci/if_rlreg.h

Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c     Thu Nov 17 21:07:56 2011        (r227637)
+++ head/sys/dev/re/if_re.c     Thu Nov 17 21:24:56 2011        (r227638)
@@ -222,6 +222,7 @@ static const struct rl_hwrev const re_hw
        { RL_HWREV_8401E, RL_8169, "8401E", RL_MTU },
        { RL_HWREV_8402, RL_8169, "8402", RL_MTU },
        { RL_HWREV_8105E, RL_8169, "8105E", RL_MTU },
+       { RL_HWREV_8105E_SPIN1, RL_8169, "8105E", RL_MTU },
        { RL_HWREV_8168B_SPIN2, RL_8169, "8168", RL_JUMBO_MTU },
        { RL_HWREV_8168B_SPIN3, RL_8169, "8168", RL_JUMBO_MTU },
        { RL_HWREV_8168C, RL_8169, "8168C/8111C", RL_JUMBO_MTU_6K },
@@ -1405,6 +1406,7 @@ re_attach(device_t dev)
        case RL_HWREV_8401E:
        case RL_HWREV_8402:
        case RL_HWREV_8105E:
+       case RL_HWREV_8105E_SPIN1:
                sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM |
                    RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT |
                    RL_FLAG_FASTETHER | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD;

Modified: head/sys/pci/if_rlreg.h
==============================================================================
--- head/sys/pci/if_rlreg.h     Thu Nov 17 21:07:56 2011        (r227637)
+++ head/sys/pci/if_rlreg.h     Thu Nov 17 21:24:56 2011        (r227638)
@@ -178,6 +178,7 @@
 #define        RL_HWREV_8168C_SPIN2    0x3C400000
 #define        RL_HWREV_8168CP         0x3C800000
 #define        RL_HWREV_8105E          0x40800000
+#define        RL_HWREV_8105E_SPIN1    0x40C00000
 #define        RL_HWREV_8402           0x44000000
 #define        RL_HWREV_8411           0x48800000
 #define        RL_HWREV_8139           0x60000000
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to