mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 12:49:24 +00:00
DM USB: xHCI: add log level switch
Support log level options, which could change the related log level without code change. The new usage: -s <n>,xhci,[bus1-port1,bus2-port2]:[tablet]:[log=x] eg: -s 8,xhci,1-2,2-2:log=D eg: -s 7,xhci,tablet eg: -s 7,xhci,1-2,2-2:tablet Note: please follow the board hardware design, assign the ports according to the receptacle connection Change-Id: I44639c7b076d21a40eb8f7b99cea8decc5c13c0c Signed-off-by: Wu, Xiaoguang <xiaoguang.wu@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Reviewed-by: Yu Wang <yu1.wang@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -205,6 +205,7 @@ enum USB_ERRCODE {
|
||||
extern int usb_log_level;
|
||||
inline int usb_get_log_level(void) { return usb_log_level; }
|
||||
inline void usb_set_log_level(int level) { usb_log_level = level; }
|
||||
void usb_parse_log_level(char level);
|
||||
struct usb_devemu *usb_emu_finddev(char *name);
|
||||
int usb_native_is_bus_existed(uint8_t bus_num);
|
||||
int usb_native_is_ss_port(uint8_t bus_of_port);
|
||||
|
Reference in New Issue
Block a user