blob: 257ae581e5da6ae6f0a5a7706f297eca2f654a21 [file] [log] [blame]
Kyösti Mälkki03731d72014-02-02 19:12:14 +02001#ifndef _QEMU_DEBUGCON_H_
2#define _QEMU_DEBUGCON_H_
3
Kyösti Mälkkif3390862014-02-26 15:19:04 +02004#include <rules.h>
5#include <stdint.h>
6
Kyösti Mälkki03731d72014-02-02 19:12:14 +02007void qemu_debugcon_init(void);
8void qemu_debugcon_tx_byte(unsigned char data);
9
Kyösti Mälkkif3390862014-02-26 15:19:04 +020010#if CONFIG_CONSOLE_QEMU_DEBUGCON && (ENV_ROMSTAGE || ENV_RAMSTAGE)
11static inline void __qemu_debugcon_init(void) { qemu_debugcon_init(); }
12static inline void __qemu_debugcon_tx_byte(u8 data) { qemu_debugcon_tx_byte(data); }
13#else
14static inline void __qemu_debugcon_init(void) {}
15static inline void __qemu_debugcon_tx_byte(u8 data) {}
16#endif
17
Kyösti Mälkki03731d72014-02-02 19:12:14 +020018#endif