NeKernel dev
Loading...
Searching...
No Matches
DMA.inl
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5======================================== */
6
7namespace Kernel {
8template <class T>
10 return this->fAddress;
11}
12
13template <class T>
15 return reinterpret_cast<T*>((UIntPtr) this->fAddress + offset);
16}
17} // namespace Kernel
voidPtr fAddress
Definition DMA.h:62
T * operator->()
Definition DMA.inl:9
T * Get(UIntPtr off=0)
Definition DMA.inl:14
UPS inline definitions.
Definition Device.h:12
__UINTPTR_TYPE__ UIntPtr
Definition Config.h:62