Lines Matching refs:base
197 static int aha1740_test_port(unsigned int base)
199 if ( inb(PORTADR(base)) & PORTADDR_ENH )
215 unsigned int base;
224 base = host->io_port;
228 while(inb(G2STAT(base)) & G2STAT_INTPEND) {
231 adapstat = inb(G2INTST(base));
232 ecbptr = ecb_dma_to_cpu (host, inl(MBOXIN0(base)));
233 outb(G2CNTRL_IRST,G2CNTRL(base)); /* interrupt reset */
240 outb(G2CNTRL_HRDY,G2CNTRL(base));
243 inb(G2STAT(base)),adapstat,
244 inb(G2INTST(base)), number_serviced++);
250 inb(G2STAT(base)),adapstat,
251 inb(G2INTST(base)), number_serviced++);
291 inb(MBOXIN0(base)),
292 inb(MBOXIN1(base)),
293 inb(MBOXIN2(base)),
294 inb(MBOXIN3(base))); /* Say What? */
296 outb(G2CNTRL_HRDY,G2CNTRL(base));
457 unsigned int base = SCpnt->device->host->io_port;
462 if (inb(G2STAT(base)) & G2STAT_MBXOUT) break;
470 MBOXOUT0(base));
472 if (! (inb(G2STAT(base)) & G2STAT_BUSY)) break;
479 outb(ATTN_START | (target & 7), ATTN(base)); /* Start it up */
492 static void aha1740_getconfig(unsigned int base, unsigned int *irq_level,
498 *irq_level = intab[inb(INTDEF(base)) & 0x7];
499 *irq_type = (inb(INTDEF(base)) & 0x8) >> 3;
500 *translation = inb(RESV1(base)) & 0x1;
501 outb(inb(INTDEF(base)) | 0x10, INTDEF(base));
582 shpnt->base = 0;