blob: 934019f00878488fed017f9a2c086cfe49fa2d61 (
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
|