summaryrefslogtreecommitdiff
path: root/src/include/console/qemu_debugcon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/console/qemu_debugcon.h')
-rw-r--r--src/include/console/qemu_debugcon.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/console/qemu_debugcon.h b/src/include/console/qemu_debugcon.h
index 63b1455dce..257ae581e5 100644
--- a/src/include/console/qemu_debugcon.h
+++ b/src/include/console/qemu_debugcon.h
@@ -1,7 +1,18 @@
#ifndef _QEMU_DEBUGCON_H_
#define _QEMU_DEBUGCON_H_
+#include <rules.h>
+#include <stdint.h>
+
void qemu_debugcon_init(void);
void qemu_debugcon_tx_byte(unsigned char data);
+#if CONFIG_CONSOLE_QEMU_DEBUGCON && (ENV_ROMSTAGE || ENV_RAMSTAGE)
+static inline void __qemu_debugcon_init(void) { qemu_debugcon_init(); }
+static inline void __qemu_debugcon_tx_byte(u8 data) { qemu_debugcon_tx_byte(data); }
+#else
+static inline void __qemu_debugcon_init(void) {}
+static inline void __qemu_debugcon_tx_byte(u8 data) {}
+#endif
+
#endif