summaryrefslogtreecommitdiffstats
path: root/src/include/console/qemu_debugcon.h
blob: 155bfdaf297718b204079bf3591465b0933b68ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _QEMU_DEBUGCON_H_
#define _QEMU_DEBUGCON_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 || ENV_POSTCAR || ENV_BOOTBLOCK)
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