|USB_EP_XDESCR_FILL(9F)||Kernel Functions for Drivers||USB_EP_XDESCR_FILL(9F)|
version, dev_info_t *dip,
usb_ep_xdescr_fill() function is used to fill in the members of the extended endpoint descriptor ep_xdescr based on the endpoint descriptor data in ep_data. Once filled in, ep_xdescr can be used to open a pipe by calling usb_pipe_xopen(9F).
Prior to USB 3.0, only one descriptor, the usb_ep_descr(9S), was needed to describe an endpoint. However, with USB 3.0, additional companion descriptors have been added and are required to successfully open an endpoint. After calling this, all descriptors needed to successfully open a pipe will be placed into ep_xdescr and the endpoint data, ep_data, is no longer required.
usb_ep_xdescr_fill() is generally only called from a drivers attach(9E) entry point; however, it may be called from either user or kernel context.
usb_ep_xdescr_fill() function returns USB_SUCCESS. Otherwise an error number is returned.
|August 7, 2016||OmniOS|