p There are only two expected values: l -tag -width indent t Dv USBD_NORMAL_COMPLETION The operation completed successfully. t Dv USBD_IN_PROGRESS The operation was successfully submitted, usually part of an asynchronous operation. .El
p
These are the error values:
l -tag -width indent t Dv USBD_PENDING_REQUESTS The requested operation could not be completed due to pending
requests, usually from a pipe close operation.
t Dv USBD_NOT_STARTED The initial status of a USB transfer.
See
.Xr usbdi 9
for more details about USB transfers.
t Dv USBD_INVAL Invalid arguments were supplied for the requested operation.
t Dv USBD_NOMEM No memory could be allocated.
t Dv USBD_CANCELLED The USB transfer has been cancelled, and not completed.
t Dv USBD_BAD_ADDRESS The requested USB pipe could not be found.
See
.Xr usbdi 9
for more details about USB pipes.
t Dv USBD_IN_USE The requested operation could not be performed due to the device
having active connections, such as USB audio device currently playing.
t Dv USBD_NO_ADDR USB bus has reached its maximum limit of devices.
t Dv USBD_SET_ADDR_FAILED Call to
.Fn usbd_set_address
failed during new USB device discovery.
t Dv USBD_NO_POWER New device has requested more power than is available.
t Dv USBD_TOO_DEEP XXXMRG why do we do this? it's only 5 right now.
New USB Hub too deep from the root.
t Dv USBD_IOERROR Non-specific error happened during IO.
t Dv USBD_NOT_CONFIGURED USB device is not configured; it has no configuration descriptor.
t Dv USBD_TIMEOUT Operation timed out.
t Dv USBD_SHORT_XFER USB transfer succeeded but not all requested data was returned.
t Dv USBD_STALLED USB controller has stalled (controller specific.)
t Dv USBD_INTERRUPTED Process was interrupted by external means (such as a signal) while
waiting for a transfer to complete.
.El
.Sh SEE ALSO
.Xr usb 4 ,
.Xr usbdi 9
.Sh HISTORY
This
.Nm
interface first appeared in
.Nx 1.4 .