![]() |
usbpsu
Xilinx SDK Drivers API Documentation
|
This patch adds hibernation support to usbpsu driver when dwc3 is operating as a gadget.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 Mayank 12/01/18 First release
Functions | |
| s32 | XUsbPsu_SendGadgetGenericCmd (struct XUsbPsu *InstancePtr, u32 cmd, u32 param) |
| Send generic command for gadget. More... | |
| s32 | XUsbPsu_SetupScratchpad (struct XUsbPsu *InstancePtr) |
| Sets scratchpad buffers. More... | |
| void | XUsbPsu_InitHibernation (struct XUsbPsu *InstancePtr) |
| Initialize to handle hibernation event when it comes. More... | |
| void | Xusbpsu_HibernationIntr (struct XUsbPsu *InstancePtr) |
| Handle hibernation event. More... | |
| void | XUsbPsu_WakeupIntr (struct XUsbPsu *InstancePtr) |
| Handle wakeup event. More... | |
| void Xusbpsu_HibernationIntr | ( | struct XUsbPsu * | InstancePtr | ) |
Handle hibernation event.
| InstancePtr | is a pointer to the XUsbPsu instance to be worked on. |
References XUsbPsu_GetLinkState().
| void XUsbPsu_InitHibernation | ( | struct XUsbPsu * | InstancePtr | ) |
Initialize to handle hibernation event when it comes.
| InstancePtr | is a pointer to the XUsbPsu instance to be worked on. |
References XUsbPsu::IsHibernated.
| s32 XUsbPsu_SendGadgetGenericCmd | ( | struct XUsbPsu * | InstancePtr, |
| u32 | cmd, | ||
| u32 | param | ||
| ) |
Send generic command for gadget.
| InstancePtr | is a pointer to the XUsbPsu instance to be worked on. |
| cmd | is command to be sent |
| param | is parameter for the command, to be written in DGCMDPAR register |
References XUsbPsu_WriteReg.
Referenced by XUsbPsu_SetupScratchpad().
| s32 XUsbPsu_SetupScratchpad | ( | struct XUsbPsu * | InstancePtr | ) |
Sets scratchpad buffers.
| InstancePtr | is a pointer to the XUsbPsu instance to be worked on. |
References XUsbPsu_SendGadgetGenericCmd().
| void XUsbPsu_WakeupIntr | ( | struct XUsbPsu * | InstancePtr | ) |
Handle wakeup event.
| InstancePtr | is a pointer to the XUsbPsu instance to be worked on. |
References XUsbPsu_ReadLpdReg.