blob: 4df24371450cfed91b91a38ffd4a1a993c813917 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* -------------------------------------------
Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
namespace Kernel {
template <class T>
T* DMAWrapper::operator->() {
return this->fAddress;
}
template <class T>
T* DMAWrapper::Get(UIntPtr offset) {
return reinterpret_cast<T*>((UIntPtr) this->fAddress + offset);
}
} // namespace Kernel
|