aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Kernel/SupervisorCall/MemoryInfo.cs
blob: beec621bf2e8886738d4dbacd78b0d669830f5df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Ryujinx.HLE.HOS.Kernel.Memory;

namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
{
    struct MemoryInfo
    {
        public ulong Address;
        public ulong Size;
        public MemoryState State;
        public MemoryAttribute Attribute;
        public KMemoryPermission Permission;
        public int IpcRefCount;
        public int DeviceRefCount;
#pragma warning disable CS0414, IDE0052 // Remove unread private member
        private readonly int _padding;
#pragma warning restore CS0414, IDE0052

        public MemoryInfo(
            ulong address,
            ulong size,
            MemoryState state,
            MemoryAttribute attribute,
            KMemoryPermission permission,
            int ipcRefCount,
            int deviceRefCount)
        {
            Address = address;
            Size = size;
            State = state;
            Attribute = attribute;
            Permission = permission;
            IpcRefCount = ipcRefCount;
            DeviceRefCount = deviceRefCount;
            _padding = 0;
        }
    }
}