kernels/linux-2.4.0/drivers/acorn/net/etherh.c
/*
 * Reset the 8390 (hard reset).  Note that we can't actually do this.
 */
Reset the 8390 (hard reset).  Note that we can't actually do this.
Reset the 8390 ( hard reset ) . Note that we can ' t actually do this .
static void
etherh_reset(struct net_device *dev)
{
	outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, dev->base_addr);
	if (dev->flags & IFF_AUTOMEDIA && ei_status.interface_num) {
		ei_status.interface_num = 0;
		if (dev->if_port == IF_PORT_10BASET)
			dev->if_port = IF_PORT_10BASE2;
		else
			dev->if_port = IF_PORT_10BASET;
		etherh_setif(dev);
	}
}
static void etherh_reset ( struct net_device * dev ) { outb_p ( E8390_NODMA + E8390_PAGE0 + E8390_STOP , dev -> base_addr ) ; if ( dev -> flags & IFF_AUTOMEDIA && ei_status . interface_num ) { ei_status . interface_num = 0 ; if ( dev -> if_port == IF_PORT_10BASET ) dev -> if_port = IF_PORT_10BASE2 ; else dev -> if_port = IF_PORT_10BASET ; etherh_setif ( dev ) ; } }
Reset the 8390 (hard reset).
Reset the 8390 ( hard reset ) .
/*
	 * See if we need to change the interface type.
	 * Note that we use 'interface_num' as a flag
	 * to indicate that we need to change the media.
	 */