if (t->ioaddr > 0) { if (!request_region(t->ioaddr, 2, "i82365")) { printk(KERN_ERR "i82365: IO region conflict at %#lx, not available\n", t->ioaddr); return; } }  
static void __init add_pcic(int ns, int type){    u_int mask = 0, i, base;    int isa_irq = 0;    struct i82365_socket *t = &socket[sockets-ns];    base = sockets-ns;    if (t->ioaddr > 0) {	if (!request_region(t->ioaddr, 2, "i82365")) {	    printk(KERN_ERR "i82365: IO region conflict at %#lx, not available\n",			t->ioaddr);	    return;	}    }        if (base == 0) printk("\n");    printk(KERN_INFO "  %s", pcic[type].name);    printk(" ISA-to-PCMCIA at port %#lx ofs 0x%02x",	       t->ioaddr, t->psock*0x40);    printk(", %d socket%s\n", ns, ((ns > 1) ? "s" : ""));    /* Set host options, build basic interrupt mask */    if (irq_list_count == 0)	mask = irq_mask;    else	for (i = mask = 0; i < irq_list_count; i++)	    mask |= (1<<irq_list[i]);    mask &= I365_MASK & set_bridge_opts(base, ns);    /* Scan for ISA interrupts */    mask = isa_scan(base, mask);            /* Poll if only two interrupts available */    if (!poll_interval) {	u_int tmp = (mask & 0xff20);	tmp = tmp & (tmp-1);	if ((tmp & (tmp-1)) == 0)	    poll_interval = HZ;    }    /* Only try an ISA cs_irq if this is the first controller */    if (!grab_irq && (cs_irq || !poll_interval)) {	/* Avoid irq 12 unless it is explicitly requested */	u_int cs_mask = mask & ((cs_irq) ? (1<<cs_irq) : ~(1<<12));	for (cs_irq = 15; cs_irq > 0; cs_irq--)	    if ((cs_mask & (1 << cs_irq)) &&		(_check_irq(cs_irq, 0) == 0))		break;	if (cs_irq) {	    grab_irq = 1;	    isa_irq = cs_irq;	    printk(" status change on irq %d\n", cs_irq);	}    }        if (!isa_irq) {	if (poll_interval == 0)	    poll_interval = HZ;	printk(" polling interval = %d ms\n",	       poll_interval * 1000 / HZ);	    }        /* Update socket interrupt information, capabilities */    for (i = 0; i < ns; i++) {	t[i].socket.features |= SS_CAP_PCCARD;	t[i].socket.map_size = 0x1000;	t[i].socket.irq_mask = mask;	t[i].cs_irq = isa_irq;    }} /* add_pcic */
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/69a4d56bae492b1a5e74459d9d771d9bc7f9320f/i82365.c/clean/drivers/pcmcia/i82365.c