 /* Fiber NICs only allow 1000 gbps Full duplex */ if((adapter->hw.media_type == e1000_media_type_fiber) && spddplx != (SPEED_1000 + DUPLEX_FULL)) { DPRINTK(PROBE, ERR, "Unsupported Speed/Duplex configuration\n"); return -EINVAL; } 
e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx){	adapter->hw.autoneg = 0;	switch(spddplx) {	case SPEED_10 + DUPLEX_HALF:		adapter->hw.forced_speed_duplex = e1000_10_half;		break;	case SPEED_10 + DUPLEX_FULL:		adapter->hw.forced_speed_duplex = e1000_10_full;		break;	case SPEED_100 + DUPLEX_HALF:		adapter->hw.forced_speed_duplex = e1000_100_half;		break;	case SPEED_100 + DUPLEX_FULL:		adapter->hw.forced_speed_duplex = e1000_100_full;		break;	case SPEED_1000 + DUPLEX_FULL:		adapter->hw.autoneg = 1;		adapter->hw.autoneg_advertised = ADVERTISE_1000_FULL;		break;	case SPEED_1000 + DUPLEX_HALF: /* not supported */	default:		DPRINTK(PROBE, ERR, "Unsupported Speed/Duplex configuration\n");		return -EINVAL;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6921368f64c59b2a1d4659a958c69458c94d8b75/e1000_main.c/clean/drivers/net/e1000/e1000_main.c