serial.c (af3b146d26550f0c8e0d77b2117c6f8aec5d8146) | serial.c (b96fbb6e1eb81bb21a8c3462773a0056e12de427) |
---|---|
1/* 2 * Generic serial console support 3 * 4 * Author: Mark A. Greer <mgreer@mvista.com> 5 * 6 * Code in serial_edit_cmdline() copied from <file:arch/ppc/boot/simple/misc.c> 7 * and was written by Matt Porter <mporter@kernel.crashing.org>. 8 * --- 13 unchanged lines hidden (view full) --- 22extern void udelay(long delay); 23 24static int serial_open(void) 25{ 26 struct serial_console_data *scdp = console_ops.data; 27 return scdp->open(); 28} 29 | 1/* 2 * Generic serial console support 3 * 4 * Author: Mark A. Greer <mgreer@mvista.com> 5 * 6 * Code in serial_edit_cmdline() copied from <file:arch/ppc/boot/simple/misc.c> 7 * and was written by Matt Porter <mporter@kernel.crashing.org>. 8 * --- 13 unchanged lines hidden (view full) --- 22extern void udelay(long delay); 23 24static int serial_open(void) 25{ 26 struct serial_console_data *scdp = console_ops.data; 27 return scdp->open(); 28} 29 |
30static void serial_write(char *buf, int len) | 30static void serial_write(const char *buf, int len) |
31{ 32 struct serial_console_data *scdp = console_ops.data; 33 34 while (*buf != '\0') 35 scdp->putc(*buf++); 36} 37 38static void serial_edit_cmdline(char *buf, int len) --- 106 unchanged lines hidden --- | 31{ 32 struct serial_console_data *scdp = console_ops.data; 33 34 while (*buf != '\0') 35 scdp->putc(*buf++); 36} 37 38static void serial_edit_cmdline(char *buf, int len) --- 106 unchanged lines hidden --- |