aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/r8169.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-06-21 01:29:08 -0400
committerDavid S. Miller <davem@davemloft.net>2011-06-21 01:29:08 -0400
commit9f6ec8d697c08963d83880ccd35c13c5ace716ea (patch)
treead8d93cf6fcdd09b86ade09f5fcbbc66cdb1cca2 /drivers/net/r8169.c
parent4aa3a715551c93eda32d79bd52042ce500bd5383 (diff)
parent56299378726d5f2ba8d3c8cbbd13cb280ba45e4f (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/iwlwifi/iwl-agn-rxon.c drivers/net/wireless/rtlwifi/pci.c net/netfilter/ipvs/ip_vs_core.c
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r--drivers/net/r8169.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index bc5bb378d008..f8c4435afe51 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1635,7 +1635,7 @@ static void rtl8169_get_mac_version(struct rtl8169_private *tp,
1635 * 1635 *
1636 * (RTL_R32(TxConfig) & 0x700000) == 0x200000 ? 8101Eb : 8101Ec 1636 * (RTL_R32(TxConfig) & 0x700000) == 0x200000 ? 8101Eb : 8101Ec
1637 */ 1637 */
1638 static const struct { 1638 static const struct rtl_mac_info {
1639 u32 mask; 1639 u32 mask;
1640 u32 val; 1640 u32 val;
1641 int mac_version; 1641 int mac_version;
@@ -1703,7 +1703,8 @@ static void rtl8169_get_mac_version(struct rtl8169_private *tp,
1703 1703
1704 /* Catch-all */ 1704 /* Catch-all */
1705 { 0x00000000, 0x00000000, RTL_GIGA_MAC_NONE } 1705 { 0x00000000, 0x00000000, RTL_GIGA_MAC_NONE }
1706 }, *p = mac_info; 1706 };
1707 const struct rtl_mac_info *p = mac_info;
1707 u32 reg; 1708 u32 reg;
1708 1709
1709 reg = RTL_R32(TxConfig); 1710 reg = RTL_R32(TxConfig);
@@ -3799,7 +3800,7 @@ static void rtl_set_rx_max_size(void __iomem *ioaddr, unsigned int rx_buf_sz)
3799 3800
3800static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version) 3801static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version)
3801{ 3802{
3802 static const struct { 3803 static const struct rtl_cfg2_info {
3803 u32 mac_version; 3804 u32 mac_version;
3804 u32 clk; 3805 u32 clk;
3805 u32 val; 3806 u32 val;
@@ -3808,7 +3809,8 @@ static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version)
3808 { RTL_GIGA_MAC_VER_05, PCI_Clock_66MHz, 0x000fffff }, 3809 { RTL_GIGA_MAC_VER_05, PCI_Clock_66MHz, 0x000fffff },
3809 { RTL_GIGA_MAC_VER_06, PCI_Clock_33MHz, 0x00ffff00 }, // 8110SCe 3810 { RTL_GIGA_MAC_VER_06, PCI_Clock_33MHz, 0x00ffff00 }, // 8110SCe
3810 { RTL_GIGA_MAC_VER_06, PCI_Clock_66MHz, 0x00ffffff } 3811 { RTL_GIGA_MAC_VER_06, PCI_Clock_66MHz, 0x00ffffff }
3811 }, *p = cfg2_info; 3812 };
3813 const struct rtl_cfg2_info *p = cfg2_info;
3812 unsigned int i; 3814 unsigned int i;
3813 u32 clk; 3815 u32 clk;
3814 3816