Lines Matching refs:iobase

151 #define UART_RBR(iobase) (iobase+0)  argument
152 #define UART_THR(iobase) (iobase+0) argument
153 #define UART_IER(iobase) (iobase+1) argument
154 #define UART_IIR(iobase) (iobase+2) argument
155 #define UART_FCR(iobase) (iobase+2) argument
156 #define UART_LCR(iobase) (iobase+3) argument
157 #define UART_MCR(iobase) (iobase+4) argument
158 #define UART_LSR(iobase) (iobase+5) argument
159 #define UART_MSR(iobase) (iobase+6) argument
160 #define UART_SCR(iobase) (iobase+7) argument
161 #define UART_DLL(iobase) (iobase+0) argument
162 #define UART_DLM(iobase) (iobase+1) argument
166 #define MIDI_DATA(iobase) (iobase) argument
167 #define MIDI_STATUS(iobase) (iobase+1) argument
196 static enum uart check_uart(unsigned int iobase) in check_uart() argument
203 if (iobase <= 0 || iobase > 0x1000-SER_EXTENT) in check_uart()
205 if (check_region(iobase, SER_EXTENT)) in check_uart()
207 b1 = inb(UART_MCR(iobase)); in check_uart()
208 outb(b1 | 0x10, UART_MCR(iobase)); /* loopback mode */ in check_uart()
209 b2 = inb(UART_MSR(iobase)); in check_uart()
210 outb(0x1a, UART_MCR(iobase)); in check_uart()
211 b3 = inb(UART_MSR(iobase)) & 0xf0; in check_uart()
212 outb(b1, UART_MCR(iobase)); /* restore old values */ in check_uart()
213 outb(b2, UART_MSR(iobase)); in check_uart()
216 inb(UART_RBR(iobase)); in check_uart()
217 inb(UART_RBR(iobase)); in check_uart()
218 outb(0x01, UART_FCR(iobase)); /* enable FIFOs */ in check_uart()
219 u = uart_tab[(inb(UART_IIR(iobase)) >> 6) & 3]; in check_uart()
221 outb(0x5a, UART_SCR(iobase)); in check_uart()
222 b1 = inb(UART_SCR(iobase)); in check_uart()
223 outb(0xa5, UART_SCR(iobase)); in check_uart()
224 b2 = inb(UART_SCR(iobase)); in check_uart()
233 static int check_midi(unsigned int iobase) in check_midi() argument
239 if (iobase <= 0 || iobase > 0x1000-MIDI_EXTENT) in check_midi()
241 if (check_region(iobase, MIDI_EXTENT)) in check_midi()
244 while (inb(MIDI_STATUS(iobase)) & MIDI_WRITE_EMPTY) in check_midi()
249 outb(0xff, MIDI_DATA(iobase)); in check_midi()
250 b = inb(MIDI_STATUS(iobase)); in check_midi()
254 while (inb(MIDI_STATUS(iobase)) & MIDI_WRITE_EMPTY) in check_midi()
610 static int iobase[NR_PORTS] = { [0 ... NR_PORTS-1] = -1 }; variable
620 MODULE_PARM(iobase, "1-" __MODULE_STRING(NR_PORTS) "i");
621 MODULE_PARM_DESC(iobase, "soundmodem base address");
659 if (iobase[i] == -1) in init_soundmodem()
660 iobase[i] = 0x220; in init_soundmodem()
666 if (iobase[i] == -1) in init_soundmodem()
667 iobase[i] = 0x530; in init_soundmodem()
675 iobase[i] = irq[i] = 0; in init_soundmodem()
676 …j = hdlcdrv_register_hdlcdrv(dev, &sm_ops, sizeof(struct sm_state), ifname, iobase[i], irq[i], dma… in init_soundmodem()
739 iobase[nr_dev] = ints[1]; in sm_setup()