Lines Matching defs:options
40 char options[16]; /* e.g., 115200n8 */
133 static int __init parse_options(struct early_uart_device *device, char *options)
139 if (!options)
143 if (!strncmp(options, "mmio,", 5)) {
145 port->mapbase = simple_strtoul(options + 5, &options, 0);
153 } else if (!strncmp(options, "io,", 3)) {
155 port->iobase = simple_strtoul(options + 3, &options, 0);
160 if ((options = strchr(options, ','))) {
161 options++;
162 device->baud = simple_strtoul(options, NULL, 0);
163 length = min(strcspn(options, " "), sizeof(device->options));
164 strncpy(device->options, options, length);
167 snprintf(device->options, sizeof(device->options), "%u",
171 printk(KERN_INFO "Early serial console at %s 0x%lx (options '%s')\n",
174 device->options);
178 static int __init early_uart_setup(struct console *console, char *options)
186 if ((err = parse_options(device, options)) < 0)
213 char *options;
216 options = strstr(cmdline, "console=uart,");
217 if (!options)
220 options = strchr(cmdline, ',') + 1;
221 if ((err = early_uart_setup(NULL, options)) < 0)
237 line = serial8250_start_console(port, device->options);