void
init_urb(struct ddekit_usb_urb * urb, struct ddekit_usb_dev * dev,
ddekit_int32_t urb_type, ddekit_int32_t urb_endpoint,
- ddekit_int32_t urb_direction, ddekit_uint32_t urb_transfer_flags)
+ ddekit_int32_t urb_direction)
{
MASS_DEBUG_DUMP;
urb->type = urb_type;
urb->endpoint = urb_endpoint;
urb->direction = urb_direction;
- urb->transfer_flags = urb_transfer_flags;
}
* declared functions *
*---------------------------*/
void init_urb(struct ddekit_usb_urb *, struct ddekit_usb_dev *, ddekit_int32_t,
- ddekit_int32_t, ddekit_int32_t, ddekit_uint32_t);
+ ddekit_int32_t, ddekit_int32_t);
void attach_urb_data(struct ddekit_usb_urb *, int, void *, ddekit_uint32_t);
int blocking_urb_submit(struct ddekit_usb_urb *, ddekit_sem_t *, int);
/* Reset URB and assign given values */
init_urb(&urb, driver_state.cur_periph->dev, DDEKIT_USB_TRANSFER_BLK,
- driver_state.cur_periph->ep_out, DDEKIT_USB_OUT, 0);
+ driver_state.cur_periph->ep_out, DDEKIT_USB_OUT);
/* Reset CBW and assign default values */
init_cbw(&cbw, last_cbw_tag = current_cbw_tag++);
/* Reset URB and assign given values */
init_urb(&urb, driver_state.cur_periph->dev, DDEKIT_USB_TRANSFER_BLK,
- driver_state.cur_periph->ep_in, DDEKIT_USB_IN, 0);
+ driver_state.cur_periph->ep_in, DDEKIT_USB_IN);
/* Attach buffer to URB */
attach_urb_data(&urb, URB_BUF_TYPE_DATA, buf, in_len);
/* Reset URB and assign given values */
init_urb(&urb, driver_state.cur_periph->dev, DDEKIT_USB_TRANSFER_BLK,
- driver_state.cur_periph->ep_out, DDEKIT_USB_OUT, 0);
+ driver_state.cur_periph->ep_out, DDEKIT_USB_OUT);
/* Attach buffer to URB */
attach_urb_data(&urb, URB_BUF_TYPE_DATA, buf, out_len);
/* Reset URB and assign given values */
init_urb(&urb, driver_state.cur_periph->dev, DDEKIT_USB_TRANSFER_BLK,
- driver_state.cur_periph->ep_in, DDEKIT_USB_IN, 0);
+ driver_state.cur_periph->ep_in, DDEKIT_USB_IN);
/* Clear CSW for receiving */
init_csw(&csw);
/* Reset URB and assign given values */
init_urb(&urb, driver_state.cur_periph->dev, DDEKIT_USB_TRANSFER_CTL, 0,
- DDEKIT_USB_OUT, 0);
+ DDEKIT_USB_OUT);
/* Clear setup data */
memset(&bulk_setup, 0, sizeof(bulk_setup));
/* Reset URB and assign given values */
init_urb(&urb, driver_state.cur_periph->dev, DDEKIT_USB_TRANSFER_CTL, 0,
- DDEKIT_USB_IN, 0);
+ DDEKIT_USB_IN);
/* Clear setup data */
memset(&setup_buf, 0, sizeof(setup_buf));