patch-2.4.20 linux-2.4.20/drivers/net/acenic.h
Next file: linux-2.4.20/drivers/net/aironet4500_rid.c
Previous file: linux-2.4.20/drivers/net/acenic.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Thu Nov 28 15:53:13 2002
- Orig file:
linux-2.4.19/drivers/net/acenic.h
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/net/acenic.h linux-2.4.20/drivers/net/acenic.h
@@ -748,6 +748,32 @@
}
+static inline void ace_mask_irq(struct net_device *dev)
+{
+ struct ace_private *ap = dev->priv;
+ struct ace_regs *regs = ap->regs;
+
+ if (ACE_IS_TIGON_I(ap))
+ writel(1, ®s->MaskInt);
+ else
+ writel(readl(®s->HostCtrl) | MASK_INTS, ®s->HostCtrl);
+
+ ace_sync_irq(dev->irq);
+}
+
+
+static inline void ace_unmask_irq(struct net_device *dev)
+{
+ struct ace_private *ap = dev->priv;
+ struct ace_regs *regs = ap->regs;
+
+ if (ACE_IS_TIGON_I(ap))
+ writel(0, ®s->MaskInt);
+ else
+ writel(readl(®s->HostCtrl) & ~MASK_INTS, ®s->HostCtrl);
+}
+
+
/*
* Prototypes
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)