/* Stop ULI526X board Free Tx/Rx allocated memory Init system variable  */
static void uli526x_reset_prepare(struct net_device *dev)
/* Stop ULI526X board Free Tx/Rx allocated memory Init system variable  */
static void uli526x_reset_prepare(struct net_device *dev)
{
	struct uli526x_board_info *db = netdev_priv(dev);
	db->cr6_data &= ~(CR6_RXSC | CR6_TXSC);
	update_cr6(db->cr6_data, dev->base_addr);
	outl(0, dev->base_addr + DCR7);
	outl(inl(dev->base_addr + DCR5), dev->base_addr + DCR5);
	netif_stop_queue(dev);
	uli526x_free_rxbuffer(db);
	db->tx_packet_cnt = 0;
	db->rx_avail_cnt = 0;
	db->link_failed = 1;
	db->init=1;
	db->wait_reset = 0;
}