Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

console.h 638B

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