2018-08-17 01:47:36 +02:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
2018-08-15 20:59:51 +02:00
|
|
|
{
|
|
|
|
class KMemoryInfo
|
|
|
|
{
|
2018-11-28 23:18:09 +01:00
|
|
|
public ulong Address { get; private set; }
|
|
|
|
public ulong Size { get; private set; }
|
2018-08-15 20:59:51 +02:00
|
|
|
|
|
|
|
public MemoryState State { get; private set; }
|
|
|
|
public MemoryPermission Permission { get; private set; }
|
|
|
|
public MemoryAttribute Attribute { get; private set; }
|
|
|
|
|
|
|
|
public int IpcRefCount { get; private set; }
|
|
|
|
public int DeviceRefCount { get; private set; }
|
|
|
|
|
|
|
|
public KMemoryInfo(
|
2018-11-28 23:18:09 +01:00
|
|
|
ulong Address,
|
|
|
|
ulong Size,
|
2018-08-15 20:59:51 +02:00
|
|
|
MemoryState State,
|
|
|
|
MemoryPermission Permission,
|
|
|
|
MemoryAttribute Attribute,
|
|
|
|
int IpcRefCount,
|
|
|
|
int DeviceRefCount)
|
|
|
|
{
|
2018-11-28 23:18:09 +01:00
|
|
|
this.Address = Address;
|
2018-08-15 20:59:51 +02:00
|
|
|
this.Size = Size;
|
|
|
|
this.State = State;
|
|
|
|
this.Attribute = Attribute;
|
|
|
|
this.Permission = Permission;
|
|
|
|
this.IpcRefCount = IpcRefCount;
|
|
|
|
this.DeviceRefCount = DeviceRefCount;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|