Changeset b357377 in mainline for uspace/drv
- Timestamp:
- 2018-01-25T02:05:57Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d369b3b
- Parents:
- 5f0b366
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-25 01:23:20)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
- Location:
- uspace/drv/bus/usb
- Files:
-
- 4 edited
-
ehci/ehci_bus.c (modified) (2 diffs)
-
ohci/ohci_bus.c (modified) (2 diffs)
-
uhci/hc.c (modified) (2 diffs)
-
vhc/transfer.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_bus.c
r5f0b366 rb357377 163 163 .endpoint_register = ehci_register_ep, 164 164 .endpoint_unregister = ehci_unregister_ep, 165 .endpoint_count_bw = bandwidth_count_usb20,166 165 167 166 .batch_create = ehci_create_batch, … … 178 177 bus_t *bus_base = (bus_t *) bus; 179 178 180 usb2_bus_init(usb2_bus, BANDWIDTH_AVAILABLE_USB20);179 usb2_bus_init(usb2_bus, &bandwidth_accounting_usb2); 181 180 bus_base->ops = &ehci_bus_ops; 182 181 -
uspace/drv/bus/usb/ohci/ohci_bus.c
r5f0b366 rb357377 171 171 .endpoint_register = ohci_register_ep, 172 172 .endpoint_unregister = ohci_unregister_ep, 173 .endpoint_count_bw = bandwidth_count_usb11,174 173 175 174 .batch_create = ohci_create_batch, … … 187 186 bus_t *bus_base = (bus_t *) bus; 188 187 189 usb2_bus_init(usb2_bus, BANDWIDTH_AVAILABLE_USB11);188 usb2_bus_init(usb2_bus, &bandwidth_accounting_usb11); 190 189 bus_base->ops = &ohci_bus_ops; 191 190 -
uspace/drv/bus/usb/uhci/hc.c
r5f0b366 rb357377 418 418 .endpoint_register = endpoint_register, 419 419 .endpoint_unregister = endpoint_unregister, 420 .endpoint_count_bw = bandwidth_count_usb11,421 420 422 421 .batch_create = create_transfer_batch, … … 439 438 assert(instance); 440 439 441 usb2_bus_init(&instance->bus, BANDWIDTH_AVAILABLE_USB11);440 usb2_bus_init(&instance->bus, &bandwidth_accounting_usb11); 442 441 443 442 bus_t *bus = (bus_t *) &instance->bus; -
uspace/drv/bus/usb/vhc/transfer.c
r5f0b366 rb357377 166 166 .parent = &usb2_bus_ops, 167 167 168 .endpoint_count_bw = bandwidth_count_usb11,169 168 .batch_create = batch_create, 170 169 .batch_schedule = vhc_schedule, … … 176 175 list_initialize(&instance->devices); 177 176 fibril_mutex_initialize(&instance->guard); 178 usb2_bus_init(&instance->bus, BANDWIDTH_AVAILABLE_USB11);177 usb2_bus_init(&instance->bus, &bandwidth_accounting_usb11); 179 178 instance->bus.base.ops = &vhc_bus_ops; 180 179 return virthub_init(&instance->hub, "root hub");
Note:
See TracChangeset
for help on using the changeset viewer.
