if(!(nic->flags & wol_magic)) 
/* disable WoL when up */ if(netif_running(nic->netdev) || !(nic->flags & wol_magic)) 
static void e100_configure(struct nic *nic, struct cb *cb, struct sk_buff *skb){	struct config *config = &cb->u.config;	u8 *c = (u8 *)config;	cb->command = cpu_to_le16(cb_config);	memset(config, 0, sizeof(struct config));	config->byte_count = 0x16;		/* bytes in this struct */	config->rx_fifo_limit = 0x8;		/* bytes in FIFO before DMA */	config->direct_rx_dma = 0x1;		/* reserved */	config->standard_tcb = 0x1;		/* 1=standard, 0=extended */	config->standard_stat_counter = 0x1;	/* 1=standard, 0=extended */	config->rx_discard_short_frames = 0x1;	/* 1=discard, 0=pass */	config->tx_underrun_retry = 0x3;	/* # of underrun retries */	config->mii_mode = 0x1;			/* 1=MII mode, 0=503 mode */	config->pad10 = 0x6;	config->no_source_addr_insertion = 0x1;	/* 1=no, 0=yes */	config->preamble_length = 0x2;		/* 0=1, 1=3, 2=7, 3=15 bytes */	config->ifs = 0x6;			/* x16 = inter frame spacing */	config->ip_addr_hi = 0xF2;		/* ARP IP filter - not used */	config->pad15_1 = 0x1;	config->pad15_2 = 0x1;	config->crs_or_cdt = 0x0;		/* 0=CRS only, 1=CRS or CDT */	config->fc_delay_hi = 0x40;		/* time delay for fc frame */	config->tx_padding = 0x1;		/* 1=pad short frames */	config->fc_priority_threshold = 0x7;	/* 7=priority fc disabled */	config->pad18 = 0x1;	config->full_duplex_pin = 0x1;		/* 1=examine FDX# pin */	config->pad20_1 = 0x1F;	config->fc_priority_location = 0x1;	/* 1=byte#31, 0=byte#19 */	config->pad21_1 = 0x5;	config->adaptive_ifs = nic->adaptive_ifs;	config->loopback = nic->loopback;	if(nic->mii.force_media && nic->mii.full_duplex)		config->full_duplex_force = 0x1;	/* 1=force, 0=auto */	if(nic->flags & promiscuous || nic->loopback) {		config->rx_save_bad_frames = 0x1;	/* 1=save, 0=discard */		config->rx_discard_short_frames = 0x0;	/* 1=discard, 0=save */		config->promiscuous_mode = 0x1;		/* 1=on, 0=off */	}	if(nic->flags & multicast_all)		config->multicast_all = 0x1;		/* 1=accept, 0=no */	if(!(nic->flags & wol_magic))		config->magic_packet_disable = 0x1;	/* 1=off, 0=on */	if(nic->mac >= mac_82558_D101_A4) {		config->fc_disable = 0x1;	/* 1=Tx fc off, 0=Tx fc on */		config->mwi_enable = 0x1;	/* 1=enable, 0=disable */		config->standard_tcb = 0x0;	/* 1=standard, 0=extended */		config->rx_long_ok = 0x1;	/* 1=VLANs ok, 0=standard */		if(nic->mac >= mac_82559_D101M)			config->tno_intr = 0x1;		/* TCO stats enable */		else			config->standard_stat_counter = 0x0;	}	DPRINTK(HW, DEBUG, "[00-07]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n",		c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7]);	DPRINTK(HW, DEBUG, "[08-15]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n",		c[8], c[9], c[10], c[11], c[12], c[13], c[14], c[15]);	DPRINTK(HW, DEBUG, "[16-23]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n",		c[16], c[17], c[18], c[19], c[20], c[21], c[22], c[23]);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6bdacb1ad58bb6b772a4fc18f21684437bd5f439/e100.c/clean/drivers/net/e100.c