Lines Matching refs:iobase
84 outb(s->state & 0xff, dev->iobase + DIO_W);
88 val |= inb(dev->iobase + DIO_R) << 8;
119 status = inb(dev->iobase + STA_R2);
122 status = inb(dev->iobase + STA_R1);
148 outb(r3_bits | (range & 0x03), dev->iobase + CMD_R3);
152 outb(chan | 0x80, dev->iobase + CMD_R1);
159 outb(0x00, dev->iobase + CMD_R2); /* enable ADC conversions */
160 outb(0x30, dev->iobase + CMO_R); /* mode 0 out0 L, from H */
161 outb(0x00, dev->iobase + ADCLEAR_R); /* clear the ADC FIFO */
163 inw(dev->iobase + ADFIFO_R);
165 outb(0x32, dev->iobase + CMO_R);
173 d = inw(dev->iobase + ADFIFO_R);
197 unsigned long iobase = dev->iobase;
199 outb(0x80, iobase + CMD_R1); /* disable scanning, ADC to chan 0 */
200 outb(0x00, iobase + CMD_R2); /* clear all bits */
201 outb(0x00, iobase + CMD_R3); /* set +-10 range */
202 outb(0x32, iobase + CMO_R); /* config counter mode1, out0 to H */
203 outb(0x00, iobase + TIC_R); /* clear counter interrupt */
204 outb(0x00, iobase + ADCLEAR_R); /* clear the ADC FIFO */
205 inw(iobase + ADFIFO_R); /* read 16bit junk from FIFO to clear */
219 dev->iobase = link->resource[0]->start;