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>
This commit is contained in:
committed by
Patrick Georgi
parent
0b7b7b6334
commit
82704c63b9
@@ -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
|
||||
|
Reference in New Issue
Block a user