static void uli526x_init(struct DEVICE *dev) 
static void uli526x_init(struct net_device *dev) 
static void uli526x_init(struct DEVICE *dev){	struct uli526x_board_info *db = netdev_priv(dev);	unsigned long ioaddr = db->ioaddr;	u8	phy_tmp;	u16	phy_value;	u16 phy_reg_reset;	ULI526X_DBUG(0, "uli526x_init()", 0);	/* Reset M526x MAC controller */	outl(ULI526X_RESET, ioaddr + DCR0);	/* RESET MAC */	udelay(100);	outl(db->cr0_data, ioaddr + DCR0);	udelay(5);	/* Phy addr : In some boards,M5261/M5263 phy address != 1 */	db->phy_addr = 1;	for(phy_tmp=0;phy_tmp<32;phy_tmp++)	{		phy_value=phy_read(db->ioaddr,phy_tmp,3,db->chip_id);//peer add		if(phy_value != 0xffff&&phy_value!=0)		{			db->phy_addr = phy_tmp;			break;		}	}	if(phy_tmp == 32)		printk(KERN_WARNING "Can not find the phy address!!!");	/* Parser SROM and media mode */	db->media_mode = uli526x_media_mode;	//add by clearzhang 2004/7/8	/* RESET Phyxcer Chip by GPR port bit 7 */	//outl(0x180, ioaddr + DCR12);		/* Let bit 7 output port */	//outl(0x0, ioaddr + DCR12);	/* Clear RESET signal */	/* Phyxcer capability setting */	phy_reg_reset = phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id);	phy_reg_reset = (phy_reg_reset | 0x8000);	phy_write(db->ioaddr, db->phy_addr, 0, phy_reg_reset, db->chip_id);	udelay(500);	/* Process Phyxcer Media Mode */	uli526x_set_phyxcer(db);	/* Media Mode Process */	if ( !(db->media_mode & ULI526X_AUTO) )		db->op_mode = db->media_mode; 	/* Force Mode */	/* Initiliaze Transmit/Receive decriptor and CR3/4 */	uli526x_descriptor_init(db, ioaddr);	/* Init CR6 to program M526X operation */	update_cr6(db->cr6_data, ioaddr);	/* Send setup frame */	send_filter_frame(dev, dev->mc_count);	/* M5261/M5263 */	/* Init CR7, interrupt active bit */	db->cr7_data = CR7_DEFAULT;	outl(db->cr7_data, ioaddr + DCR7);	/* Init CR15, Tx jabber and Rx watchdog timer */	outl(db->cr15_data, ioaddr + DCR15);	/* Enable ULI526X Tx/Rx function */	db->cr6_data |= CR6_RXSC | CR6_TXSC;	update_cr6(db->cr6_data, ioaddr);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/945a787675cc5ba362f5d4ce135d2a2c20be5985/uli526x.c/buggy/drivers/net/tulip/uli526x.c