mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 13:59:18 +00:00
DM USB: extend the API for struct usb_devemu
For the purpose of USB port mapper, change struct usb_devemu to common interface between HCD layer and USB device layer. Besides, implements ue_init/ue_deinit/ue_info for port mapper. Change-Id: Id4b7345c7b321b9bdab58139c61169d9229cb6f8 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:
@@ -282,9 +282,16 @@ umouse_event(uint8_t button, int x, int y, void *arg)
|
||||
}
|
||||
|
||||
static void *
|
||||
umouse_init(struct usb_hci *hci, char *opt)
|
||||
umouse_init(void *pdata, char *opt)
|
||||
{
|
||||
struct umouse_vdev *dev;
|
||||
struct usb_hci *hci;
|
||||
|
||||
hci = pdata;
|
||||
if (!hci) {
|
||||
UPRINTF(LFTL, "umouse: invalid hci\r\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
dev = calloc(1, sizeof(struct umouse_vdev));
|
||||
if (!dev) {
|
||||
|
Reference in New Issue
Block a user