2018-12-18 06:33:36 +01:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Memory
|
2018-08-15 20:59:51 +02:00
|
|
|
{
|
|
|
|
class KMemoryInfo
|
|
|
|
{
|
2019-01-18 23:26:39 +01:00
|
|
|
public ulong Address { get; }
|
|
|
|
public ulong Size { get; }
|
2018-08-15 20:59:51 +02:00
|
|
|
|
2019-01-18 23:26:39 +01:00
|
|
|
public MemoryState State { get; }
|
|
|
|
public MemoryPermission Permission { get; }
|
|
|
|
public MemoryAttribute Attribute { get; }
|
|
|
|
public MemoryPermission SourcePermission { get; }
|
2018-08-15 20:59:51 +02:00
|
|
|
|
2019-01-18 23:26:39 +01:00
|
|
|
public int IpcRefCount { get; }
|
|
|
|
public int DeviceRefCount { get; }
|
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,
|
2019-01-18 23:26:39 +01:00
|
|
|
MemoryPermission sourcePermission,
|
2018-12-06 12:16:24 +01:00
|
|
|
int ipcRefCount,
|
|
|
|
int deviceRefCount)
|
2018-08-15 20:59:51 +02:00
|
|
|
{
|
2019-01-18 23:26:39 +01:00
|
|
|
Address = address;
|
|
|
|
Size = size;
|
|
|
|
State = state;
|
|
|
|
Permission = permission;
|
|
|
|
Attribute = attribute;
|
|
|
|
SourcePermission = sourcePermission;
|
|
|
|
IpcRefCount = ipcRefCount;
|
|
|
|
DeviceRefCount = deviceRefCount;
|
2018-08-15 20:59:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|