kernel/2.6.32/drivers/net/arm/etherh.c
/*
 * Configure the interface.  Note that we ignore the other
 * parts of ifmap, since its mostly meaningless for this driver.
 */
Configure the interface.  Note that we ignore the other
parts of ifmap, since its mostly meaningless for this driver.
Configure the interface . Note that we ignore the other parts of ifmap since its mostly meaningless for this driver .
static int etherh_set_config(struct net_device *dev, struct ifmap *map)
{
	switch (map->port) {
	case IF_PORT_10BASE2:
	case IF_PORT_10BASET:
		dev->flags &= ~IFF_AUTOMEDIA;
		dev->if_port = map->port;
		break;
	default:
		return -EINVAL;
	}
	etherh_setif(dev);
	return 0;
}
static int etherh_set_config ( struct net_device * dev , struct ifmap * map ) { switch ( map -> port ) { case IF_PORT_10BASE2 : case IF_PORT_10BASET : dev -> flags &= ~ IFF_AUTOMEDIA ; dev -> if_port = map -> port ; break ; default : return - EINVAL ; } etherh_setif ( dev ) ; return 0 ; }
Configure the interface.
Configure the interface .
/*
		 * If the user explicitly sets the interface
		 * media type, turn off automedia detection.
		 */