IN UINT32 StatusRegAddr\r
);\r
\r
-/**\r
- Get Current Frame Number.\r
-\r
- @param UhcDev The UHCI device.\r
- @param FrameNumberAddr The address of frame list register.\r
-\r
- @retval The content of the frame list register.\r
-\r
-**/\r
-UINT16\r
-GetCurrentFrameNumber (\r
- IN USB_UHC_DEV *UhcDev,\r
- IN UINT32 FrameNumberAddr\r
- );\r
-\r
/**\r
Set Frame List Base Address.\r
\r
IN VOID *PtrNext\r
);\r
\r
-/**\r
- Get the horizontal link pointer in QH.\r
-\r
- @param PtrQH Place to store QH_STRUCT pointer.\r
-\r
- @retval The horizontal link pointer in QH.\r
-\r
-**/\r
-VOID *\r
-GetQHHorizontalLinkPtr (\r
- IN QH_STRUCT *PtrQH\r
- );\r
-\r
/**\r
Set a QH or TD horizontally to be connected with a specific QH.\r
\r
IN BOOLEAN IsValid\r
);\r
\r
-/**\r
- Get the vertical validor bit in QH.\r
-\r
- @param PtrQH Place to store QH_STRUCT pointer.\r
-\r
- @retval The vertical linker is valid or not.\r
-\r
-**/\r
-BOOLEAN\r
-GetQHHorizontalValidorInvalid (\r
- IN QH_STRUCT *PtrQH\r
- );\r
\r
/**\r
Allocate TD or QH Struct.\r
IN TD_STRUCT *PtrTDStruct\r
);\r
\r
-/**\r
- Get the information about whether the Link Pointer field pointing to\r
- a QH or a TD.\r
-\r
- @param PtrTDStruct Place to store TD_STRUCT pointer.\r
-\r
- @retval whether the Link Pointer field pointing to a QH or a TD.\r
-\r
-**/\r
-BOOLEAN\r
-IsTDLinkPtrQHOrTD (\r
- IN TD_STRUCT *PtrTDStruct\r
- );\r
\r
/**\r
Enable/Disable short packet detection mechanism.\r
IN MEMORY_MANAGE_HEADER *NewMemoryHeader\r
);\r
\r
-/**\r
- Judge the memory block in the memory header is empty or not.\r
-\r
- @param MemoryHeaderPtr A pointer to the memory header list.\r
-\r
- @retval Whether the memory block in the memory header is empty or not.\r
-\r
-**/\r
-BOOLEAN\r
-IsMemoryBlockEmptied (\r
- IN MEMORY_MANAGE_HEADER *MemoryHeaderPtr\r
- );\r
-\r
-/**\r
- remove a memory header from list.\r
-\r
- @param FirstMemoryHeader A pointer to the memory header list.\r
- @param FreeMemoryHeader A memory header to be removed into the list.\r
-\r
-**/\r
-VOID\r
-DelinkMemoryBlock (\r
- IN MEMORY_MANAGE_HEADER *FirstMemoryHeader,\r
- IN MEMORY_MANAGE_HEADER *FreeMemoryHeader\r
- );\r
\r
/**\r
Map address of request structure buffer.\r
OUT VOID **Mapping\r
);\r
\r
-/**\r
- Frees memory that was allocated with AllocateBuffer().\r
-\r
- @param IoMmu Pointer to IOMMU PPI.\r
- @param Pages The number of pages to free.\r
- @param HostAddress The base system memory address of the allocated range.\r
- @param Mapping The mapping value returned from Map().\r
-\r
-**/\r
-VOID\r
-IoMmuFreeBuffer (\r
- IN EDKII_IOMMU_PPI *IoMmu,\r
- IN UINTN Pages,\r
- IN VOID *HostAddress,\r
- IN VOID *Mapping\r
- );\r
\r
/**\r
Initialize IOMMU.\r