int nortel_pci_hw_init(struct nortel_pci_card *card) 
static int nortel_pci_hw_init(struct nortel_pci_card *card) 
int nortel_pci_hw_init(struct nortel_pci_card *card){	int i;	u32 reg;	/* setup bridge */	if (inw(card->iobase1) & 1) {		printk(KERN_ERR PFX "brg1 answer1 wrong\n");		return -EBUSY;	}	outw_p(0x118, card->iobase1 + 2);	outw_p(0x108, card->iobase1 + 2);	mdelay(30);	outw_p(0x8, card->iobase1 + 2);	for (i = 0; i < 30; i++) {		mdelay(30);		if (inw(card->iobase1) & 0x10) {			break;		}	}	if (i == 30) {		printk(KERN_ERR PFX "brg1 timed out\n");		return -EBUSY;	}	if (inw(card->iobase2 + 0xe0) & 1) {		printk(KERN_ERR PFX "brg2 answer1 wrong\n");		return -EBUSY;	}	if (inw(card->iobase2 + 0xe2) & 1) {		printk(KERN_ERR PFX "brg2 answer2 wrong\n");		return -EBUSY;	}	if (inw(card->iobase2 + 0xe4) & 1) {		printk(KERN_ERR PFX "brg2 answer3 wrong\n");		return -EBUSY;	}	/* set the PCMCIA COR-Register */	outw_p(COR_VALUE, card->iobase2 + COR_OFFSET);	mdelay(1);	reg = inw(card->iobase2 + COR_OFFSET);	if (reg != COR_VALUE) {		printk(KERN_ERR PFX "Error setting COR value (reg=%x)\n",		       reg);		return -EBUSY;	}	/* set leds */	outw_p(1, card->iobase1 + 10);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4c08202547111e503eca4031ae9443159a79e2b2/orinoco_nortel.c/buggy/drivers/net/wireless/orinoco_nortel.c