usbdReqHCrestart

Purpose

Requests HC brings up and device enumeration.

Syntax

#include <hcdi.h>
USBstatus usbdReqHCrestart(pHCDI)
PHCDI pHCDI; 

Parameter

Item Description
pHCDI Pointer to the HCDI structure.

Description

This function is a USBD supplied function called by the HCD when the HC is successfully reset and reinitialize.

This call is started when an error is detected with the adapter and the recovery of adapter driver from this error requires restarting the adapter. Upon invocation, the function queues in a restart host controller command to the config proc of USBD. When the config proc is scheduled by the operating system, the USB system driver walks through the device tree and for each device present in the device tree, ends all the outstanding I/O, disconnects all the pipes, and unmaps the mapped buffers that are associated with the client. It then attaches the root hub to the host controller tree and kicks off the device enumeration and configuration process again

Execution Environment

This function can be called from the interrupt (HCD_OFFLEVEL priority or lower) or process environment.

Return Values

Value Description
USBD_SUCCESS Success
All others Failure