Changeset 93fb170c in mainline for uspace/drv/uhci/main.c


Ignore:
Timestamp:
2011-01-08T18:51:31Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
15be932
Parents:
8f748215 (diff), a523af4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from main branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/main.c

    r8f748215 r93fb170c  
    2727 */
    2828#include <usb/hcdhubd.h>
     29#include <usb_iface.h>
    2930#include <errno.h>
    3031
     
    3435#include "uhci.h"
    3536
     37static int usb_iface_get_hc_handle(device_t *dev, devman_handle_t *handle)
     38{
     39        /* This shall be called only for the UHCI itself. */
     40        assert(dev->parent == NULL);
     41
     42        *handle = dev->handle;
     43        return EOK;
     44}
     45
     46static usb_iface_t hc_usb_iface = {
     47        .get_hc_handle = usb_iface_get_hc_handle
     48};
    3649
    3750static device_ops_t uhci_ops = {
    38         .interfaces[USBHC_DEV_IFACE] = &uhci_iface,
     51        .interfaces[USB_DEV_IFACE] = &hc_usb_iface,
     52        .interfaces[USBHC_DEV_IFACE] = &uhci_iface
    3953};
    4054
Note: See TracChangeset for help on using the changeset viewer.