sandbox: Improve sandbox serial port keyboard interface
authorTaylor Hutt <thutt@chromium.org>
Sun, 24 Feb 2013 17:33:13 +0000 (17:33 +0000)
committerSimon Glass <sjg@chromium.org>
Fri, 1 Mar 2013 03:09:21 +0000 (19:09 -0800)
commite101550a9a8b956434cf2a73f66afbb42f4654bd
tree9b3779554981488f9fead9eab91eadfbdc0a1d2d
parentbda32ffcf712806c7880ded25a012fbeede35e80
sandbox: Improve sandbox serial port keyboard interface

Implements the tstc() interface for the serial driver.  Multiplexing
the console between the serial port and a keyboard uses a polling
method of checking if characters are available; this means that the
serial console must be non-blocking when attempting to read
characters.

Signed-off-by: Taylor Hutt <thutt@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
drivers/serial/sandbox.c
include/os.h