Kyösti Mälkki | 03731d7 | 2014-02-02 19:12:14 +0200 | [diff] [blame] | 1 | #ifndef _QEMU_DEBUGCON_H_ |
| 2 | #define _QEMU_DEBUGCON_H_ |
| 3 | |
Kyösti Mälkki | f339086 | 2014-02-26 15:19:04 +0200 | [diff] [blame] | 4 | #include <rules.h> |
| 5 | #include <stdint.h> |
| 6 | |
Kyösti Mälkki | 03731d7 | 2014-02-02 19:12:14 +0200 | [diff] [blame] | 7 | void qemu_debugcon_init(void); |
| 8 | void qemu_debugcon_tx_byte(unsigned char data); |
| 9 | |
Kyösti Mälkki | f339086 | 2014-02-26 15:19:04 +0200 | [diff] [blame] | 10 | #if CONFIG_CONSOLE_QEMU_DEBUGCON && (ENV_ROMSTAGE || ENV_RAMSTAGE) |
| 11 | static inline void __qemu_debugcon_init(void) { qemu_debugcon_init(); } |
| 12 | static inline void __qemu_debugcon_tx_byte(u8 data) { qemu_debugcon_tx_byte(data); } |
| 13 | #else |
| 14 | static inline void __qemu_debugcon_init(void) {} |
| 15 | static inline void __qemu_debugcon_tx_byte(u8 data) {} |
| 16 | #endif |
| 17 | |
Kyösti Mälkki | 03731d7 | 2014-02-02 19:12:14 +0200 | [diff] [blame] | 18 | #endif |