struct pci_dev *pci_dev;
struct net_device *dev;
struct napi_struct napi;
- spinlock_t lock;
u32 msg_enable;
u16 txd_version;
u16 mac_version;
regs->len = R8169_REGS_SIZE;
rtl_lock_work(tp);
- spin_lock_bh(&tp->lock);
memcpy_fromio(p, tp->mmio_addr, regs->len);
- spin_unlock_bh(&tp->lock);
rtl_unlock_work(tp);
}
tp->do_ioctl = rtl_xmii_ioctl;
}
- spin_lock_init(&tp->lock);
mutex_init(&tp->wk.mutex);
/* Get MAC address */
}
}
- spin_lock_bh(&tp->lock);
-
tmp = (RTL_R32(RxConfig) & ~RX_CONFIG_ACCEPT_MASK) | rx_mode;
if (tp->mac_version > RTL_GIGA_MAC_VER_06) {
RTL_W32(MAR0 + 0, mc_filter[0]);
RTL_W32(RxConfig, tmp);
-
- spin_unlock_bh(&tp->lock);
}
/**