• Home
  • Raw
  • Download

Lines Matching refs:base_addr

174 	outb(0x81, LCR(dev->base_addr));	/* DLAB = 1 */  in ser12_set_divisor()
175 outb(divisor, DLL(dev->base_addr)); in ser12_set_divisor()
176 outb(0, DLM(dev->base_addr)); in ser12_set_divisor()
177 outb(0x01, LCR(dev->base_addr)); /* word length = 6 */ in ser12_set_divisor()
183 outb(0x00, THR(dev->base_addr)); in ser12_set_divisor()
209 outb(0x0e | (!!bc->modem.ser12.tx_bit), MCR(dev->base_addr)); in ser12_tx()
225 cur_s = inb(MSR(dev->base_addr)) & 0x10; /* the CTS line */ in ser12_rx()
355 outb(0x0d, MCR(dev->base_addr)); /* transmitter off */ in ser12_rx()
362 hdlcdrv_setdcd(&bc->hdrv, !((inb(MSR(dev->base_addr)) ^ bc->opt_dcd) & 0x80)); in ser12_rx()
387 if ((iir = inb(IIR(dev->base_addr))) & 1) in ser12_interrupt()
393 inb(LSR(dev->base_addr)); in ser12_interrupt()
397 inb(RBR(dev->base_addr)); in ser12_interrupt()
410 outb(0x00, THR(dev->base_addr)); in ser12_interrupt()
414 inb(MSR(dev->base_addr)); in ser12_interrupt()
417 iir = inb(IIR(dev->base_addr)); in ser12_interrupt()
479 if (!dev->base_addr || dev->base_addr > 0x1000-SER12_EXTENT || in ser12_open()
482 if (!request_region(dev->base_addr, SER12_EXTENT, "baycom_ser12")) in ser12_open()
486 if ((u = ser12_check_uart(dev->base_addr)) == c_uart_unknown) { in ser12_open()
487 release_region(dev->base_addr, SER12_EXTENT); in ser12_open()
490 outb(0, FCR(dev->base_addr)); /* disable FIFOs */ in ser12_open()
491 outb(0x0d, MCR(dev->base_addr)); in ser12_open()
492 outb(0, IER(dev->base_addr)); in ser12_open()
495 release_region(dev->base_addr, SER12_EXTENT); in ser12_open()
501 outb(2, IER(dev->base_addr)); in ser12_open()
509 bc_drvname, dev->base_addr, dev->irq, uart_str[u]); in ser12_open()
524 outb(0, IER(dev->base_addr)); in ser12_close()
525 outb(1, MCR(dev->base_addr)); in ser12_close()
527 release_region(dev->base_addr, SER12_EXTENT); in ser12_close()
529 bc_drvname, dev->base_addr, dev->irq); in ser12_close()