\r
#define USBHC_MEM_ROUND(Len) (((Len) + USBHC_MEM_UNIT_MASK) & (~USBHC_MEM_UNIT_MASK))\r
\r
+#define USBHC_MEM_TRB_RINGS_BOUNDARY SIZE_64KB\r
+\r
//\r
// Advance the byte and bit to the next bit, adjust byte accordingly.\r
//\r
Allocate some memory from the host controller's memory pool\r
which can be used to communicate with host controller.\r
\r
- @param Pool The host controller's memory pool.\r
- @param Size Size of the memory to allocate.\r
+ @param Pool The host controller's memory pool.\r
+ @param Size Size of the memory to allocate.\r
+ @param AllocationForRing The allocated memory is for Ring or not.\r
\r
@return The allocated memory or NULL.\r
\r
VOID *\r
UsbHcAllocateMem (\r
IN USBHC_MEM_POOL *Pool,\r
- IN UINTN Size\r
+ IN UINTN Size,\r
+ IN BOOLEAN AllocationForRing\r
);\r
\r
/**\r