/* For gigabit rtl8169, MTU + header + CRC + VLAN */ RTL_W16(RxMaxSize, tp->rx_buf_sz); 
/* Low hurts. Let's disable the filtering. */ RTL_W16(RxMaxSize, 16383); 
rtl8169_hw_start(struct net_device *dev){	struct rtl8169_private *tp = netdev_priv(dev);	void __iomem *ioaddr = tp->mmio_addr;	u32 i;	/* Soft reset the chip. */	RTL_W8(ChipCmd, CmdReset);	/* Check that the chip has finished the reset. */	for (i = 1000; i > 0; i--) {		if ((RTL_R8(ChipCmd) & CmdReset) == 0)			break;		udelay(10);	}	RTL_W8(Cfg9346, Cfg9346_Unlock);	RTL_W8(ChipCmd, CmdTxEnb | CmdRxEnb);	RTL_W8(EarlyTxThres, EarlyTxThld);	/* For gigabit rtl8169, MTU + header + CRC + VLAN */	RTL_W16(RxMaxSize, tp->rx_buf_sz);	/* Set Rx Config register */	i = rtl8169_rx_config |		(RTL_R32(RxConfig) & rtl_chip_info[tp->chipset].RxConfigMask);	RTL_W32(RxConfig, i);	/* Set DMA burst size and Interframe Gap Time */	RTL_W32(TxConfig,		(TX_DMA_BURST << TxDMAShift) | (InterFrameGap <<						TxInterFrameGapShift));	tp->cp_cmd |= RTL_R16(CPlusCmd);	RTL_W16(CPlusCmd, tp->cp_cmd);	if ((tp->mac_version == RTL_GIGA_MAC_VER_D) ||	    (tp->mac_version == RTL_GIGA_MAC_VER_E)) {		dprintk(KERN_INFO PFX "Set MAC Reg C+CR Offset 0xE0. "			"Bit-3 and bit-14 MUST be 1\n");		tp->cp_cmd |= (1 << 14) | PCIMulRW;		RTL_W16(CPlusCmd, tp->cp_cmd);	}	/*	 * Undocumented corner. Supposedly:	 * (TxTimer << 12) | (TxPackets << 8) | (RxTimer << 4) | RxPackets	 */	RTL_W16(IntrMitigate, 0x0000);	RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr & DMA_32BIT_MASK));	RTL_W32(TxDescStartAddrHigh, ((u64) tp->TxPhyAddr >> 32));	RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr & DMA_32BIT_MASK));	RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr >> 32));	RTL_W8(Cfg9346, Cfg9346_Lock);	udelay(10);	RTL_W32(RxMissed, 0);	rtl8169_set_rx_mode(dev);	/* no early-rx interrupts */	RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000);	/* Enable all known interrupts by setting the interrupt mask. */	RTL_W16(IntrMask, rtl8169_intr_mask);	netif_start_queue(dev);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/126fa4b9ca5d9d7cb7d46f779ad3bd3631ca387c/r8169.c/clean/drivers/net/r8169.c