Changeset 4ab89e5 in mainline for uspace/lib/usb/include
- Timestamp:
- 2011-04-02T14:32:48Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1313b8c
- Parents:
- 857edac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/bandwidth.h
r857edac r4ab89e5 44 44 #include <usb/usb.h> 45 45 46 #define BANDWIDTH_TOTAL_USB11 12000000 47 #define BANDWIDTH_AVAILABLE_USB11 ((BANDWIDTH_TOTAL_USB11 / 10) * 9) 48 46 49 typedef struct bandwidth { 47 50 hash_table_t reserved; 48 51 fibril_mutex_t guard; 49 52 size_t free; 53 size_t (*usage_fnc)(usb_speed_t, usb_transfer_type_t, size_t, size_t); 50 54 } bandwidth_t; 51 55 52 int bandwidth_init(bandwidth_t *instance); 56 size_t bandwidth_count_usb11(usb_speed_t speed, usb_transfer_type_t type, 57 size_t size, size_t max_packet_size); 58 59 int bandwidth_init(bandwidth_t *instance, size_t bandwidth, 60 size_t (*usage_fnc)(usb_speed_t, usb_transfer_type_t, size_t, size_t)); 53 61 54 62 void bandwidth_destroy(bandwidth_t *instance);
Note:
See TracChangeset
for help on using the changeset viewer.