Expand description
USB device access and descriptor manipulation.
Modules§
Structs§
- Standard USB configuration descriptor as defined in USB 2.0 chapter 9, not including the standard header.
- Standard USB descriptor header common to all descriptor types.
- Device represents a USB device.
- Standard USB device descriptor as defined in USB 2.0 chapter 9, not including the standard header.
- DmaBuffer represents a DMA buffer lent by a device
- Standard USB endpoint descriptor as defined in USB 2.0 chapter 9, not including the standard header.
- Standard USB interface descriptor as defined in USB 2.0 chapter 9, not including the standard header.
- Transfer contains the information necessary to submit a USB request and, once it has been submitted and completed, contains the response.
- TransferHandle is a handle that allows cancellation of in-flight transfers between submit_transfer() and get_completed_transfer(). Attempting to cancel a transfer that has already completed is safe and will return an error.
- RequestSetup is first part of control transfer buffer.
Enums§
- Recipient type of control request.
- Request types.
- Standard USB descriptor types.
- USB device speed
- Endpoint Directions.
- Endpoint types.
- Standard request defined in usb spec.
- TransferBuffer is used for data transfer between crosvm and the host kernel
Constants§
- Endpoint direction offset.
Functions§
- Construct a bmRequestType value for a control request.
- Given
data
containing a full set of descriptors as provided by the Linux kernel usbdevfsdescriptors
file, parse the descriptors into a tree data structure.