DM USB: Add some APIs for check native related configurations.

New USB APIs:
usb_native_is_bus_existed/usb_native_is_port_existed: Check if specific
usb bus or port are valid or not.
usb_native_is_ss_port: Check if the specific port is supper speed usb port.

Change-Id: I9ab54f6e81742321128d6abd5845ef966f0e9f37
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:
Wu, Xiaoguang
2018-05-06 21:02:11 +08:00
committed by lijinxia
parent 0181d19a61
commit 8aef2cb34b
3 changed files with 105 additions and 2 deletions

View File

@@ -41,6 +41,7 @@
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <fcntl.h>
#include "usb.h"
#include "usbdi.h"
#include "xhcireg.h"