10#ifndef _EFI_EHCI_MEM_H_
11#define _EFI_EHCI_MEM_H_
13#define USB_HC_BIT(a) ((UINTN)(1 << (a)))
15#define USB_HC_BIT_IS_SET(Data, Bit) \
16 ((BOOLEAN)(((Data) & USB_HC_BIT(Bit)) == USB_HC_BIT(Bit)))
18#define USB_HC_HIGH_32BIT(Addr64) \
19 ((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF))
47#define USBHC_MEM_UNIT 64
49#define USBHC_MEM_UNIT_MASK (USBHC_MEM_UNIT - 1)
50#define USBHC_MEM_DEFAULT_PAGES 16
52#define USBHC_MEM_ROUND(Len) (((Len) + USBHC_MEM_UNIT_MASK) & (~USBHC_MEM_UNIT_MASK))
57#define NEXT_BIT(Byte, Bit) \
EFI_PHYSICAL_ADDRESS UsbHcGetPciAddressForHostMem(IN USBHC_MEM_POOL *Pool, IN VOID *Mem, IN UINTN Size)
EFI_STATUS UsbHcFreeMemPool(IN USBHC_MEM_POOL *Pool)
VOID UsbHcFreeMem(IN USBHC_MEM_POOL *Pool, IN VOID *Mem, IN UINTN Size)
VOID * UsbHcAllocateMem(IN USBHC_MEM_POOL *Pool, IN UINTN Size)
USBHC_MEM_POOL * UsbHcInitMemPool(IN EFI_PCI_IO_PROTOCOL *PciIo, IN BOOLEAN Check4G, IN UINT32 Which4G)
UINT64 EFI_PHYSICAL_ADDRESS