summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/KernelKit/PCI/DMA.inl
blob: 9cb4cecf49a8c598e10559c614faa4fcc8649143 (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/nekernel-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