/* Switch a Z8530 into synchronous mode without DMA assist. We raise the RTS/DTR and commence network operation.  */
int z8530_sync_open(struct net_device *dev, struct z8530_channel *c)
/* Switch a Z8530 into synchronous mode without DMA assist. We raise the RTS/DTR and commence network operation.  */
int z8530_sync_open(struct net_device *dev, struct z8530_channel *c)
{
	unsigned long flags;
	spin_lock_irqsave(c->lock, flags);
	c->sync = 1;
	c->mtu = dev->mtu+64;
	c->count = 0;
	c->skb = NULL;
	c->skb2 = NULL;
	c->irqs = &z8530_sync;
	z8530_rx_done(c);
	z8530_rx_done(c);
	z8530_rtsdtr(c,1);
	c->dma_tx = 0;
	c->regs[R1]|=TxINT_ENAB;
	write_zsreg(c, R1, c->regs[R1]);
	write_zsreg(c, R3, c->regs[R3]|RxENABLE);
	spin_unlock_irqrestore(c->lock, flags);
	return 0;
}