This patch removes most of the #ifdefs in libc/console.c, and
authorPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 21 Oct 2008 15:08:18 +0000 (15:08 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 21 Oct 2008 15:08:18 +0000 (15:08 +0000)
commit657a6dc390871721711c2becc8501d05095891e5
tree145b4de959fa8b76f5585ea85b1c5960e76d37c9
parent97f56a4b7e36a49f8d7d24dcf741df1c181f13cb
This patch removes most of the #ifdefs in libc/console.c, and
replaces it with two queues (input, output) where drivers (serial,
keyboard, video, usb) can attach.

The only things left with #ifdefs are initialization (at some point
the drivers must get a chance to register)

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3679 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
payloads/libpayload/drivers/keyboard.c
payloads/libpayload/drivers/serial.c
payloads/libpayload/drivers/usb/usbhid.c
payloads/libpayload/drivers/video/video.c
payloads/libpayload/include/libpayload.h
payloads/libpayload/libc/console.c