2018-08-16 23:47:36 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
2018-08-15 18:59:51 +00:00
|
|
|
{
|
|
|
|
class KMemoryInfo
|
|
|
|
{
|
2018-12-04 20:23:37 +00:00
|
|
|
public ulong Address { get; }
|
|
|
|
public ulong Size { get; }
|
2018-08-15 18:59:51 +00:00
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
public MemoryState State { get; }
|
|
|
|
public MemoryPermission Permission { get; }
|
|
|
|
public MemoryAttribute Attribute { get; }
|
2018-08-15 18:59:51 +00:00
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
public int IpcRefCount { get; }
|
|
|
|
public int DeviceRefCount { get; }
|
2018-08-15 18:59:51 +00:00
|
|
|
|
|
|
|
public KMemoryInfo(
|
2018-12-04 20:23:37 +00:00
|
|
|
ulong address,
|
|
|
|
ulong size,
|
|
|
|
MemoryState state,
|
|
|
|
MemoryPermission permission,
|
|
|
|
MemoryAttribute attribute,
|
|
|
|
int ipcRefCount,
|
|
|
|
int deviceRefCount)
|
2018-08-15 18:59:51 +00:00
|
|
|
{
|
2018-12-04 20:23:37 +00:00
|
|
|
Address = address;
|
|
|
|
Size = size;
|
|
|
|
State = state;
|
|
|
|
Attribute = attribute;
|
|
|
|
Permission = permission;
|
|
|
|
IpcRefCount = ipcRefCount;
|
|
|
|
DeviceRefCount = deviceRefCount;
|
2018-08-15 18:59:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|