From 6f6a249a75927476ba5e06bb2b0a0138e0cf63ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 9 Feb 2014 19:21:30 +0200 Subject: usbdebug: Remove EHCI_DEBUG_OFFSET MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Read this variable from PCI configuration capabilities list instead. Change-Id: I0cfe981833873397c32cd3aa2af307f35f01784b Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/5176 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/drivers/usb/ehci_debug.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/drivers/usb/ehci_debug.h') diff --git a/src/drivers/usb/ehci_debug.h b/src/drivers/usb/ehci_debug.h index 7cfac011e1..30bf724cb8 100644 --- a/src/drivers/usb/ehci_debug.h +++ b/src/drivers/usb/ehci_debug.h @@ -24,10 +24,12 @@ void usbdebug_re_enable(unsigned ehci_base); void usbdebug_disable(void); -void ehci_debug_hw_enable(void); +/* Returns 0 on success and sets MMIO base and dbg_offset if EHCI debug + * capability was found and enabled. Returns non-zero on error. + */ +int ehci_debug_hw_enable(unsigned *base, unsigned *dbg_offset); void ehci_debug_select_port(unsigned int port); - #define DBGP_EP_VALID (1<<0) #define DBGP_EP_ENABLED (1<<1) #define DBGP_EP_BUSY (1<<2) -- cgit v1.2.3