Lines Matching refs:iobase

100 	int iobase;
149 #define RBR(iobase) (iobase+0)
150 #define THR(iobase) (iobase+0)
151 #define IER(iobase) (iobase+1)
152 #define IIR(iobase) (iobase+2)
153 #define FCR(iobase) (iobase+2)
154 #define LCR(iobase) (iobase+3)
155 #define MCR(iobase) (iobase+4)
156 #define LSR(iobase) (iobase+5)
157 #define MSR(iobase) (iobase+6)
158 #define SCR(iobase) (iobase+7)
159 #define DLL(iobase) (iobase+0)
160 #define DLM(iobase) (iobase+1)
291 static void fpga_reset(int iobase)
293 outb(0, IER(iobase));
294 outb(LCR_DLAB | LCR_BIT5, LCR(iobase));
295 outb(1, DLL(iobase));
296 outb(0, DLM(iobase));
298 outb(LCR_BIT5, LCR(iobase));
299 inb(LSR(iobase));
300 inb(MSR(iobase));
302 outb(MCR_OUT1 | MCR_OUT2, MCR(iobase));
305 outb(MCR_DTR | MCR_RTS | MCR_OUT1 | MCR_OUT2, MCR(iobase));
313 static int fpga_write(int iobase, unsigned char wrd)
321 outb(bit | MCR_OUT1 | MCR_OUT2, MCR(iobase));
323 outb(0xfc, THR(iobase));
324 while ((inb(LSR(iobase)) & LSR_TSRE) == 0)
429 static int fpga_download(int iobase, int bitrate)
438 fpga_reset(iobase);
440 if (fpga_write(iobase, pbits[i])) {
446 fpga_write(iobase, 0xFF);
447 rc = inb(MSR(iobase)); /* check DONE signal */
494 static enum uart yam_check_uart(unsigned int iobase)
501 b1 = inb(MCR(iobase));
502 outb(b1 | 0x10, MCR(iobase)); /* loopback mode */
503 b2 = inb(MSR(iobase));
504 outb(0x1a, MCR(iobase));
505 b3 = inb(MSR(iobase)) & 0xf0;
506 outb(b1, MCR(iobase)); /* restore old values */
507 outb(b2, MSR(iobase));
510 inb(RBR(iobase));
511 inb(RBR(iobase));
512 outb(0x01, FCR(iobase)); /* enable FIFOs */
513 u = uart_tab[(inb(IIR(iobase)) >> 6) & 3];
515 outb(0x5a, SCR(iobase));
516 b1 = inb(SCR(iobase));
517 outb(0xa5, SCR(iobase));
518 b2 = inb(SCR(iobase));
804 seq_printf(seq, " IoBase 0x%x\n", yp->iobase);
841 printk(KERN_INFO "Trying %s at iobase 0x%lx irq %u\n", dev->name, dev->base_addr, dev->irq);
885 printk(KERN_INFO "%s at iobase 0x%lx irq %u uart %s\n", dev->name, dev->base_addr, dev->irq,
916 printk(KERN_INFO "%s: close yam at iobase 0x%lx irq %u\n",
980 yp->iobase = yi.cfg.iobase;
981 dev->base_addr = yi.cfg.iobase;
1035 yi.cfg.iobase = yp->iobase;
1085 yp->iobase = 0;
1095 dev->base_addr = yp->iobase;