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

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


Ignore:
Timestamp:
2010-10-10T21:20:02Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial
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/private.h

    r6c1315b r4971812  
    4141extern usbvirt_device_t *device;
    4242
     43#define DEVICE_HAS_OP(dev, op) \
     44        ( \
     45                (  ((dev)->ops) != NULL  ) \
     46                && \
     47                (  ((dev)->ops->op) != NULL  ) \
     48        )
    4349
    4450int usbvirt_data_to_host(struct usbvirt_device *dev,
     
    4955int control_pipe(void *buffer, size_t size);
    5056
     57int handle_std_request(usb_direction_t direction, int recipient,
     58    uint16_t request, uint16_t value, uint16_t index, uint16_t length,
     59    uint8_t *remaining_data);
     60
    5161#endif
    5262/**
Note: See TracChangeset for help on using the changeset viewer.