Ignore:
Timestamp:
2012-12-16T21:42:20Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
21be46a
Parents:
5994cc3
Message:

libusbhost,hcd: Add generic device_add function.

This will be useful later.
Switch rh initialization to use this function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r5994cc3 r9c7ed9c  
    3838
    3939#include <assert.h>
     40#include <adt/list.h>
    4041#include <usbhc_iface.h>
    4142
     
    5657        /** Endpoint manager. */
    5758        usb_endpoint_manager_t ep_manager;
     59        /** Added devices */
     60        list_t devices;
    5861
    5962        /** Device specific driver data. */
     
    8083        usb_device_manager_init(&hcd->dev_manager, max_speed);
    8184        usb_endpoint_manager_init(&hcd->ep_manager, bandwidth, bw_count);
     85        list_initialize(&hcd->devices);
     86
    8287        hcd->private_data = NULL;
    8388        hcd->schedule = NULL;
     
    110115}
    111116
     117
     118int hcd_add_device(hcd_t *instance, ddf_dev_t *parent,
     119    usb_address_t address, usb_speed_t speed, const char *name,
     120    const match_id_list_t *mids);
     121
    112122int hcd_setup_device(ddf_dev_t *device);
    113123int hcd_setup_hub(hcd_t *instance, usb_address_t *address, ddf_dev_t *dev);
Note: See TracChangeset for help on using the changeset viewer.