24#ifndef _FXCOMMONBUFFER_H_
25#define _FXCOMMONBUFFER_H_
48 return (LA.QuadPart + AlignTo) & ~((
ULONGLONG)AlignTo);
virtual BOOLEAN Dispose(VOID)
_Must_inspect_result_ NTSTATUS AllocateCommonBuffer(__in size_t Length)
PHYSICAL_ADDRESS m_BufferRawLA
__forceinline VOID SetAlignment(__in ULONG Alignment)
PHYSICAL_ADDRESS m_BufferAlignedLA
__forceinline size_t GetLength(VOID)
VOID FreeCommonBuffer(VOID)
__forceinline PHYSICAL_ADDRESS GetAlignedLogicalAddress(VOID)
__forceinline PVOID GetAlignedVirtualAddress(VOID)
FxDmaEnabler * m_DmaEnabler
union Alignment_ Alignment
FORCEINLINE ULONGLONG FX_ALIGN_LOGICAL_ADDRESS(__in PHYSICAL_ADDRESS LA, __in size_t AlignTo)
FORCEINLINE PVOID FX_ALIGN_VIRTUAL_ADDRESS(__in PVOID VA, __in size_t AlignTo)
FxDmaEnabler * pDmaEnabler
#define _Must_inspect_result_
_In_ ULONG _In_ ULONG _In_ ULONG Length