/* must be called with the lock held and interrupts disabled.  */
static void deactivate_transmitter(struct xircom_private *card)
/* must be called with the lock held and interrupts disabled.  */
static void deactivate_transmitter(struct xircom_private *card)
{
	unsigned int val;
	int counter;
	enter("deactivate_transmitter");
	val = inl(card->io_port + CSR6);
	val = val & ~2;
	outl(val, card->io_port + CSR6);
	counter = 20;
	while (counter > 0) {
		if (!transmit_active(card))
			break;
		udelay(50);
		counter--;
		if (counter <= 0)
			printk(KERN_ERR "xircom_cb: Transmitter failed to deactivate\n");
	}
	leave("deactivate_transmitter");
}