diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-04-04 15:05:28 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-05-26 10:52:16 +0200 |
commit | f2f7f03aff2df2471fce08f48bb0a6583263158e (patch) | |
tree | 45aa9e5c906b6184f9699fcc707c42f0995baa44 /src/include/console/streams.h | |
parent | c009601f29847aa91ec2f5a89a02f46a2119c5a4 (diff) | |
download | coreboot-f2f7f03aff2df2471fce08f48bb0a6583263158e.tar.xz |
console: Add console for GDB
Connection of UARTs to GDB stub got lost in the console transition
process, bring it back. In theory, GDB stub should work also over
usbdebug, but that solution is not really tested at all yet.
Change-Id: I90e05e8132889e788b92e055ee191f35add43bbc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5343
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/include/console/streams.h')
-rw-r--r-- | src/include/console/streams.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/console/streams.h b/src/include/console/streams.h index 9d4d3fcc6b..fb168da905 100644 --- a/src/include/console/streams.h +++ b/src/include/console/streams.h @@ -22,6 +22,12 @@ void console_hw_init(void); void console_tx_byte(unsigned char byte); void console_tx_flush(void); +/* For remote GDB debugging. */ +void gdb_hw_init(void); +void gdb_tx_byte(unsigned char byte); +void gdb_tx_flush(void); +unsigned char gdb_rx_byte(void); + /* Helpers for ROMCC console. */ void console_tx_nibble(unsigned nibble); void console_tx_hex8(unsigned char value); |