Kyösti Mälkki | e2227a2 | 2014-02-05 13:02:55 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2007 AMD |
| 5 | * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA |
| 19 | */ |
| 20 | |
| 21 | #ifndef _CONSOLE_USB_H_ |
| 22 | #define _CONSOLE_USB_H_ |
| 23 | |
| 24 | struct dbgp_pipe; |
| 25 | |
| 26 | int usbdebug_init(void); |
| 27 | |
| 28 | struct dbgp_pipe *dbgp_console_output(void); |
| 29 | struct dbgp_pipe *dbgp_console_input(void); |
| 30 | int dbgp_ep_is_active(struct dbgp_pipe *pipe); |
| 31 | int dbgp_bulk_write_x(struct dbgp_pipe *pipe, const char *bytes, int size); |
| 32 | int dbgp_bulk_read_x(struct dbgp_pipe *pipe, void *data, int size); |
| 33 | void usbdebug_tx_byte(struct dbgp_pipe *pipe, unsigned char data); |
| 34 | void usbdebug_tx_flush(struct dbgp_pipe *pipe); |
Kyösti Mälkki | 0108bf5 | 2014-01-15 22:26:03 +0200 | [diff] [blame] | 35 | unsigned char usbdebug_rx_byte(struct dbgp_pipe *pipe); |
Kyösti Mälkki | e2227a2 | 2014-02-05 13:02:55 +0200 | [diff] [blame] | 36 | |
| 37 | #endif /* _CONSOLE_USB_H_ */ |