diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-25 20:05:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-25 20:05:19 +0100 |
| commit | 613293dd42238fdf241d807dd328e1a2621ff048 (patch) | |
| tree | e60ae44847a58d0a8b9a98a09a1c5955ea7655f0 /src/kernel/DmaKit | |
| parent | dbcc2fdb13815a71d2c4b99bb44e8fa437fb4094 (diff) | |
feat: kernel: Documentation improvements and specs addition.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/DmaKit')
| -rw-r--r-- | src/kernel/DmaKit/DmaPool.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/DmaKit/DmaPool.h b/src/kernel/DmaKit/DmaPool.h index e20f8c69..9b7e6b82 100644 --- a/src/kernel/DmaKit/DmaPool.h +++ b/src/kernel/DmaKit/DmaPool.h @@ -26,8 +26,11 @@ #define kNeDMABestAlign (8) namespace Kernel { + /// @brief DMA pool base pointer, here we're sure that AHCI or whatever tricky standard sees it. -inline UInt8* kDmaPoolPtr = (UInt8*) kNeDMAPoolStart; +inline UInt8* kDmaPoolPtr = (UInt8*) kNeDMAPoolStart; + +/// @brief DMA pool end pointer. inline const UInt8* kDmaPoolEnd = (UInt8*) (kNeDMAPoolStart + kNeDMAPoolSize); /***********************************************************************************/ @@ -98,4 +101,5 @@ inline Void rtl_dma_flush(VoidPtr ptr, SizeT size_buffer) { HAL::mm_memory_fence((VoidPtr) ((UInt8*) ptr + buf_idx)); } } + } // namespace Kernel |
