blob: 3731c57ce315a159bec5384103e5ca7fd49d2876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
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
|