emx(4): Use E1000_ICR_ macros when check against value read from ICR
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 8 Mar 2009 04:08:30 +0000 (12:08 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 8 Mar 2009 04:08:30 +0000 (12:08 +0800)
sys/dev/netif/emx/if_emx.c

index 9dc47b2..4041510 100644 (file)
@@ -1121,9 +1121,9 @@ emx_intr(void *xsc)
 
        if (ifp->if_flags & IFF_RUNNING) {
                if (reg_icr &
-                   (E1000_IMS_RXT0 | E1000_IMS_RXDMT0 | E1000_ICR_RXO))
+                   (E1000_ICR_RXT0 | E1000_ICR_RXDMT0 | E1000_ICR_RXO))
                        emx_rxeof(sc, 0, -1);
-               if (reg_icr & E1000_IMS_TXDW) {
+               if (reg_icr & E1000_ICR_TXDW) {
                        emx_txeof(sc);
                        if (!ifq_is_empty(&ifp->if_snd))
                                if_devstart(ifp);