Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 56fd7cf in mainline for uspace/drv/bus/usb/vhc/hub.c


Ignore:
Timestamp:
2012-08-17T11:37:03Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
1d5a540
Parents:
be2a38ad
Message:

Make ddf_dev_t and ddf_fun_t opaque. This further tighthens the DDF interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/hub.c

    rbe2a38ad r56fd7cf  
    100100        async_sess_t *sess;
    101101        do {
    102                 sess = devman_device_connect(EXCHANGE_SERIALIZE, hc_dev->handle, 0);
     102                sess = devman_device_connect(EXCHANGE_SERIALIZE,
     103                    ddf_fun_get_handle(hc_dev), 0);
    103104        } while (!sess);
    104105        async_hangup(sess);
     
    107108
    108109        usb_hc_connection_t hc_conn;
    109         usb_hc_connection_initialize(&hc_conn, hc_dev->handle);
     110        usb_hc_connection_initialize(&hc_conn, ddf_fun_get_handle(hc_dev));
    110111
    111112        rc = usb_hc_connection_open(&hc_conn);
     
    113114
    114115        ddf_fun_t *hub_dev;
    115         rc = usb_hc_new_device_wrapper(hc_dev->dev, &hc_conn, USB_SPEED_FULL,
     116        rc = usb_hc_new_device_wrapper(ddf_fun_get_dev(hc_dev), &hc_conn, USB_SPEED_FULL,
    116117            pretend_port_rest, NULL, NULL, &rh_ops, hc_dev, &hub_dev);
    117118        if (rc != EOK) {
     
    123124
    124125        usb_log_info("Created root hub function (handle %zu).\n",
    125             (size_t) hub_dev->handle);
     126            (size_t) ddf_fun_get_handle(hub_dev));
    126127
    127128        return 0;
Note: See TracChangeset for help on using the changeset viewer.