Lines Matching refs:io_port
739 shpnt->io_port = setup->io_port; in aha152x_probe_one()
744 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
745 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
747 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
748 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
786 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
865 if (shpnt->io_port) in aha152x_release()
866 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2828 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
2997 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
3001 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
3003 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
3005 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
3006 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) in aha152x_porttest()
3012 static int tc1550_porttest(int io_port) in tc1550_porttest() argument
3016 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3018 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3020 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3021 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) in tc1550_porttest()
3031 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3037 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { in checksetup()
3038 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); in checksetup()
3042 if( aha152x_porttest(setup->io_port) ) { in checksetup()
3044 } else if( tc1550_porttest(setup->io_port) ) { in checksetup()
3047 release_region(setup->io_port, IO_RANGE); in checksetup()
3051 release_region(setup->io_port, IO_RANGE); in checksetup()
3102 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3105 override.io_port, in aha152x_init()
3123 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3126 override.io_port, in aha152x_init()
3144 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3153 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3168 setup[setup_count].io_port, in aha152x_init()
3181 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3190 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3204 setup[setup_count].io_port, in aha152x_init()
3232 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3237 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3250 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3279 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3305 setup[setup_count].io_port = ports[i]; in aha152x_init()
3325 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { in aha152x_init()
3329 release_region(setup[i].io_port, IO_RANGE); in aha152x_init()
3337 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); in aha152x_init()
3376 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()