From 82704c63b98202fe2a24032697369cd190202d3f Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Thu, 26 Jul 2012 14:31:40 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/1357 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/include/usbdebug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include') 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 -- cgit v1.2.3