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