blob: d81a632ed46ad0ae6690bbf6f54718e754c78c45 (
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, licensed under the Apache 2.0 license.
======================================== */
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
|