Explicitly label class visibility

This commit is contained in:
Alex Barney
2018-12-01 14:38:15 -06:00
parent 3a02739519
commit ad5eb5787c
302 changed files with 308 additions and 308 deletions

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum AddressSpaceType
internal enum AddressSpaceType
{
Addr32Bits = 0,
Addr36Bits = 1,

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum ArbitrationType
internal enum ArbitrationType
{
WaitIfLessThan = 0,
DecrementAndWaitIfLessThan = 1,

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
static class DramMemoryMap
internal static class DramMemoryMap
{
public const ulong DramBase = 0x80000000;
public const ulong DramSize = 0x100000000;

View File

@ -3,7 +3,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
class HleCoreManager
internal class HleCoreManager
{
private class PausableThread
{

View File

@ -10,7 +10,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
class HleProcessDebugger
internal class HleProcessDebugger
{
private const int Mod0 = 'M' << 0 | 'O' << 8 | 'D' << 16 | '0' << 24;

View File

@ -3,7 +3,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class KScheduler
internal partial class KScheduler
{
private const int RoundRobinTimeQuantumMs = 10;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
interface IKFutureSchedulerObject
internal interface IKFutureSchedulerObject
{
void TimeUp();
}

View File

@ -5,7 +5,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
class KAddressArbiter
internal class KAddressArbiter
{
private const int HasListenersMask = 0x40000000;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KAutoObject
internal class KAutoObject
{
protected Horizon System;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KClientPort : KSynchronizationObject
internal class KClientPort : KSynchronizationObject
{
private int _sessionsCount;
private int _currentCapacity;

View File

@ -3,7 +3,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
static class KConditionVariable
internal static class KConditionVariable
{
public static void Wait(Horizon system, LinkedList<KThread> threadList, object mutex, long timeout)
{

View File

@ -3,7 +3,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
class KContextIdManager
internal class KContextIdManager
{
private const int IdMasksCount = 8;

View File

@ -2,7 +2,7 @@ using Ryujinx.Common;
namespace Ryujinx.HLE.HOS.Kernel
{
class KCoreContext
internal class KCoreContext
{
private KScheduler _scheduler;

View File

@ -3,7 +3,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
class KCriticalSection
internal class KCriticalSection
{
private Horizon _system;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KEvent
internal class KEvent
{
public KReadableEvent ReadableEvent { get; private set; }
public KWritableEvent WritableEvent { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KHandleEntry
internal class KHandleEntry
{
public KHandleEntry Next { get; set; }

View File

@ -2,7 +2,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
class KHandleTable
internal class KHandleTable
{
private const int SelfThreadHandle = (0x1ffff << 15) | 0;
private const int SelfProcessHandle = (0x1ffff << 15) | 1;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryArrange
internal class KMemoryArrange
{
public KMemoryArrangeRegion Service { get; private set; }
public KMemoryArrangeRegion NvServices { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
struct KMemoryArrangeRegion
internal struct KMemoryArrangeRegion
{
public ulong Address { get; private set; }
public ulong Size { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryBlock
internal class KMemoryBlock
{
public ulong BaseAddress { get; set; }
public ulong PagesCount { get; set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryBlockAllocator
internal class KMemoryBlockAllocator
{
private ulong _capacityElements;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryInfo
internal class KMemoryInfo
{
public ulong Address { get; private set; }
public ulong Size { get; private set; }

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryManager
internal class KMemoryManager
{
public const int PageSize = 0x1000;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryRegionBlock
internal class KMemoryRegionBlock
{
public long[][] Masks;

View File

@ -2,7 +2,7 @@ using Ryujinx.Common;
namespace Ryujinx.HLE.HOS.Kernel
{
class KMemoryRegionManager
internal class KMemoryRegionManager
{
private static readonly int[] BlockOrders = new int[] { 12, 16, 21, 22, 25, 29, 30 };

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
class KPageList : IEnumerable<KPageNode>
internal class KPageList : IEnumerable<KPageNode>
{
public LinkedList<KPageNode> Nodes { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
struct KPageNode
internal struct KPageNode
{
public ulong Address;
public ulong PagesCount;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KPort : KAutoObject
internal class KPort : KAutoObject
{
public KServerPort ServerPort { get; private set; }
public KClientPort ClientPort { get; private set; }

View File

@ -10,7 +10,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
class KProcess : KSynchronizationObject
internal class KProcess : KSynchronizationObject
{
public const int KernelVersionMajor = 10;
public const int KernelVersionMinor = 4;

View File

@ -2,7 +2,7 @@ using Ryujinx.Common;
namespace Ryujinx.HLE.HOS.Kernel
{
class KProcessCapabilities
internal class KProcessCapabilities
{
public byte[] SvcAccessMask { get; private set; }
public byte[] IrqAccessMask { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KReadableEvent : KSynchronizationObject
internal class KReadableEvent : KSynchronizationObject
{
private KEvent _parent;

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
class KResourceLimit
internal class KResourceLimit
{
private const int Time10SecondsMs = 10000;

View File

@ -4,7 +4,7 @@ using System.Linq;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class KScheduler : IDisposable
internal partial class KScheduler : IDisposable
{
public const int PrioritiesCount = 64;
public const int CpuCoresCount = 4;

View File

@ -2,7 +2,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
class KSchedulingData
internal class KSchedulingData
{
private LinkedList<KThread>[][] _scheduledThreadsPerPrioPerCore;
private LinkedList<KThread>[][] _suggestedThreadsPerPrioPerCore;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KServerPort : KSynchronizationObject
internal class KServerPort : KSynchronizationObject
{
private KPort _parent;

View File

@ -3,7 +3,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
class KSession : IDisposable
internal class KSession : IDisposable
{
public IpcService Service { get; private set; }

View File

@ -2,7 +2,7 @@ using Ryujinx.Common;
namespace Ryujinx.HLE.HOS.Kernel
{
class KSharedMemory
internal class KSharedMemory
{
private KPageList _pageList;

View File

@ -2,7 +2,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
class KSlabHeap
internal class KSlabHeap
{
private LinkedList<ulong> _items;

View File

@ -4,7 +4,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
class KSynchronization
internal class KSynchronization
{
private Horizon _system;

View File

@ -2,7 +2,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
class KSynchronizationObject : KAutoObject
internal class KSynchronizationObject : KAutoObject
{
public LinkedList<KThread> WaitingThreads;

View File

@ -8,7 +8,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
class KThread : KSynchronizationObject, IKFutureSchedulerObject
internal class KThread : KSynchronizationObject, IKFutureSchedulerObject
{
public CpuThread Context { get; private set; }

View File

@ -6,7 +6,7 @@ using System.Threading;
namespace Ryujinx.HLE.HOS.Kernel
{
class KTimeManager : IDisposable
internal class KTimeManager : IDisposable
{
private class WaitingObject
{

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KTlsPageInfo
internal class KTlsPageInfo
{
public const int TlsEntrySize = 0x200;

View File

@ -2,7 +2,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
class KTlsPageManager
internal class KTlsPageManager
{
private const int TlsEntrySize = 0x200;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KTransferMemory
internal class KTransferMemory
{
public ulong Address { get; private set; }
public ulong Size { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
class KWritableEvent
internal class KWritableEvent
{
private KEvent _parent;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
static class KernelErr
internal static class KernelErr
{
public const int ThreadTerminating = 59;
public const int InvalidSize = 101;

View File

@ -2,7 +2,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
static class KernelInit
internal static class KernelInit
{
public static void InitializeResourceLimit(KResourceLimit resourceLimit)
{

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum KernelResult
internal enum KernelResult
{
Success = 0,
InvalidCapability = 0x1c01,

View File

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
namespace Ryujinx.HLE.HOS.Kernel
{
static class KernelTransfer
internal static class KernelTransfer
{
public static bool UserToKernelInt32(Horizon system, long address, out int value)
{

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum LimitableResource : byte
internal enum LimitableResource : byte
{
Memory = 0,
Thread = 1,

View File

@ -3,7 +3,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
[Flags]
enum MemoryAttribute : byte
internal enum MemoryAttribute : byte
{
None = 0,
Mask = 0xff,

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum MemoryOperation
internal enum MemoryOperation
{
MapPa,
MapVa,

View File

@ -3,7 +3,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
[Flags]
enum MemoryPermission : byte
internal enum MemoryPermission : byte
{
None = 0,
Mask = 0xff,

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum MemoryRegion
internal enum MemoryRegion
{
Application = 0,
Applet = 1,

View File

@ -3,7 +3,7 @@ using System;
namespace Ryujinx.HLE.HOS.Kernel
{
[Flags]
enum MemoryState : uint
internal enum MemoryState : uint
{
Unmapped = 0x00000000,
Io = 0x00002001,

View File

@ -2,7 +2,7 @@ using Ryujinx.Common;
namespace Ryujinx.HLE.HOS.Kernel
{
class MersenneTwister
internal class MersenneTwister
{
private int _index;
private uint[] _mt;

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
struct ProcessCreationInfo
internal struct ProcessCreationInfo
{
public string Name { get; private set; }

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum ProcessState : byte
internal enum ProcessState : byte
{
Created = 0,
CreatedAttached = 1,

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum SignalType
internal enum SignalType
{
Signal = 0,
SignalAndIncrementIfEqual = 1,

View File

@ -8,7 +8,7 @@ using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class SvcHandler
internal partial class SvcHandler
{
private delegate void SvcFunc(CpuThreadState threadState);

View File

@ -5,7 +5,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class SvcHandler
internal partial class SvcHandler
{
private void SvcSetHeapSize(CpuThreadState threadState)
{

View File

@ -12,7 +12,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class SvcHandler
internal partial class SvcHandler
{
private void SvcExitProcess(CpuThreadState threadState)
{

View File

@ -5,7 +5,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class SvcHandler
internal partial class SvcHandler
{
private void CreateThread64(CpuThreadState threadState)
{

View File

@ -6,7 +6,7 @@ using static Ryujinx.HLE.HOS.ErrorCode;
namespace Ryujinx.HLE.HOS.Kernel
{
partial class SvcHandler
internal partial class SvcHandler
{
private void SvcWaitSynchronization(CpuThreadState threadState)
{

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum ThreadSchedState : ushort
internal enum ThreadSchedState : ushort
{
LowMask = 0xf,
HighMask = 0xfff0,

View File

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Kernel
{
enum ThreadType
internal enum ThreadType
{
Dummy,
Kernel,