summaryrefslogtreecommitdiff
path: root/src/include/usbdebug.h
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2012-07-26 14:31:40 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-07-26 15:52:00 +0200
commit82704c63b98202fe2a24032697369cd190202d3f (patch)
treee1893f92423bd4e4c111fb57fe54429327dbf9cb /src/include/usbdebug.h
parent0b7b7b6334de592b82d36ee47bc25b1b72043681 (diff)
downloadcoreboot-82704c63b98202fe2a24032697369cd190202d3f.tar.xz
USBDEBUG: buffer up to 8 bytes
EHCI debug allows to send message with 8 bytes length, but we're only sending one byte in each transaction. Buffer up to 8 bytes to speed up debug output. Change-Id: I9dbb406833c4966c3afbd610e1b13a8fa3d62f39 Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/1357 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.huber@secunet.com>
Diffstat (limited to 'src/include/usbdebug.h')
-rw-r--r--src/include/usbdebug.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/usbdebug.h b/src/include/usbdebug.h
index a7ab21fd27..8caf361f90 100644
--- a/src/include/usbdebug.h
+++ b/src/include/usbdebug.h
@@ -30,6 +30,8 @@ struct ehci_debug_info {
u32 devnum;
u32 endpoint_out;
u32 endpoint_in;
+ char buf[8];
+ u8 bufidx;
};
#ifndef __ROMCC__
@@ -41,7 +43,8 @@ void set_ehci_debug(unsigned ehci_debug);
unsigned get_ehci_debug(void);
void set_debug_port(unsigned port);
int early_usbdebug_init(void);
-void usbdebug_tx_byte(unsigned char data);
+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
#endif