Changeset 4cf5b8e0 in mainline for uspace/lib/usbhost/src/hcd.c


Ignore:
Timestamp:
2013-09-21T01:10:47Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce33c10
Parents:
9348862
Message:

libusbhost: Rename usb_endpoint_manager → usb_bus

It's shorter and more accurate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/hcd.c

    r9348862 r4cf5b8e0  
    9595{
    9696        assert(hcd);
    97         usb_endpoint_manager_init(&hcd->ep_manager, bandwidth, bw_count, max_speed);
     97        usb_bus_init(&hcd->bus, bandwidth, bw_count, max_speed);
    9898
    9999        hcd->driver.data = NULL;
     
    107107        assert(hcd);
    108108        usb_address_t address = 0;
    109         const int ret = usb_endpoint_manager_request_address(
    110             &hcd->ep_manager, &address, false, speed);
     109        const int ret = usb_bus_request_address(
     110            &hcd->bus, &address, false, speed);
    111111        if (ret != EOK)
    112112                return ret;
     
    117117{
    118118        assert(hcd);
    119         return usb_endpoint_manager_remove_address(&hcd->ep_manager, address,
     119        return usb_bus_remove_address(&hcd->bus, address,
    120120            unregister_helper_warn, hcd);
    121121}
     
    125125        assert(hcd);
    126126        usb_address_t address = 0;
    127         return usb_endpoint_manager_request_address(
    128             &hcd->ep_manager, &address, true, speed);
     127        return usb_bus_request_address(
     128            &hcd->bus, &address, true, speed);
    129129}
    130130
     
    134134{
    135135        assert(hcd);
    136         return usb_endpoint_manager_add_ep(&hcd->ep_manager, target.address,
     136        return usb_bus_add_ep(&hcd->bus, target.address,
    137137            target.endpoint, dir, type, max_packet_size, size, register_helper,
    138138            hcd, tt_address, tt_port);
     
    142142{
    143143        assert(hcd);
    144         return usb_endpoint_manager_remove_ep(&hcd->ep_manager, target.address,
     144        return usb_bus_remove_ep(&hcd->bus, target.address,
    145145            target.endpoint, dir, unregister_helper, hcd);
    146146}
     
    161161                usb_log_debug2("Reseting toggle on %d:%d.\n",
    162162                    toggle->target.address, toggle->target.endpoint);
    163                 usb_endpoint_manager_reset_toggle(&toggle->hcd->ep_manager,
     163                usb_bus_reset_toggle(&toggle->hcd->bus,
    164164                    toggle->target, toggle->target.endpoint == 0);
    165165        }
     
    187187        assert(hcd);
    188188
    189         endpoint_t *ep = usb_endpoint_manager_find_ep(&hcd->ep_manager,
     189        endpoint_t *ep = usb_bus_find_ep(&hcd->bus,
    190190            target.address, target.endpoint, direction);
    191191        if (ep == NULL) {
Note: See TracChangeset for help on using the changeset viewer.