21 return (PHYSICAL_ADDRESS)(
UINTN)Address +
PcdGet64 (PcdDmaDeviceOffset);
50 OUT PHYSICAL_ADDRESS *DeviceAddress,
54 if ((HostAddress ==
NULL) ||
55 (NumberOfBytes ==
NULL) ||
56 (DeviceAddress ==
NULL) ||
59 return EFI_INVALID_PARAMETER;
62 *DeviceAddress = HostToDeviceAddress (HostAddress);
108 OUT VOID **HostAddress
139 OUT VOID **HostAddress
142 if (Alignment == 0) {
143 Alignment = EFI_PAGE_SIZE;
146 if ((HostAddress ==
NULL) ||
147 ((Alignment & (Alignment - 1)) != 0))
149 return EFI_INVALID_PARAMETER;
160 return EFI_INVALID_PARAMETER;
163 if (*HostAddress ==
NULL) {
164 return EFI_OUT_OF_RESOURCES;
188 if (HostAddress ==
NULL) {
189 return EFI_INVALID_PARAMETER;
EFI_STATUS EFIAPI DmaAllocateAlignedBuffer(IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment, OUT VOID **HostAddress)
EFI_STATUS EFIAPI DmaUnmap(IN VOID *Mapping)
EFI_STATUS EFIAPI DmaMap(IN DMA_MAP_OPERATION Operation, IN VOID *HostAddress, IN OUT UINTN *NumberOfBytes, OUT PHYSICAL_ADDRESS *DeviceAddress, OUT VOID **Mapping)
EFI_STATUS EFIAPI DmaAllocateBuffer(IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT VOID **HostAddress)
EFI_STATUS EFIAPI DmaFreeBuffer(IN UINTN Pages, IN VOID *HostAddress)
VOID EFIAPI FreePages(IN VOID *Buffer, IN UINTN Pages)
VOID *EFIAPI AllocateAlignedRuntimePages(IN UINTN Pages, IN UINTN Alignment)
#define PcdGet64(TokenName)
VOID *EFIAPI AllocateAlignedPages(IN UINTN Pages, IN UINTN Alignment)