TianoCore EDK2 master
Loading...
Searching...
No Matches
DmaLib.h
Go to the documentation of this file.
1
34#ifndef __DMA_LIB_H__
35#define __DMA_LIB_H__
36
37typedef enum {
51 MapOperationMaximum
53
75EFIAPI
76DmaMap (
77 IN DMA_MAP_OPERATION Operation,
78 IN VOID *HostAddress,
79 IN OUT UINTN *NumberOfBytes,
80 OUT PHYSICAL_ADDRESS *DeviceAddress,
81 OUT VOID **Mapping
82 );
83
95EFIAPI
97 IN VOID *Mapping
98 );
99
118EFIAPI
120 IN EFI_MEMORY_TYPE MemoryType,
121 IN UINTN Pages,
122 OUT VOID **HostAddress
123 );
124
137EFIAPI
139 IN UINTN Pages,
140 IN VOID *HostAddress
141 );
142
163EFIAPI
165 IN EFI_MEMORY_TYPE MemoryType,
166 IN UINTN Pages,
167 IN UINTN Alignment,
168 OUT VOID **HostAddress
169 );
170
171#endif
UINT64 UINTN
EFI_STATUS EFIAPI DmaAllocateAlignedBuffer(IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment, OUT VOID **HostAddress)
DMA_MAP_OPERATION
Definition: DmaLib.h:37
@ MapOperationBusMasterWrite
Definition: DmaLib.h:45
@ MapOperationBusMasterRead
Definition: DmaLib.h:41
@ MapOperationBusMasterCommonBuffer
Definition: DmaLib.h:50
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)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_MEMORY_TYPE