summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/PCI/DMA.inl
blob: d9c6e5518e6a3af21c787e72856bdf4ba5060e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* -------------------------------------------

	Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.

------------------------------------------- */

namespace NeOS
{
	template <class T>
	T* DMAWrapper::operator->()
	{
		return this->fAddress;
	}

	template <class T>
	T* DMAWrapper::Get(const UIntPtr offset)
	{
		return reinterpret_cast<T*>((UIntPtr)this->fAddress + offset);
	}
} // namespace NeOS