Kyösti Mälkki | cb141bc | 2014-02-07 19:24:23 +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 _EHCI_DEBUG_H_ |
| 22 | #define _EHCI_DEBUG_H_ |
| 23 | |
| 24 | void usbdebug_re_enable(unsigned ehci_base); |
| 25 | void usbdebug_disable(void); |
| 26 | |
| 27 | void ehci_debug_hw_enable(void); |
| 28 | void ehci_debug_select_port(unsigned int port); |
| 29 | |
Kyösti Mälkki | 8cde852 | 2014-02-09 23:35:39 +0200 | [diff] [blame] | 30 | |
| 31 | #define DBGP_EP_VALID (1<<0) |
| 32 | #define DBGP_EP_ENABLED (1<<1) |
| 33 | #define DBGP_EP_BUSY (1<<2) |
| 34 | #define DBGP_EP_STATMASK (DBGP_EP_VALID | DBGP_EP_ENABLED) |
| 35 | |
| 36 | struct dbgp_pipe |
| 37 | { |
| 38 | u8 devnum; |
| 39 | u8 endpoint; |
| 40 | u8 pid; |
| 41 | u8 status; |
| 42 | int timeout; |
| 43 | |
| 44 | u8 bufidx; |
| 45 | u8 buflen; |
| 46 | char buf[8]; |
| 47 | }; |
| 48 | |
| 49 | void dbgp_put(struct dbgp_pipe *pipe); |
| 50 | int dbgp_try_get(struct dbgp_pipe *pipe); |
| 51 | |
Kyösti Mälkki | cb141bc | 2014-02-07 19:24:23 +0200 | [diff] [blame] | 52 | #endif /* _EHCI_DEBUG_H_ */ |