2021-02-13 00:43:01 +01:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2020-12-28 05:56:57 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
|
2021-02-13 00:43:01 +01:00
|
|
|
namespace Kernel {
|
2020-12-28 05:56:57 +01:00
|
|
|
|
2021-02-13 00:43:01 +01:00
|
|
|
// Confirmed Switch kernel error codes
|
|
|
|
|
|
|
|
constexpr ResultCode ResultMaxConnectionsReached{ErrorModule::Kernel, 7};
|
|
|
|
constexpr ResultCode ResultInvalidCapabilityDescriptor{ErrorModule::Kernel, 14};
|
2021-01-16 07:02:33 +01:00
|
|
|
constexpr ResultCode ResultNoSynchronizationObject{ErrorModule::Kernel, 57};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultTerminationRequested{ErrorModule::Kernel, 59};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultInvalidSize{ErrorModule::Kernel, 101};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidAddress{ErrorModule::Kernel, 102};
|
2021-02-01 01:55:11 +01:00
|
|
|
constexpr ResultCode ResultOutOfResource{ErrorModule::Kernel, 103};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultOutOfMemory{ErrorModule::Kernel, 104};
|
|
|
|
constexpr ResultCode ResultHandleTableFull{ErrorModule::Kernel, 105};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidCurrentMemory{ErrorModule::Kernel, 106};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultInvalidMemoryPermissions{ErrorModule::Kernel, 108};
|
|
|
|
constexpr ResultCode ResultInvalidMemoryRange{ErrorModule::Kernel, 110};
|
2021-01-01 11:06:06 +01:00
|
|
|
constexpr ResultCode ResultInvalidPriority{ErrorModule::Kernel, 112};
|
2021-01-03 10:49:18 +01:00
|
|
|
constexpr ResultCode ResultInvalidCoreId{ErrorModule::Kernel, 113};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidHandle{ErrorModule::Kernel, 114};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultInvalidPointer{ErrorModule::Kernel, 115};
|
2021-01-16 07:02:33 +01:00
|
|
|
constexpr ResultCode ResultInvalidCombination{ErrorModule::Kernel, 116};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultTimedOut{ErrorModule::Kernel, 117};
|
|
|
|
constexpr ResultCode ResultCancelled{ErrorModule::Kernel, 118};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultOutOfRange{ErrorModule::Kernel, 119};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidEnumValue{ErrorModule::Kernel, 120};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultNotFound{ErrorModule::Kernel, 121};
|
2021-01-16 07:02:33 +01:00
|
|
|
constexpr ResultCode ResultBusy{ErrorModule::Kernel, 122};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultSessionClosedByRemote{ErrorModule::Kernel, 123};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidState{ErrorModule::Kernel, 125};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultReservedValue{ErrorModule::Kernel, 126};
|
|
|
|
constexpr ResultCode ResultResourceLimitedExceeded{ErrorModule::Kernel, 132};
|
2020-12-28 05:56:57 +01:00
|
|
|
|
2021-02-13 00:43:01 +01:00
|
|
|
} // namespace Kernel
|