summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/PCI/DMA.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-04-11 17:51:19 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-04-11 17:51:19 +0200
commitc3856eddb5a8146751dac82ad1ba4433f5ca6d6d (patch)
treea74bdf6f87d07a24496effbc157f74d379d25007 /dev/kernel/KernelKit/PCI/DMA.h
parent9da6a352ecf70a1f5be99058a880b20db1b57940 (diff)
tweak kernel, boot: use -Wall, -Werror, -Wpedantic now.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/PCI/DMA.h')
-rw-r--r--dev/kernel/KernelKit/PCI/DMA.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/kernel/KernelKit/PCI/DMA.h b/dev/kernel/KernelKit/PCI/DMA.h
index 19170e8f..b2d3cfa8 100644
--- a/dev/kernel/KernelKit/PCI/DMA.h
+++ b/dev/kernel/KernelKit/PCI/DMA.h
@@ -49,19 +49,19 @@ namespace Kernel
T* operator->();
template <class T>
- T* Get(const UIntPtr off = 0);
+ T* Get(UIntPtr off = 0);
public:
operator bool();
bool operator!();
public:
- bool Write(const UIntPtr& bit, const UInt32& offset);
+ bool Write(UIntPtr& bit, const UInt32& offset);
UIntPtr Read(const UInt32& offset);
Boolean Check(UIntPtr offset) const;
public:
- UIntPtr operator[](const UIntPtr& offset);
+ UIntPtr operator[](UIntPtr& offset);
private:
voidPtr fAddress{nullptr};