/* 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)
/* 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;
}