Exemplo n.º 1
0
static inline void set_hsf(struct net_device *dev, int hsf)
{
	elp_device *adapter = dev->priv;
	unsigned long flags;

	spin_lock_irqsave(&adapter->lock, flags);
	outb_control((HCR_VAL(dev) & ~HSF_PCB_MASK) | hsf, dev);
	spin_unlock_irqrestore(&adapter->lock, flags);
}
Exemplo n.º 2
0
static inline void set_hsf(struct net_device *dev, int hsf)
{
	cli();
	outb_control((HCR_VAL(dev) & ~HSF_PCB_MASK) | hsf, dev);
	sti();
}