Changeset 6bec59b in mainline for uspace/drv/ohci/hc.c


Ignore:
Timestamp:
2011-04-08T13:58:45Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f98b8269
Parents:
6acc80f3
Message:

Port endpoint framework usage from UHCI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    r6acc80f3 r6bec59b  
    5959            &instance->manager, hub_address, hub_fun->handle);
    6060
     61        endpoint_t *ep = malloc(sizeof(endpoint_t));
     62        assert(ep);
     63        int ret = endpoint_init(ep, hub_address, 0, USB_DIRECTION_BOTH,
     64            USB_TRANSFER_CONTROL, USB_SPEED_FULL, 64);
     65        assert(ret == EOK);
     66        ret = usb_endpoint_manager_register_ep(&instance->ep_manager, ep, 0);
     67        assert(ret == EOK);
     68
    6169        char *match_str = NULL;
    62         int ret = asprintf(&match_str, "usb&class=hub");
    63         ret = (match_str == NULL) ? ret : EOK;
     70        ret = asprintf(&match_str, "usb&class=hub");
     71//      ret = (match_str == NULL) ? ret : EOK;
    6472        if (ret < 0) {
    65                 usb_log_error("Failed to create root hub match-id string.\n");
     73                usb_log_error(
     74                    "Failed(%d) to create root hub match-id string.\n", ret);
    6675                return ret;
    6776        }
Note: See TracChangeset for help on using the changeset viewer.