Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #define EOF (-1) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
Paul Mackerras | fca5dcd | 2005-11-08 22:55:08 +1100 | [diff] [blame] | 3 | #define printf xmon_printf |
| 4 | #define putchar xmon_putchar |
| 5 | |
| 6 | extern int xmon_putchar(int c); |
| 7 | extern int xmon_getchar(void); |
Ishizaki Kou | 4d404ed | 2007-07-18 19:26:40 +1000 | [diff] [blame] | 8 | extern void xmon_puts(const char *); |
Paul Mackerras | fca5dcd | 2005-11-08 22:55:08 +1100 | [diff] [blame] | 9 | extern char *xmon_gets(char *, int); |
| 10 | extern void xmon_printf(const char *, ...); |
| 11 | extern void xmon_map_scc(void); |
| 12 | extern int xmon_expect(const char *str, unsigned long timeout); |
Ishizaki Kou | 776568d | 2007-07-18 19:30:29 +1000 | [diff] [blame] | 13 | extern int xmon_write(const void *ptr, int nb); |
Paul Mackerras | fca5dcd | 2005-11-08 22:55:08 +1100 | [diff] [blame] | 14 | extern int xmon_readchar(void); |
| 15 | extern int xmon_read_poll(void); |