mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
usb: introduce new control request API
Change-Id: I6545d8985ab683c026f28f6a7c0e23b40d0a6506
This commit is contained in:
parent
71cc1e78fd
commit
ec164c389c
15 changed files with 168 additions and 14 deletions
|
|
@ -655,7 +655,7 @@ static void handle_out_ep(int ep)
|
|||
req->wIndex,
|
||||
req->wLength);
|
||||
|
||||
usb_core_control_request(&req_copy);
|
||||
usb_core_legacy_control_request(&req_copy);
|
||||
setup_desc_init(setup_desc);
|
||||
|
||||
ep_sts &= ~USB_EP_STAT_SETUP_RCVD;
|
||||
|
|
@ -760,7 +760,7 @@ void INT_USB_FUNC(void)
|
|||
got_set_configuration = 1;
|
||||
|
||||
set_config.wValue = USB_DEV_STS & USB_DEV_STS_MASK_CFG;
|
||||
usb_core_control_request(&set_config);
|
||||
usb_core_legacy_control_request(&set_config);
|
||||
intr &= ~USB_DEV_INTR_SET_CONFIG;
|
||||
}
|
||||
if (intr & USB_DEV_INTR_EARLY_SUSPEND) {/* idle >3ms detected */
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ static void setup_received(void)
|
|||
setup_data[1] = SETUP2;
|
||||
|
||||
/* pass setup data to the upper layer */
|
||||
usb_core_control_request((struct usb_ctrlrequest*)setup_data);
|
||||
usb_core_legacy_control_request((struct usb_ctrlrequest*)setup_data);
|
||||
}
|
||||
|
||||
static int max_pkt_size(struct endpoint_t *endp)
|
||||
|
|
|
|||
|
|
@ -1181,7 +1181,7 @@ void VLYNQ(void)
|
|||
}
|
||||
|
||||
/* Process control packet */
|
||||
usb_core_control_request(&setup);
|
||||
usb_core_legacy_control_request(&setup);
|
||||
}
|
||||
|
||||
if (sysIntrStatus.f.ep0_in_ack)
|
||||
|
|
|
|||
|
|
@ -877,7 +877,7 @@ static void control_received(void)
|
|||
}
|
||||
}
|
||||
|
||||
usb_core_control_request((struct usb_ctrlrequest*)tmp);
|
||||
usb_core_legacy_control_request((struct usb_ctrlrequest*)tmp);
|
||||
}
|
||||
|
||||
static void transfer_completed(void)
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ static void handle_ep_int(int ep, bool out)
|
|||
ep0_setup_pkt->bRequest == USB_REQ_SET_ADDRESS)
|
||||
DCFG = (DCFG & ~bitm(DCFG, devadr)) | (ep0_setup_pkt->wValue << DCFG_devadr_bitp);
|
||||
|
||||
usb_core_control_request(ep0_setup_pkt);
|
||||
usb_core_legacy_control_request(ep0_setup_pkt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ void handle_control(void)
|
|||
DEBUG(2, "req: %02x %02d", req->bRequestType, req->bRequest);
|
||||
}
|
||||
|
||||
usb_core_control_request(req);
|
||||
usb_core_legacy_control_request(req);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue