X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=include%2Fconsole.h;h=cea29ed6dc4ef0b26b9f7b53e5f6e53f90c04d23;hb=0f44d33536a50ef65259c322fa2d4a058585caf9;hp=097518d1503f9431f1cbf01d7d6d50188e5a5b68;hpb=24b852a7a2b8eca71789100983bdb5104cc00696;p=people%2Fms%2Fu-boot.git diff --git a/include/console.h b/include/console.h index 097518d150..cea29ed6dc 100644 --- a/include/console.h +++ b/include/console.h @@ -20,6 +20,40 @@ void clear_ctrlc(void); /* clear the Control-C condition */ int disable_ctrlc(int); /* 1 to disable, 0 to enable Control-C detect */ int confirm_yesno(void); /* 1 if input is "y", "Y", "yes" or "YES" */ +/** + * console_record_init() - set up the console recording buffers + * + * This should be called as soon as malloc() is available so that the maximum + * amount of console output can be recorded. + */ +int console_record_init(void); + +/** + * console_record_reset() - reset the console recording buffers + * + * Removes any data in the buffers + */ +void console_record_reset(void); + +/** + * console_record_reset_enable() - reset and enable the console buffers + * + * This should be called to enable the console buffer. + */ +void console_record_reset_enable(void); + +/** + * console_announce_r() - print a U-Boot console on non-serial consoles + * + * When U-Boot starts up with a display it generally does not announce itself + * on the display. The banner is instead emitted on the UART before relocation. + * This function prints a banner on devices which (we assume) did not receive + * it before relocation. + * + * @return 0 (meaning no errors) + */ +int console_announce_r(void); + /* * CONSOLE multiplexing. */