aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs b/src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs
index 05858694..c9218e67 100644
--- a/src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Nv/NvIoctl.cs
@@ -7,39 +7,39 @@ namespace Ryujinx.HLE.HOS.Services.Nv
struct NvIoctl
{
public const int NvHostCustomMagic = 0x00;
- public const int NvMapCustomMagic = 0x01;
- public const int NvGpuAsMagic = 0x41;
- public const int NvGpuMagic = 0x47;
- public const int NvHostMagic = 0x48;
+ public const int NvMapCustomMagic = 0x01;
+ public const int NvGpuAsMagic = 0x41;
+ public const int NvGpuMagic = 0x47;
+ public const int NvHostMagic = 0x48;
- private const int NumberBits = 8;
- private const int TypeBits = 8;
- private const int SizeBits = 14;
+ private const int NumberBits = 8;
+ private const int TypeBits = 8;
+ private const int SizeBits = 14;
private const int DirectionBits = 2;
- private const int NumberShift = 0;
- private const int TypeShift = NumberShift + NumberBits;
- private const int SizeShift = TypeShift + TypeBits;
+ private const int NumberShift = 0;
+ private const int TypeShift = NumberShift + NumberBits;
+ private const int SizeShift = TypeShift + TypeBits;
private const int DirectionShift = SizeShift + SizeBits;
- private const int NumberMask = (1 << NumberBits) - 1;
- private const int TypeMask = (1 << TypeBits) - 1;
- private const int SizeMask = (1 << SizeBits) - 1;
+ private const int NumberMask = (1 << NumberBits) - 1;
+ private const int TypeMask = (1 << TypeBits) - 1;
+ private const int SizeMask = (1 << SizeBits) - 1;
private const int DirectionMask = (1 << DirectionBits) - 1;
[Flags]
public enum Direction : uint
{
- None = 0,
- Read = 1,
+ None = 0,
+ Read = 1,
Write = 2,
}
public uint RawValue;
- public uint Number => (RawValue >> NumberShift) & NumberMask;
- public uint Type => (RawValue >> TypeShift) & TypeMask;
- public uint Size => (RawValue >> SizeShift) & SizeMask;
- public Direction DirectionValue => (Direction)((RawValue >> DirectionShift) & DirectionMask);
+ public readonly uint Number => (RawValue >> NumberShift) & NumberMask;
+ public readonly uint Type => (RawValue >> TypeShift) & TypeMask;
+ public readonly uint Size => (RawValue >> SizeShift) & SizeMask;
+ public readonly Direction DirectionValue => (Direction)((RawValue >> DirectionShift) & DirectionMask);
}
}