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

Ignore:
Timestamp:
2017-11-02T14:29:15Z (5 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial
Children:
887c9de
Parents:
479e32d
Message:

ddf: split usb interface to usb and usbhc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    r479e32d r41df71f9  
    5353#include <str_error.h>
    5454#include <usb_iface.h>
     55#include <usbhc_iface.h>
    5556
    5657#include "ddf_helpers.h"
     
    218219static int dev_read(ddf_fun_t *fun, usb_target_t target,
    219220    uint64_t setup_data, char *data, size_t size,
    220     usb_iface_transfer_callback_t callback, void *arg)
     221    usbhc_iface_transfer_callback_t callback, void *arg)
    221222{
    222223        assert(fun);
     
    244245static int dev_write(ddf_fun_t *fun, usb_target_t target,
    245246    uint64_t setup_data, const char *data, size_t size,
    246     usb_iface_transfer_callback_t callback, void *arg)
     247    usbhc_iface_transfer_callback_t callback, void *arg)
    247248{
    248249        assert(fun);
     
    261262static usb_iface_t usb_iface = {
    262263        .get_my_device_handle = get_my_device_handle,
    263 
     264};
     265
     266/** USB host controller interface */
     267static usbhc_iface_t usbhc_iface = {
    264268        .reserve_default_address = reserve_default_address,
    265269        .release_default_address = release_default_address,
     
    278282static ddf_dev_ops_t usb_ops = {
    279283        .interfaces[USB_DEV_IFACE] = &usb_iface,
     284        .interfaces[USBHC_DEV_IFACE] = &usbhc_iface,
    280285};
    281286
Note: See TracChangeset for help on using the changeset viewer.