Lines Matching defs:iobase

437 	Port_t		iobase;
552 iobase = rman_get_start(port);
596 if (iobase == siocniobase)
642 if (iobase == siocniobase)
702 if (iobase == siocniobase)
787 if (iobase == siocniobase)
878 Port_t iobase;
893 iobase = rman_get_start(port);
925 com->data_port = iobase + com_data;
926 com->int_ctl_port = iobase + com_ier;
927 com->int_id_port = iobase + com_iir;
928 com->modem_ctl_port = iobase + com_mcr;
930 com->line_status_port = iobase + com_lsr;
931 com->modem_status_port = iobase + com_msr;
956 if (iobase != siocniobase)
2293 static void siocnclose(struct siocnstate *sp, Port_t iobase);
2294 static void siocnopen(struct siocnstate *sp, Port_t iobase, int speed);
2295 static void siocntxwait(Port_t iobase);
2308 siocntxwait(iobase)
2309 Port_t iobase;
2319 while ((inb(iobase + com_lsr) & (LSR_TSRE | LSR_TXRDY))
2334 siocngetspeed(iobase, rclk)
2335 Port_t iobase;
2343 cfcr = inb(iobase + com_cfcr);
2344 outb(iobase + com_cfcr, CFCR_DLAB | cfcr);
2346 dlbl = inb(iobase + com_dlbl);
2347 dlbh = inb(iobase + com_dlbh);
2349 outb(iobase + com_cfcr, cfcr);
2360 siocnopen(sp, iobase, speed)
2362 Port_t iobase;
2374 sp->ier = inb(iobase + com_ier);
2375 outb(iobase + com_ier, 0); /* spltty() doesn't stop siointr() */
2376 siocntxwait(iobase);
2377 sp->cfcr = inb(iobase + com_cfcr);
2378 outb(iobase + com_cfcr, CFCR_DLAB | CFCR_8BITS);
2379 sp->dlbl = inb(iobase + com_dlbl);
2380 sp->dlbh = inb(iobase + com_dlbh);
2390 outb(iobase + com_dlbl, dlbl);
2393 outb(iobase + com_dlbh, dlbh);
2394 outb(iobase + com_cfcr, CFCR_8BITS);
2395 sp->mcr = inb(iobase + com_mcr);
2401 outb(iobase + com_mcr, (sp->mcr & MCR_IENABLE) | MCR_DTR | MCR_RTS);
2405 siocnclose(sp, iobase)
2407 Port_t iobase;
2412 siocntxwait(iobase);
2413 outb(iobase + com_cfcr, CFCR_DLAB | CFCR_8BITS);
2414 if (sp->dlbl != inb(iobase + com_dlbl))
2415 outb(iobase + com_dlbl, sp->dlbl);
2416 if (sp->dlbh != inb(iobase + com_dlbh))
2417 outb(iobase + com_dlbh, sp->dlbh);
2418 outb(iobase + com_cfcr, sp->cfcr);
2422 outb(iobase + com_mcr, sp->mcr | MCR_DTR | MCR_RTS);
2423 outb(iobase + com_ier, sp->ier);
2461 Port_t iobase;
2465 iobase = port;
2469 siocngetspeed(iobase, comdefaultrclk);
2483 cfcr = inb(iobase + com_cfcr);
2484 outb(iobase + com_cfcr, CFCR_DLAB | cfcr);
2486 outb(iobase + com_dlbl, divisor & 0xff);
2487 outb(iobase + com_dlbh, divisor >> 8);
2488 outb(iobase + com_cfcr, cfcr);
2490 siocnopen(&sp, iobase, comdefaultrate);
2498 siocniobase = iobase;
2503 siogdbiobase = iobase;
2537 Port_t iobase;
2543 iobase = siocniobase;
2547 iobase = siogdbiobase;
2554 siocnopen(&sp, iobase, speed);
2555 if (inb(iobase + com_lsr) & LSR_RXRDY)
2556 c = inb(iobase + com_data);
2559 siocnclose(&sp, iobase);
2570 Port_t iobase;
2574 iobase = siocniobase;
2578 iobase = siogdbiobase;
2590 siocnopen(&sp, iobase, speed);
2591 siocntxwait(iobase);
2592 outb(iobase + com_data, c);
2593 siocnclose(&sp, iobase);