// ucxusbdevice.h
EVT_UCX_USBDEVICE_UPDATE EvtUcxUsbdeviceUpdate;
VOID EvtUcxUsbdeviceUpdate(
[in] UCXCONTROLLER UcxController,
[in] WDFREQUEST Request
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The client driver's implementation that UCX calls to update device properties.
UcxController [in]A handle to the UCX controller that the client driver received in a previous call to the UcxControllerCreate method.
Request [in]Contains the USBDEVICE_UPDATE structure.
The UCX client driver registers this callback function with the USB host controller extension (UCX) by calling the UcxUsbDeviceCreate method.
The host controller driver communicates with the hardware to update descriptors, LPM parameters, whether device is a hub, and maximum exit latency, as needed.
The client driver returns completion status in Request. The driver can complete the WDFREQUEST asynchronously.
VOID
UsbDevice_EvtUcxUsbDeviceUpdate(
UCXCONTROLLER UcxController,
WDFREQUEST Request
)
{
UNREFERENCED_PARAMETER(UcxController);
DbgTrace(TL_INFO, UsbDevice, "UsbDevice_EvtUcxUsbDeviceUpdate");
WDF_REQUEST_PARAMETERS_INIT(&wdfRequestParams);
WdfRequestGetParameters(WdfRequest, &wdfRequestParams);
usbDeviceUpdate = (PUSBDEVICE_UPDATE)wdfRequestParams.Parameters.Others.Arg1;
...
WdfRequestComplete(Request, STATUS_SUCCESS);
}
UCX_USBDEVICE_EVENT_CALLBACKS_INIT
UcxUsbDeviceInitSetEventCallbacks