Author: stuge Date: 2008-09-04 23:05:59 +0200 (Thu, 04 Sep 2008) New Revision: 3565
Modified: trunk/payloads/libpayload/drivers/serial.c Log: Make the serial output driver 8 bit clean. Remove translate_special_chars(), since it has been superseeded by the ACS code in tinycurses.
Signed-off-by: Ulf Jordan jordan@chalmers.se Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/payloads/libpayload/drivers/serial.c =================================================================== --- trunk/payloads/libpayload/drivers/serial.c 2008-09-04 13:44:00 UTC (rev 3564) +++ trunk/payloads/libpayload/drivers/serial.c 2008-09-04 21:05:59 UTC (rev 3565) @@ -37,25 +37,6 @@ #define DIVISOR (115200 / CONFIG_SERIAL_BAUD_RATE) #endif
-/* This is a hack - we convert the drawing characters to ASCII */ - -static unsigned char translate_special_chars(unsigned char c) -{ - switch(c) { - case 196: - return '-'; - case 179: - return '|'; - case 218: - case 191: - case 192: - case 217: - return '+'; - default: - return ' '; - } -} - void serial_init(void) { #ifdef CONFIG_SERIAL_SET_SPEED @@ -82,9 +63,6 @@
void serial_putchar(unsigned char c) { - if (c > 127) - c = translate_special_chars(c); - while ((inb(IOBASE + 0x05) & 0x20) == 0) ; outb(c, IOBASE); }