2018-12-18 06:33:36 +01:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Memory
|
2018-08-15 20:59:51 +02:00
|
|
|
{
|
|
|
|
class KMemoryInfo
|
|
|
|
{
|
2018-12-05 01:52:39 +01:00
|
|
|
public ulong Address { get; private set; }
|
|
|
|
public ulong Size { get; private set; }
|
2018-08-15 20:59:51 +02:00
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
public MemoryState State { get; private set; }
|
|
|
|
public MemoryPermission Permission { get; private set; }
|
|
|
|
public MemoryAttribute Attribute { get; private set; }
|
2018-08-15 20:59:51 +02:00
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
public int IpcRefCount { get; private set; }
|
|
|
|
public int DeviceRefCount { get; private set; }
|
2018-08-15 20:59:51 +02:00
|
|
|
|
|
|
|
public KMemoryInfo(
|
2018-12-06 12:16:24 +01:00
|
|
|
ulong address,
|
|
|
|
ulong size,
|
|
|
|
MemoryState state,
|
|
|
|
MemoryPermission permission,
|
|
|
|
MemoryAttribute attribute,
|
|
|
|
int ipcRefCount,
|
|
|
|
int deviceRefCount)
|
2018-08-15 20:59:51 +02:00
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
Address = address;
|
|
|
|
Size = size;
|
|
|
|
State = state;
|
|
|
|
Attribute = attribute;
|
|
|
|
Permission = permission;
|
|
|
|
IpcRefCount = ipcRefCount;
|
|
|
|
DeviceRefCount = deviceRefCount;
|
2018-08-15 20:59:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|