aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Kernel/Memory/MemoryAttribute.cs
blob: 36b1ec8c3a8e07940ad8ab8a92fce23b1a6788ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

namespace Ryujinx.HLE.HOS.Kernel.Memory
{
    [Flags]
    enum MemoryAttribute : byte
    {
        None = 0,
        Mask = 0xff,

        Borrowed = 1 << 0,
        IpcMapped = 1 << 1,
        DeviceMapped = 1 << 2,
        Uncached = 1 << 3,

        IpcAndDeviceMapped = IpcMapped | DeviceMapped,

        BorrowedAndIpcMapped = Borrowed | IpcMapped,

        DeviceMappedAndUncached = DeviceMapped | Uncached,
    }
}