您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

console.h 640B

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