You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

console.h 660B

1234567891011121314151617181920212223242526272829
  1. #ifndef CONSOLE_H
  2. #define CONSOLE_H
  3. #include "stdint.h"
  4. #include "vsprintf.h"
  5. /*
  6. * Consoles that cannot be used before their INIT_FN() has completed
  7. * should set disabled = 1 initially. This allows other console
  8. * devices to still be used to print out early debugging messages.
  9. */
  10. struct console_driver {
  11. int disabled;
  12. void ( *putchar ) ( int character );
  13. int ( *getchar ) ( void );
  14. int ( *iskey ) ( void );
  15. };
  16. #define __console_driver \
  17. __attribute__ (( used, __section__ ( ".drivers.console" ) ))
  18. /* Function prototypes */
  19. extern void putchar ( int character );
  20. extern int getchar ( void );
  21. extern int iskey ( void );
  22. #endif /* CONSOLE_H */