Make the fields in the text match dev/usb/usb.h too.
This commit is contained in:
parent
09d0a77ccd
commit
61387b470a
@ -145,7 +145,7 @@ is the sole open endpoint.
|
||||
Get the alternative setting number for the interface with the given
|
||||
index.
|
||||
The
|
||||
.Va config_index
|
||||
.Va uai_config_index
|
||||
is ignored in this call.
|
||||
.Bd -literal
|
||||
struct usb_alt_interface {
|
||||
@ -158,14 +158,14 @@ struct usb_alt_interface {
|
||||
Set the alternative setting to the given number in the interface with the
|
||||
given index.
|
||||
The
|
||||
.Va config_index
|
||||
.Va uai_config_index
|
||||
is ignored in this call.
|
||||
.Pp
|
||||
This operation can only be performed when no endpoints for the interface
|
||||
are open.
|
||||
.It Dv USB_GET_NO_ALT Pq Vt "struct usb_alt_interface"
|
||||
Return the number of different alternate settings in the
|
||||
.Va alt_no
|
||||
.Va uai_alt_no
|
||||
field.
|
||||
.It Dv USB_GET_DEVICE_DESC Pq Vt usb_device_descriptor_t
|
||||
Return the device descriptor.
|
||||
@ -215,9 +215,9 @@ struct usb_full_desc {
|
||||
};
|
||||
.Ed
|
||||
The
|
||||
.Va data
|
||||
.Va ufd_data
|
||||
field should point to a memory area of the size given in the
|
||||
.Va size
|
||||
.Va ufd_size
|
||||
field.
|
||||
The proper size can be determined by first issuing a
|
||||
.Dv USB_GET_CONFIG_DESC
|
||||
@ -237,17 +237,17 @@ struct usb_string_desc {
|
||||
.It Dv USB_DO_REQUEST Pq Vt "struct usb_ctl_request"
|
||||
Send a USB request to the device on the control endpoint.
|
||||
Any data sent to/from the device is located at
|
||||
.Va data .
|
||||
.Va ucr_data .
|
||||
The size of the transferred data is determined from the
|
||||
.Va request .
|
||||
.Va ucr_request .
|
||||
The
|
||||
.Va addr
|
||||
.Va ucr_addr
|
||||
field is ignored in this call.
|
||||
The
|
||||
.Va flags
|
||||
.Va ucr_flags
|
||||
field can be used to flag that the request is allowed to
|
||||
be shorter than the requested size, and the
|
||||
.Va actlen
|
||||
.Va ucr_actlen
|
||||
will contain the actual size on completion.
|
||||
.Bd -literal
|
||||
struct usb_ctl_request {
|
||||
|
Loading…
x
Reference in New Issue
Block a user