Print this page
212 Atheros AR8132 / L1c Gigabit Ethernet Adapter

@@ -18,10 +18,12 @@
  *
  * CDDL HEADER END
  */
 
 /*
+ * Copyright (c) 2012 Gary Mills
+ *
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 #include <sys/types.h>

@@ -399,14 +401,14 @@
         reg = ATGE_USECS(ATGE_IM_RX_TIMER_DEFAULT) << IM_TIMER_RX_SHIFT;
         reg |= ATGE_USECS(ATGE_IM_TX_TIMER_DEFAULT) << IM_TIMER_TX_SHIFT;
         OUTL(atgep, ATGE_IM_TIMER, reg);
 
         reg = INL(atgep, ATGE_MASTER_CFG);
-        reg &= ~(MASTER_CHIP_REV_MASK | MASTER_CHIP_ID_MASK);
-        reg &= ~(MASTER_IM_RX_TIMER_ENB | MASTER_IM_TX_TIMER_ENB);
-        reg |= MASTER_IM_RX_TIMER_ENB;
-        reg |= MASTER_IM_TX_TIMER_ENB;
+        reg &= ~(L1E_MASTER_CHIP_REV_MASK | L1E_MASTER_CHIP_ID_MASK);
+        reg &= ~(L1E_MASTER_IM_RX_TIMER_ENB | L1E_MASTER_IM_TX_TIMER_ENB);
+        reg |= L1E_MASTER_IM_RX_TIMER_ENB;
+        reg |= L1E_MASTER_IM_TX_TIMER_ENB;
         OUTL(atgep, ATGE_MASTER_CFG, reg);
 
         OUTW(atgep, RX_COALSC_PKT_1e, 0);
         OUTW(atgep, RX_COALSC_TO_1e, 0);
         OUTW(atgep, TX_COALSC_PKT_1e, 1);