Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/root_hub.c

    r0f21c0c r0063838  
    3434#include <errno.h>
    3535#include <stdint.h>
    36 
     36#include <ddi.h>
     37#include <devman.h>
    3738#include <usb/debug.h>
    3839
    3940#include "root_hub.h"
    4041
    41 
    4242int uhci_root_hub_init(
    43   uhci_root_hub_t *instance, void *addr, size_t size, device_t *rh)
     43  uhci_root_hub_t *instance, void *addr, size_t size, ddf_dev_t *rh)
    4444{
    4545        assert(instance);
     
    6666        unsigned i = 0;
    6767        for (; i < UHCI_ROOT_HUB_PORT_COUNT; ++i) {
    68                 /* connect to the parent device (HC) */
    69                 int parent_phone = devman_device_connect(instance->hc_handle, 0);
    70                 //usb_drv_hc_connect(rh, instance->hc_handle, 0);
    71                 if (parent_phone < 0) {
    72                         usb_log_error("Failed to connect to the HC device port %d.\n", i);
    73                         return parent_phone;
    74                 }
    7568                /* mind pointer arithmetics */
    7669                int ret = uhci_port_init(
    77                   &instance->ports[i], regs + i, i, ROOT_HUB_WAIT_USEC, rh, parent_phone);
     70                  &instance->ports[i], regs + i, i, ROOT_HUB_WAIT_USEC, rh);
    7871                if (ret != EOK) {
    7972                        unsigned j = 0;
Note: See TracChangeset for help on using the changeset viewer.