summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/DmaKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-25 20:05:19 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-25 20:05:19 +0100
commit613293dd42238fdf241d807dd328e1a2621ff048 (patch)
treee60ae44847a58d0a8b9a98a09a1c5955ea7655f0 /src/kernel/DmaKit
parentdbcc2fdb13815a71d2c4b99bb44e8fa437fb4094 (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.h6
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