using Ryujinx.Cpu.Tracking;
using Ryujinx.Memory;
using System;
namespace Ryujinx.Cpu
{
public interface IVirtualMemoryManagerTracked : IVirtualMemoryManager
{
///
/// Writes data to CPU mapped memory, without write tracking.
///
/// Virtual address to write the data into
/// Data to be written
void WriteUntracked(ulong va, ReadOnlySpan data);
///
/// Obtains a memory tracking handle for the given virtual region. This should be disposed when finished with.
///
/// CPU virtual address of the region
/// Size of the region
/// The memory tracking handle
CpuRegionHandle BeginTracking(ulong address, ulong size);
///
/// Obtains a memory tracking handle for the given virtual region, with a specified granularity. This should be disposed when finished with.
///
/// CPU virtual address of the region
/// Size of the region
/// Desired granularity of write tracking
/// The memory tracking handle
CpuMultiRegionHandle BeginGranularTracking(ulong address, ulong size, ulong granularity);
///
/// Obtains a smart memory tracking handle for the given virtual region, with a specified granularity. This should be disposed when finished with.
///
/// CPU virtual address of the region
/// Size of the region
/// Desired granularity of write tracking
/// The memory tracking handle
CpuSmartMultiRegionHandle BeginSmartGranularTracking(ulong address, ulong size, ulong granularity);
}
}