Changeset f241b05b in mainline for uspace/drv/uhci-hcd/iface.c
- Timestamp:
- 2011-02-07T22:09:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f82cc1a8
- Parents:
- a72620d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/iface.c
ra72620d rf241b05b 136 136 usbhc_iface_transfer_out_callback_t callback, void *arg) 137 137 { 138 return ENOTSUP; 138 size_t max_packet_size = size; 139 dev_speed_t speed = FULL_SPEED; 140 141 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL, 142 max_packet_size, speed, data, size, NULL, callback, arg); 143 if (!tracker) 144 return ENOMEM; 145 tracker_control_write(tracker, setup_data, setup_size); 146 return EOK; 139 147 } 140 148 /*----------------------------------------------------------------------------*/ … … 143 151 usbhc_iface_transfer_in_callback_t callback, void *arg) 144 152 { 145 return ENOTSUP; 153 size_t max_packet_size = size; 154 dev_speed_t speed = FULL_SPEED; 155 156 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL, 157 max_packet_size, speed, data, size, callback, NULL, arg); 158 if (!tracker) 159 return ENOMEM; 160 tracker_control_read(tracker, setup_data, setup_size); 161 return EOK; 146 162 } 147 163 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.