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

Changeset 2193471 in mainline


Ignore:
Timestamp:
2010-10-12T16:45:02Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
master
Children:
2b887bf7
Parents:
bbf79e0
Message:

Add missing standard USB descriptors

Now, following standard descriptors are ready (in usb/descriptor.h):
device, configuration, interface, endpoint. String descriptors will be
added later.

Location:
uspace
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/virtusbkbd/kbdconfig.h

    rbbf79e0 r2193471  
    3636#define VUK_KBDCONFIG_H_
    3737
    38 #include <usb/device.h>
     38#include <usb/descriptor.h>
    3939#include "report.h"
    4040#include "descriptor.h"
  • uspace/app/virtusbkbd/virtusbkbd.c

    rbbf79e0 r2193471  
    4646
    4747#include <usb/hcd.h>
    48 #include <usb/device.h>
     48#include <usb/descriptor.h>
    4949#include <usb/hid.h>
    5050#include <usbvirt/device.h>
  • uspace/lib/usb/devreq.h

    rbbf79e0 r2193471  
    5555} usb_stddevreq_t;
    5656
    57 /** Descriptor type. */
    58 typedef enum {
    59         USB_DESCTYPE_DEVICE = 1,
    60         USB_DESCTYPE_CONFIGURATION = 2,
    61         USB_DESCTYPE_STRING = 3,
    62         USB_DESCTYPE_INTERFACE = 4,
    63         USB_DESCTYPE_ENDPOINT = 5
    64 } usb_descriptor_type_t;
    65 
    6657/** Device request setup packet.
    6758 * The setup packet describes the request.
  • uspace/lib/usb/hcd.h

    rbbf79e0 r2193471  
    4444/** USB transfer type. */
    4545typedef enum {
    46         USB_TRANSFER_ISOCHRONOUS,
    47         USB_TRANSFER_INTERRUPT,
    48         USB_TRANSFER_CONTROL,
    49         USB_TRANSFER_BULK
     46        USB_TRANSFER_CONTROL = 0,
     47        USB_TRANSFER_ISOCHRONOUS = 1,
     48        USB_TRANSFER_BULK = 2,
     49        USB_TRANSFER_INTERRUPT = 3
    5050} usb_transfer_type_t;
    5151
  • uspace/lib/usbvirt/device.h

    rbbf79e0 r2193471  
    3737
    3838#include <usb/hcd.h>
    39 #include <usb/device.h>
     39#include <usb/descriptor.h>
    4040#include <usb/devreq.h>
    4141
Note: See TracChangeset for help on using the changeset viewer.