blob: fb168da90513d3e68788fecd9793867b392058bd [file] [log] [blame]
Kyösti Mälkki40760722014-02-27 19:30:18 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17
18#ifndef _CONSOLE_STREAMS_H_
19#define _CONSOLE_STREAMS_H_
20
21void console_hw_init(void);
22void console_tx_byte(unsigned char byte);
23void console_tx_flush(void);
24
Kyösti Mälkkif2f7f032014-04-04 15:05:28 +030025/* For remote GDB debugging. */
26void gdb_hw_init(void);
27void gdb_tx_byte(unsigned char byte);
28void gdb_tx_flush(void);
29unsigned char gdb_rx_byte(void);
30
Kyösti Mälkkiefb0b512014-04-13 17:57:34 +030031/* Helpers for ROMCC console. */
32void console_tx_nibble(unsigned nibble);
33void console_tx_hex8(unsigned char value);
34void console_tx_hex16(unsigned short value);
35void console_tx_hex32(unsigned int value);
36void console_tx_string(const char *str);
37
Kyösti Mälkki40760722014-02-27 19:30:18 +020038#endif /* _CONSOLE_STREAMS_H_ */