Lines Matching defs:port
3 * Serial port routines for use during early boot reporting. This code is
26 static void early_serial_init(int port, int baud)
31 outb(0x3, port + LCR); /* 8n1 */
32 outb(0, port + IER); /* no interrupt */
33 outb(0, port + FCR); /* no fifo */
34 outb(0x3, port + MCR); /* DTR + RTS */
37 c = inb(port + LCR);
38 outb(c | DLAB, port + LCR);
39 outb(divisor & 0xff, port + DLL);
40 outb((divisor >> 8) & 0xff, port + DLH);
41 outb(c & ~DLAB, port + LCR);
43 early_serial_base = port;
51 int port = 0;
57 port = DEFAULT_SERIAL_PORT;
71 port = simple_strtoull(arg + pos, &e, 16);
72 if (port == 0 || arg + pos == e)
73 port = DEFAULT_SERIAL_PORT;
86 port = bases[idx];
97 if (port)
98 early_serial_init(port, baud);
102 static unsigned int probe_baud(int port)
107 lcr = inb(port + LCR);
108 outb(lcr | DLAB, port + LCR);
109 dll = inb(port + DLL);
110 dlh = inb(port + DLH);
111 outb(lcr, port + LCR);
121 int port = 0;
133 port = simple_strtoull(options + 12, &options, 0);
135 port = simple_strtoull(options + 8, &options, 0);
142 baud = probe_baud(port);
144 if (port)
145 early_serial_init(port, baud);