/* Must be called in locked state with interrupts disabled  */
static int link_status(struct xircom_private *card)
/* Must be called in locked state with interrupts disabled  */
static int link_status(struct xircom_private *card)
{
	unsigned int val;
	enter("link_status");
	val = inb(card->io_port + CSR12);
	if (!(val&(1<<2)))
		return 10;
	if (!(val&(1<<1)))
		return 100;
	leave("link_status");
	return 0;
}