/* Reset the ownership and status for the receive ring side. Hand all the receive queue to the NIC.  */
static void velocity_rx_reset(struct velocity_info *vptr)
/* Reset the ownership and status for the receive ring side. Hand all the receive queue to the NIC.  */
static void velocity_rx_reset(struct velocity_info *vptr)
{
	struct mac_regs __iomem *regs = vptr->mac_regs;
	int i;
	velocity_init_rx_ring_indexes(vptr);
	for (i = 0; i < vptr->options.numrx; ++i)
		vptr->rx.ring[i].rdesc0.len |= OWNED_BY_NIC;
	writew(vptr->options.numrx, &regs->RBRDU);
	writel(vptr->rx.pool_dma, &regs->RDBaseLo);
	writew(0, &regs->RDIdx);
	writew(vptr->options.numrx - 1, &regs->RDCSize);
}