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