/* Configure the transmit engine with the ring buffers we have created and prepare it for use.  */
void ConfigTxDmaRegs(struct et131x_adapter *etdev)
/* Configure the transmit engine with the ring buffers we have created and prepare it for use.  */
void ConfigTxDmaRegs(struct et131x_adapter *etdev)
{
	struct _TXDMA_t __iomem *txdma = &etdev->regs->txdma;
	writel((u32) ((u64)etdev->tx_ring.tx_desc_ring_pa >> 32),
	       &txdma->pr_base_hi);
	writel((u32) etdev->tx_ring.tx_desc_ring_pa,
	       &txdma->pr_base_lo);
	writel(NUM_DESC_PER_RING_TX - 1, &txdma->pr_num_des);
	writel((u32)((u64)etdev->tx_ring.tx_status_pa >> 32),
						&txdma->dma_wb_base_hi);
	writel((u32)etdev->tx_ring.tx_status_pa, &txdma->dma_wb_base_lo);
	*etdev->tx_ring.tx_status = 0;
	writel(0, &txdma->service_request);
	etdev->tx_ring.send_idx = 0;
}