Changes in uspace/drv/vhc/hcd.c [ad104e0:f0da4eb2] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hcd.c

    rad104e0 rf0da4eb2  
    5252#include "conn.h"
    5353
    54 static device_ops_t vhc_ops = {
    55         .interfaces[USBHC_DEV_IFACE] = &vhc_iface,
    56         .default_handler = default_connection_handler
    57 };
    5854
    5955static int vhc_count = 0;
    60 static int vhc_add_device(device_t *dev)
     56static int vhc_add_device(usb_hc_device_t *dev)
    6157{
    6258        /*
     
    6965        vhc_count++;
    7066
    71         dev->ops = &vhc_ops;
    72 
    73         /*
    74          * Initialize address management.
    75          */
    76         address_init();
     67        dev->transfer_ops = &vhc_transfer_ops;
     68        dev->generic->ops->default_handler = default_connection_handler;
    7769
    7870        /*
     
    8779}
    8880
    89 static driver_ops_t vhc_driver_ops = {
    90         .add_device = vhc_add_device,
    91 };
    92 
    93 static driver_t vhc_driver = {
     81static usb_hc_driver_t vhc_driver = {
    9482        .name = NAME,
    95         .driver_ops = &vhc_driver_ops
     83        .add_hc = &vhc_add_device
    9684};
    9785
     
    126114        sleep(4);
    127115
    128         return driver_main(&vhc_driver);
     116        return usb_hcd_main(&vhc_driver);
    129117}
    130118
Note: See TracChangeset for help on using the changeset viewer.