Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_endpoint.c

    r9d58539 r0d4b110  
    3232 * @brief OHCI driver
    3333 */
     34
     35#include <assert.h>
     36#include <stdlib.h>
     37
    3438#include "utils/malloc32.h"
    3539#include "ohci_endpoint.h"
     
    4852        ed_toggle_set(instance->ed, toggle);
    4953}
    50 /*----------------------------------------------------------------------------*/
     54
    5155/** Callback to get value of toggle bit.
    5256 *
     
    6165        return ed_toggle_get(instance->ed);
    6266}
    63 /*----------------------------------------------------------------------------*/
     67
    6468/** Creates new hcd endpoint representation.
    6569 *
     
    9094        endpoint_set_hc_data(
    9195            ep, ohci_ep, ohci_ep_toggle_get, ohci_ep_toggle_set);
    92         hc_enqueue_endpoint(hcd->private_data, ep);
     96        hc_enqueue_endpoint(hcd->driver.data, ep);
    9397        return EOK;
    9498}
    95 /*----------------------------------------------------------------------------*/
     99
    96100/** Disposes hcd endpoint structure
    97101 *
     
    104108        assert(ep);
    105109        ohci_endpoint_t *instance = ohci_endpoint_get(ep);
    106         hc_dequeue_endpoint(hcd->private_data, ep);
     110        hc_dequeue_endpoint(hcd->driver.data, ep);
    107111        if (instance) {
    108112                free32(instance->ed);
Note: See TracChangeset for help on using the changeset viewer.