// ucxendpoint.h
EVT_UCX_DEFAULT_ENDPOINT_UPDATE EvtUcxDefaultEndpointUpdate;
VOID EvtUcxDefaultEndpointUpdate(
[in] UCXCONTROLLER UcxController,
[in] WDFREQUEST Request
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The client driver's implementation that UCX calls with information about the default endpoint.
UcxController [in]A handle to the UCX controller that the client driver received in a previous call to the UcxControllerCreate method.
Request [in]A DEFAULT_ENDPOINT_UPDATE structure that contains the handle to the default endpoint to be updated.
The UCX client driver registers its EVT_UCX_DEFAULT_ENDPOINT_UPDATE implementation with the USB host controller extension (UCX) by calling the UcxEndpointCreate method.
UCX typically calls this routine to update the default endpoint's maximum packet size. The client driver returns completion status in the WDFREQUEST, which it can complete asynchronously.
VOID
Endpoint_EvtUcxDefaultEndpointUpdate(
UCXCONTROLLER UcxController,
WDFREQUEST Request
)
{
UNREFERENCED_PARAMETER(UcxController);
DbgTrace(TL_INFO, Endpoint, "Endpoint_EvtUcxDefaultEndpointUpdate");
WDF_REQUEST_PARAMETERS_INIT(&wdfRequestParams);
WdfRequestGetParameters(WdfRequest, &wdfRequestParams);
defaultEndpointUpdate = (PDEFAULT_ENDPOINT_UPDATE)wdfRequestParams.Parameters.Others.Arg1;
...
WdfRequestComplete(Request, STATUS_SUCCESS);
}
UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS_INIT
UcxDefaultEndpointInitSetEventCallbacks