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; }
|
2020-12-02 00:23:43 +01:00
|
|
|
public KMemoryPermission Permission { get; }
|
2019-01-18 23:26:39 +01:00
|
|
|
public MemoryAttribute Attribute { get; }
|
2020-12-02 00:23:43 +01:00
|
|
|
public KMemoryPermission 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,
|
2020-12-02 00:23:43 +01:00
|
|
|
KMemoryPermission permission,
|
2018-12-06 12:16:24 +01:00
|
|
|
MemoryAttribute attribute,
|
2020-12-02 00:23:43 +01:00
|
|
|
KMemoryPermission 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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|