high    = inb(fir_base+IRCC_ID_HIGH); low     = inb(fir_base+IRCC_ID_LOW); chip    = inb(fir_base+IRCC_CHIP_ID); version = inb(fir_base+IRCC_VERSION); config  = inb(fir_base+IRCC_INTERFACE); 
high    = inb(fir_base + IRCC_ID_HIGH); low     = inb(fir_base + IRCC_ID_LOW); chip    = inb(fir_base + IRCC_CHIP_ID); version = inb(fir_base + IRCC_VERSION); config  = inb(fir_base + IRCC_INTERFACE); 
static int smsc_ircc_present(unsigned int fir_base, unsigned int sir_base){	unsigned char low, high, chip, config, dma, irq, version;	if (!request_region(fir_base, SMSC_IRCC2_FIR_CHIP_IO_EXTENT,			    driver_name)) {		IRDA_WARNING("%s: can't get fir_base of 0x%03x\n",			     __FUNCTION__, fir_base);		goto out1;	}	if (!request_region(sir_base, SMSC_IRCC2_SIR_CHIP_IO_EXTENT,			    driver_name)) {		IRDA_WARNING("%s: can't get sir_base of 0x%03x\n",			     __FUNCTION__, sir_base);		goto out2;	}	register_bank(fir_base, 3);	high    = inb(fir_base+IRCC_ID_HIGH);	low     = inb(fir_base+IRCC_ID_LOW);	chip    = inb(fir_base+IRCC_CHIP_ID);	version = inb(fir_base+IRCC_VERSION);	config  = inb(fir_base+IRCC_INTERFACE);	dma     = config & IRCC_INTERFACE_DMA_MASK;	irq     = (config & IRCC_INTERFACE_IRQ_MASK) >> 4;	if (high != 0x10 || low != 0xb8 || (chip != 0xf1 && chip != 0xf2)) {	        IRDA_WARNING("%s(), addr 0x%04x - no device found!\n",			     __FUNCTION__, fir_base);		goto out3;	}	IRDA_MESSAGE("SMsC IrDA Controller found\n IrCC version %d.%d, "		     "firport 0x%03x, sirport 0x%03x dma=%d, irq=%d\n",		     chip & 0x0f, version, fir_base, sir_base, dma, irq);	return 0; out3:	release_region(sir_base, SMSC_IRCC2_SIR_CHIP_IO_EXTENT); out2:	release_region(fir_base, SMSC_IRCC2_FIR_CHIP_IO_EXTENT); out1:	return -ENODEV;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/98b7777331d4344821e900040da5d1d3016d9e67/smsc-ircc2.c/clean/drivers/net/irda/smsc-ircc2.c