Changeset 87619045 in mainline


Ignore:
Timestamp:
2013-01-27T11:35:32Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7363fc1
Parents:
71384bd3
Message:

usb: Move usb_device to a separate header

Location:
uspace
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.h

    r71384bd3 r87619045  
    3838#include <usb/dev/driver.h>
    3939#include <usb/classes/hub.h>
     40#include <usb_iface.h>
    4041
    4142typedef struct usb_hub_dev usb_hub_dev_t;
  • uspace/lib/usbdev/include/usb/dev/driver.h

    r71384bd3 r87619045  
    3737#define LIBUSBDEV_DRIVER_H_
    3838
    39 #include <usb/hc.h>
    40 #include <usb/dev/alternate_ifaces.h>
    41 #include <usb/dev/usb_device_connection.h>
     39#include <usb/dev/device.h>
    4240#include <usb/dev/pipes.h>
    43 #include <usb_iface.h>
    44 
    45 typedef struct usb_device usb_device_t;
    4641
    4742/** USB driver ops. */
     
    9893int usb_driver_main(const usb_driver_t *);
    9994
    100 int usb_device_create_ddf(ddf_dev_t *, const usb_endpoint_description_t **, const char **);
    101 void usb_device_destroy_ddf(ddf_dev_t *);
    102 
    103 const char* usb_device_get_name(usb_device_t *);
    104 ddf_fun_t *usb_device_ddf_fun_create(usb_device_t *, fun_type_t, const char *);
    105 
    106 async_exch_t * usb_device_bus_exchange_begin(usb_device_t *);
    107 void usb_device_bus_exchange_end(async_exch_t *);
    108 
    109 int usb_device_select_interface(usb_device_t *, uint8_t,
    110     const usb_endpoint_description_t **);
    111 
    112 int usb_device_create_pipes(usb_device_t *usb_dev,
    113     const usb_endpoint_description_t **endpoints);
    114 void usb_device_destroy_pipes(usb_device_t *);
    115 
    116 usb_pipe_t *usb_device_get_default_pipe(usb_device_t *);
    117 usb_endpoint_mapping_t * usb_device_get_mapped_ep_desc(usb_device_t *,
    118     const usb_endpoint_description_t *);
    119 usb_endpoint_mapping_t * usb_device_get_mapped_ep(usb_device_t *,
    120     usb_endpoint_t);
    121 
    122 int usb_device_get_iface_number(usb_device_t *);
    123 
    124 const usb_standard_device_descriptor_t *
    125 usb_device_get_device_descriptor(usb_device_t *);
    126 const void * usb_device_get_configuration_descriptor(usb_device_t *, size_t *);
    127 const usb_alternate_interfaces_t * usb_device_get_alternative_ifaces(
    128     usb_device_t *);
    129 
    130 void * usb_device_data_alloc(usb_device_t *, size_t);
    131 void * usb_device_data_get(usb_device_t *);
    132 
    13395#endif
    13496/**
  • uspace/lib/usbdev/src/devdrv.c

    r71384bd3 r87619045  
    3333 * USB device driver framework.
    3434 */
    35 #include <usb/dev/driver.h>
     35
     36#include <usb_iface.h>
     37#include <usb/dev/device.h>
    3638#include <usb/dev/request.h>
    3739#include <usb/debug.h>
Note: See TracChangeset for help on using the changeset viewer.