diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-30 12:21:34 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-01 14:57:44 +1100 |
commit | 9594a715b50c338f1261e88c12c120cf8e5b8bba (patch) | |
tree | 5e5a07267866843ae9b0077122300bc3396ee2e5 /include/console.h | |
parent | 566f139cffdcef5d1ce679cc1a7cfd0c7cde3f78 (diff) | |
download | skiboot-9594a715b50c338f1261e88c12c120cf8e5b8bba.zip skiboot-9594a715b50c338f1261e88c12c120cf8e5b8bba.tar.gz skiboot-9594a715b50c338f1261e88c12c120cf8e5b8bba.tar.bz2 |
Add tweaks to work in Mambo simulator
Mambo doesn't implement various things such as PBA SCOMs, LPC,
ChipTOD, etc... It also provides a special console hook.
This adds detection of Mambo via the /mambo node, and enables
us to boot all the way to Linux.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index bbe2444..5b6c5d5 100644 --- a/include/console.h +++ b/include/console.h @@ -50,6 +50,7 @@ extern struct memcons memcons; struct con_ops { size_t (*write)(const char *buf, size_t len); size_t (*read)(char *buf, size_t len); + bool (*poll_read)(void); }; extern struct lock con_lock; @@ -60,6 +61,10 @@ extern bool flush_console(void); extern bool __flush_console(bool flush_to_drivers); extern void set_console(struct con_ops *driver); +extern int mambo_read(void); +extern void mambo_write(const char *buf, size_t count); +extern void enable_mambo_console(void); + ssize_t console_write(bool flush_to_drivers, const void *buf, size_t count); extern void clear_console(void); |