summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorUlf Jordan <jordan@chalmers.se>2008-09-04 21:05:59 +0000
committerPeter Stuge <peter@stuge.se>2008-09-04 21:05:59 +0000
commit0e0ecf27bb3f25408256123c2373cd553739fd25 (patch)
treefa44ae307668e797b7c52dd37f4d5b1243a68e1c /payloads
parent00809ebf02f7c3eb5713f522512207a3544635d5 (diff)
downloadcoreboot-0e0ecf27bb3f25408256123c2373cd553739fd25.tar.xz
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> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3565 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/drivers/serial.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/payloads/libpayload/drivers/serial.c b/payloads/libpayload/drivers/serial.c
index 8d7273c3a5..cce43ca2fe 100644
--- a/payloads/libpayload/drivers/serial.c
+++ b/payloads/libpayload/drivers/serial.c
@@ -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_init(void)
void serial_putchar(unsigned char c)
{
- if (c > 127)
- c = translate_special_chars(c);
-
while ((inb(IOBASE + 0x05) & 0x20) == 0) ;
outb(c, IOBASE);
}