[coreboot] [PATCH]libpayload: rework console interfaces

Patrick Georgi patrick at georgi-clan.de
Fri Oct 17 13:25:24 CEST 2008


attached 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) and usb's polling, which should
end up in most tight loops. Maybe there's a better way for usb poll.

I didn't use linker tricks (separate section for the device structs,
iterating over that, etc) as I think that would have to be included in
the build system of libpayload users. They should have it simple, stupid.

Comments, critique and ideas for improvements welcome.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: console-rework.patch
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081017/a958a8c9/attachment.ksh>

More information about the coreboot mailing list