bootcon.h 816 B

12345678910111213141516171819202122
  1. /* Boot console: the earliest on-screen output.
  2. *
  3. * Draws 8x8 text straight into the boot framebuffer described at 0x600. It
  4. * needs no heap, no paging (the LFB is identity-accessible), no drivers and
  5. * no shadow buffer, so it can be the first C code in kernel_main. Purpose:
  6. * stage tracing on machines without serial, and a last visible screen if the
  7. * kernel wedges before the WM paints. The WM's first frame covers it;
  8. * bootcon_set_enabled(0) stops drawing before that happens.
  9. */
  10. #ifndef BOOTCON_H
  11. #define BOOTCON_H
  12. void bootcon_init(void);
  13. int bootcon_ok(void);
  14. void bootcon_set_enabled(int on);
  15. void bootcon_puts(const char *s);
  16. void bootcon_dec(unsigned int v);
  17. void bootcon_hex(unsigned int v);
  18. /* One line with the cached mode geometry and LFB address. */
  19. void bootcon_fb_info(void);
  20. #endif