Stefan Reinauer | bb01f60 | 2009-07-21 21:20:45 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
Stefan Reinauer | 5639448 | 2010-05-25 16:02:28 +0000 | [diff] [blame^] | 18 | #ifndef USBDEBUG_H |
| 19 | #define USBDEBUG_H |
Yinghai Lu | d57241f | 2007-02-28 11:17:02 +0000 | [diff] [blame] | 20 | |
| 21 | struct ehci_debug_info { |
| 22 | void *ehci_caps; |
| 23 | void *ehci_regs; |
| 24 | void *ehci_debug; |
| 25 | unsigned devnum; |
| 26 | unsigned endpoint_out; |
| 27 | unsigned endpoint_in; |
| 28 | }; |
Stefan Reinauer | bb01f60 | 2009-07-21 21:20:45 +0000 | [diff] [blame] | 29 | |
Stefan Reinauer | 7e16bf3 | 2009-04-21 23:05:13 +0000 | [diff] [blame] | 30 | int dbgp_bulk_write_x(struct ehci_debug_info *dbg_info, const char *bytes, int size); |
| 31 | int dbgp_bulk_read_x(struct ehci_debug_info *dbg_info, void *data, int size); |
| 32 | void set_ehci_base(unsigned ehci_base); |
| 33 | void set_ehci_debug(unsigned ehci_deug); |
| 34 | unsigned get_ehci_debug(void); |
| 35 | void set_debug_port(unsigned port); |
Stefan Reinauer | bb01f60 | 2009-07-21 21:20:45 +0000 | [diff] [blame] | 36 | |
Yinghai Lu | d57241f | 2007-02-28 11:17:02 +0000 | [diff] [blame] | 37 | #endif |