int stalled = inl(ioaddr + PktStatus) & 0x04;	/* Possible racy. But it's only debug stuff */ 
int stalled = ioread32(ioaddr + PktStatus) & 0x04;	/* Possible racy. But it's only debug stuff */ 
dump_tx_ring(struct net_device *dev){	if (vortex_debug > 0) {	struct vortex_private *vp = netdev_priv(dev);		long ioaddr = dev->base_addr;				if (vp->full_bus_master_tx) {			int i;			int stalled = inl(ioaddr + PktStatus) & 0x04;	/* Possible racy. But it's only debug stuff */			printk(KERN_ERR "  Flags; bus-master %d, dirty %d(%d) current %d(%d)\n",					vp->full_bus_master_tx,					vp->dirty_tx, vp->dirty_tx % TX_RING_SIZE,					vp->cur_tx, vp->cur_tx % TX_RING_SIZE);			printk(KERN_ERR "  Transmit list %8.8x vs. %p.\n",				   inl(ioaddr + DownListPtr),				   &vp->tx_ring[vp->dirty_tx % TX_RING_SIZE]);			issue_and_wait(dev, DownStall);			for (i = 0; i < TX_RING_SIZE; i++) {				printk(KERN_ERR "  %d: @%p  length %8.8x status %8.8x\n", i,					   &vp->tx_ring[i],#if DO_ZEROCOPY					   le32_to_cpu(vp->tx_ring[i].frag[0].length),#else					   le32_to_cpu(vp->tx_ring[i].length),#endif					   le32_to_cpu(vp->tx_ring[i].status));			}			if (!stalled)				outw(DownUnstall, ioaddr + EL3_CMD);		}	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/62afe595de7aaac6c140103a34dc8c208afa34e7/3c59x.c/buggy/drivers/net/3c59x.c