Changeset 75d8821 in mainline for uspace/lib/usbhost/src/usb_bus.c
- Timestamp:
- 2013-12-31T06:58:19Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1760556
- Parents:
- 643e7ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb_bus.c
r643e7ba r75d8821 169 169 } 170 170 171 /** Calculate bandwidth that needs to be reserved for communication with EP. 172 * Calculation follows USB 2.0 specification. 173 * @param speed Device's speed. 174 * @param type Type of the transfer. 175 * @param size Number of byte to transfer. 176 * @param max_packet_size Maximum bytes in one packet. 177 */ 178 size_t bandwidth_count_usb20(usb_speed_t speed, usb_transfer_type_t type, 179 size_t size, size_t max_packet_size) 180 { 181 /* We care about bandwidth only for interrupt and isochronous. */ 182 if ((type != USB_TRANSFER_INTERRUPT) 183 && (type != USB_TRANSFER_ISOCHRONOUS)) { 184 return 0; 185 } 186 //TODO Implement 187 return 0; 188 } 189 171 190 /** Initialize to default state. 172 191 * You need to provide valid bw_count function if you plan to use
Note:
See TracChangeset
for help on using the changeset viewer.