mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-16 00:01:34 +00:00
30 lines
660 B
C
30 lines
660 B
C
#ifndef CONSOLE_H
|
|
#define CONSOLE_H
|
|
|
|
#include "stdint.h"
|
|
#include "vsprintf.h"
|
|
|
|
/*
|
|
* Consoles that cannot be used before their INIT_FN() has completed
|
|
* should set disabled = 1 initially. This allows other console
|
|
* devices to still be used to print out early debugging messages.
|
|
*/
|
|
|
|
struct console_driver {
|
|
int disabled;
|
|
void ( *putchar ) ( int character );
|
|
int ( *getchar ) ( void );
|
|
int ( *iskey ) ( void );
|
|
};
|
|
|
|
#define __console_driver \
|
|
__attribute__ (( used, __section__ ( ".drivers.console" ) ))
|
|
|
|
/* Function prototypes */
|
|
|
|
extern void putchar ( int character );
|
|
extern int getchar ( void );
|
|
extern int iskey ( void );
|
|
|
|
#endif /* CONSOLE_H */
|