/* Cancel all queued packets in the transmission queue.  */
static void tms380tr_cancel_tx_queue(struct net_local *tp)
/* Cancel all queued packets in the transmission queue.  */
static void tms380tr_cancel_tx_queue(struct net_local *tp)
{
	TPL *tpl;
	if(tp->TransmitCommandActive)
		return;
	for(;;)
	{
		tpl = tp->TplBusy;
		if(!tpl->BusyFlag)
			break;
		tp->TplBusy = tpl->NextTPLPtr;
		tms380tr_write_tpl_status(tpl, 0);
		tpl->BusyFlag = 0;
		printk(KERN_INFO "Cancel tx (%08lXh).\n", (unsigned long)tpl);
		if (tpl->DMABuff)
			dma_unmap_single(tp->pdev, tpl->DMABuff, tpl->Skb->len, DMA_TO_DEVICE);
		dev_kfree_skb_any(tpl->Skb);
	}
	return;
}