blob: 47f3d74c36cc27db95b6772e48180d02d25260b7 [file] [log] [blame]
Kyösti Mälkkie2227a22014-02-05 13:02:55 +02001/*
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
24struct dbgp_pipe;
25
26int usbdebug_init(void);
27
28struct dbgp_pipe *dbgp_console_output(void);
29struct dbgp_pipe *dbgp_console_input(void);
30int dbgp_ep_is_active(struct dbgp_pipe *pipe);
31int dbgp_bulk_write_x(struct dbgp_pipe *pipe, const char *bytes, int size);
32int dbgp_bulk_read_x(struct dbgp_pipe *pipe, void *data, int size);
33void usbdebug_tx_byte(struct dbgp_pipe *pipe, unsigned char data);
34void usbdebug_tx_flush(struct dbgp_pipe *pipe);
35
36#endif /* _CONSOLE_USB_H_ */