summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2013-07-06 11:56:49 +0300
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-07-10 23:23:55 +0200
commit9e7806a788f9617d3dd9139a74ab3f7b03eb9581 (patch)
tree8d85d5ba21a8f3870335a0fe36b65e37a3f8c7c9 /src/include
parent4d409b5fc27e44f7c902f8402f661db56d62ac74 (diff)
usbdebug: Move ehci_debug_info allocation
Move ehci_debug_info allocation from console to lib, as console code was only built for ramstage. Implement dbgp_ehci_info() to return the EHCI context. Alread alias this as dbgp_console_input() and _output() to return the console stream context later on. Change-Id: Id6cc07d62953f0466df61eeb159e22b0e3287d4e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3625 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usbdebug.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/usbdebug.h b/src/include/usbdebug.h
index fe4ef32a44..e32410ed18 100644
--- a/src/include/usbdebug.h
+++ b/src/include/usbdebug.h
@@ -60,10 +60,12 @@ void enable_usbdebug(unsigned int port);
int dbgp_bulk_write_x(struct ehci_debug_info *dbg_info, const char *bytes, int size);
int dbgp_bulk_read_x(struct ehci_debug_info *dbg_info, void *data, int size);
void set_debug_port(unsigned port);
-int early_usbdebug_init(void);
+int usbdebug_init(void);
+struct ehci_debug_info *dbgp_ehci_info(void);
+#define dbgp_console_output dbgp_ehci_info
+#define dbgp_console_input dbgp_ehci_info
int dbgp_ep_is_active(struct ehci_debug_info *dbg_info);
void usbdebug_tx_byte(struct ehci_debug_info *info, unsigned char data);
void usbdebug_tx_flush(struct ehci_debug_info *info);
-int usbdebug_init(unsigned ehci_bar, unsigned offset, struct ehci_debug_info *info);
#endif