yuzu/src/core/hle/kernel/svc_results.h

42 lines
2.1 KiB
C
Raw Normal View History

2021-02-13 23:52:45 +04:00
// Copyright 2018 yuzu emulator team
2020-12-31 11:31:47 +04: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 23:52:45 +04:00
namespace Kernel {
2020-12-31 11:31:47 +04:00
2021-02-13 23:52:45 +04:00
// Confirmed Switch kernel error codes
2021-05-06 05:20:08 +04:00
constexpr ResultCode ResultMaxConnectionsReached{ErrorModule::Kernel, 7};
constexpr ResultCode ResultInvalidCapabilityDescriptor{ErrorModule::Kernel, 14};
2021-01-22 04:15:25 +04:00
constexpr ResultCode ResultNoSynchronizationObject{ErrorModule::Kernel, 57};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultTerminationRequested{ErrorModule::Kernel, 59};
2021-02-13 23:52:45 +04:00
constexpr ResultCode ResultInvalidSize{ErrorModule::Kernel, 101};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultInvalidAddress{ErrorModule::Kernel, 102};
2021-02-04 03:41:27 +04:00
constexpr ResultCode ResultOutOfResource{ErrorModule::Kernel, 103};
2021-02-13 23:52:45 +04:00
constexpr ResultCode ResultOutOfMemory{ErrorModule::Kernel, 104};
2021-05-06 05:20:08 +04:00
constexpr ResultCode ResultHandleTableFull{ErrorModule::Kernel, 105};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultInvalidCurrentMemory{ErrorModule::Kernel, 106};
2021-05-06 05:20:08 +04:00
constexpr ResultCode ResultInvalidMemoryPermissions{ErrorModule::Kernel, 108};
constexpr ResultCode ResultInvalidMemoryRange{ErrorModule::Kernel, 110};
2021-01-22 04:15:25 +04:00
constexpr ResultCode ResultInvalidPriority{ErrorModule::Kernel, 112};
constexpr ResultCode ResultInvalidCoreId{ErrorModule::Kernel, 113};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultInvalidHandle{ErrorModule::Kernel, 114};
2021-02-13 23:52:45 +04:00
constexpr ResultCode ResultInvalidPointer{ErrorModule::Kernel, 115};
2021-01-22 04:15:25 +04:00
constexpr ResultCode ResultInvalidCombination{ErrorModule::Kernel, 116};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultTimedOut{ErrorModule::Kernel, 117};
constexpr ResultCode ResultCancelled{ErrorModule::Kernel, 118};
2021-02-13 23:52:45 +04:00
constexpr ResultCode ResultOutOfRange{ErrorModule::Kernel, 119};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultInvalidEnumValue{ErrorModule::Kernel, 120};
2021-02-13 23:52:45 +04:00
constexpr ResultCode ResultNotFound{ErrorModule::Kernel, 121};
2021-01-22 04:15:25 +04:00
constexpr ResultCode ResultBusy{ErrorModule::Kernel, 122};
2021-05-06 05:20:08 +04:00
constexpr ResultCode ResultSessionClosedByRemote{ErrorModule::Kernel, 123};
2020-12-31 11:31:47 +04:00
constexpr ResultCode ResultInvalidState{ErrorModule::Kernel, 125};
2021-05-06 05:20:08 +04:00
constexpr ResultCode ResultReservedValue{ErrorModule::Kernel, 126};
constexpr ResultCode ResultResourceLimitedExceeded{ErrorModule::Kernel, 132};
2020-12-31 11:31:47 +04:00
2021-02-13 23:52:45 +04:00
} // namespace Kernel