Changeset 4971812 in mainline for uspace/lib/usbvirt/device.h


Ignore:
Timestamp:
2010-10-10T21:20:02Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e41957
Parents:
6c1315b
Message:

Standard requests in virtual USB device

The virtual USB device framework can handle some standard requests
alone. Again, this is more about bones than about meat. Meat will
come later.

Update `vuk' app to provide standard device descriptor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/device.h

    r6c1315b r4971812  
    3737
    3838#include <usb/hcd.h>
     39#include <usb/device.h>
    3940#include <usb/devreq.h>
    4041
     
    4344typedef int (*usbvirt_on_devreq_t)(struct usbvirt_device *dev,
    4445    usb_direction_t, int recipient,
    45     usb_stddevreq_t, int value, int index, int length);
     46    uint8_t request, uint16_t value, uint16_t index, uint16_t length,
     47    uint8_t *remaining_data);
    4648
    4749typedef struct {
     
    6466            usb_endpoint_t endpoint, void *buffer, size_t size);
    6567       
     68       
     69       
     70        /* Device attributes. */
     71       
     72        /** Standard device descriptor.
     73         * If this descriptor is set (i.e. not NULL), the framework
     74         * automatically handles call for its retrieval.
     75         */
     76        usb_standard_device_descriptor_t *standard_descriptor;
     77       
     78       
     79        /* Private attributes. */
     80       
    6681        /** Phone to HC.
    6782         * @warning Do not change, this is private variable.
Note: See TracChangeset for help on using the changeset viewer.