summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/KernelKit/PCI/DMA.inl
blob: 6a60cf95ffa117090b02ec7b93a6581fdd299914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2024-2025, 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