uofw/include/common/errors.h
2021-10-16 19:58:07 +02:00

443 lines
27 KiB
C

/* Copyright (C) 2011 - 2021 The uOFW team
See the file COPYING for copying permission.
*/
#ifndef COMMON_INCLUDED
# error "Only include common_asm.h, common_imp.h or common_header.h!"
#endif
/**
* uofw/include/common/errors.h
*
* Defines error codes used by the system software. Throughout the kernel, error codes
* are organized as negative values expressed in hexadecimal notation.
*/
/**
* PSP error value format
*
* 31 30 29 28 27 16 15 0
* +---+---+-------+------------------+-----------------------+
* | E | C | Rsrvd | F A C I L I T Y | E R R O R C O D E |
* +---+---+-------+------------------+-----------------------+
*
* bit 31: Error
* 1 = Error
* 0 = Success
*
* bit 30: Critical
* 1 = Critical error
* 0 = Normal error
*
* bits 29-28: Reserved
* always zero
*
* bits 27-16: Facility
* One of the below facility codes
*
* bits 15-0: Error code
* Define the concrete meaning of the error code. The meaning is depending
* on the facility code, in other words, if for two error values the
* error code fields are equal, but the facility differs, then the meaning of the
* error value might differ as well.
*
*/
/*
* Definition of facility codes
*/
#define SCE_ERROR_FACILITY_NULL 0x000
#define SCE_ERROR_FACILITY_ERRNO 0x001
#define SCE_ERROR_FACILITY_KERNEL 0x002
#define SCE_ERROR_FACILITY_REGISTRY 0x008
#define SCE_ERROR_FACILITY_VSH 0x010
#define SCE_ERROR_FACILITY_UTILITY 0x011
#define SCE_ERROR_FACILITY_SYSFILE 0x012
#define SCE_ERROR_FACILITY_MSAPP 0x013
#define SCE_ERROR_FACILITY_UMD 0x021
#define SCE_ERROR_FACILITY_MEMSTICK 0x022
#define SCE_ERROR_FACILITY_FLASH 0x023
#define SCE_ERROR_FACILITY_USB 0x024
#define SCE_ERROR_FACILITY_SYSCON 0x025
#define SCE_ERROR_FACILITY_AUDIO 0x026
#define SCE_ERROR_FACILITY_LFLASH 0x027
#define SCE_ERROR_FACILITY_LFATFS 0x028
#define SCE_ERROR_FACILITY_SIRCS 0x029
#define SCE_ERROR_FACILITY_IRDA 0x02A
#define SCE_ERROR_FACILITY_POWER 0x02B
#define SCE_ERROR_FACILITY_AUDIOROUTING 0x02C
#define SCE_ERROR_FACILITY_MEDIASYNC 0x02D
#define SCE_ERROR_FACILITY_PERIPH 0x03F
#define SCE_ERROR_FACILITY_NETWORK 0x041
#define SCE_ERROR_FACILITY_SAS 0x042
#define SCE_ERROR_FACILITY_HTTP 0x043
#define SCE_ERROR_FACILITY_WAVE 0x044
#define SCE_ERROR_FACILITY_SND 0x045
#define SCE_ERROR_FACILITY_FONT 0x046
#define SCE_ERROR_FACILITY_P3DA 0x047
#define SCE_ERROR_FACILITY_MAGICGATE 0x050
#define SCE_ERROR_FACILITY_CPHIO 0x051
#define SCE_ERROR_FACILITY_OPENPSID 0x052
#define SCE_ERROR_FACILITY_DNAS 0x053
#define SCE_ERROR_FACILITY_MTP 0x054
#define SCE_ERROR_FACILITY_NP 0x055
#define SCE_ERROR_FACILITY_GAMEUPDATE 0x056
#define SCE_ERROR_FACILITY_FMAC 0x057
#define SCE_ERROR_FACILITY_FACE 0x058
#define SCE_ERROR_FACILITY_LIBRARY 0x05F
#define SCE_ERROR_FACILITY_MPEG 0x061
#define SCE_ERROR_FACILITY_AVC 0x062
#define SCE_ERROR_FACILITY_ATRAC 0x063
#define SCE_ERROR_FACILITY_ASF 0x064
#define SCE_ERROR_FACILITY_JPEG 0x065
#define SCE_ERROR_FACILITY_AVI 0x066
#define SCE_ERROR_FACILITY_MP3 0x067
#define SCE_ERROR_FACILITY_G729 0x068
#define SCE_ERROR_FACILITY_AAC 0x069
#define SCE_ERROR_FACILITY_CODEC 0x07F
/*
* Error definitions belonging to SCE_ERROR_FACILITY_NULL
*/
#define SCE_ERROR_OK 0x0
#define SCE_ERROR_NOT_IMPLEMENTED 0x80000003
#define SCE_ERROR_NOT_SUPPORTED 0x80000004
#define SCE_ERROR_ALREADY 0x80000020
#define SCE_ERROR_BUSY 0x80000021
#define SCE_ERROR_OUT_OF_MEMORY 0x80000022
#define SCE_ERROR_PRIV_REQUIRED 0x80000023
#define SCE_ERROR_NOT_FOUND 0x80000025
#define SCE_ERROR_ILLEGAL_CONTEXT 0x80000030
#define SCE_ERROR_CPUDI 0x80000031
#define SCE_ERROR_SEMAPHORE 0x80000041
#define SCE_ERROR_INVALID_ID 0x80000100
#define SCE_ERROR_INVALID_NAME 0x80000101
#define SCE_ERROR_INVALID_INDEX 0x80000102
#define SCE_ERROR_INVALID_POINTER 0x80000103
#define SCE_ERROR_INVALID_SIZE 0x80000104
#define SCE_ERROR_INVALID_FLAG 0x80000105
#define SCE_ERROR_INVALID_COMMAND 0x80000106
#define SCE_ERROR_INVALID_MODE 0x80000107
#define SCE_ERROR_INVALID_FORMAT 0x80000108
#define SCE_ERROR_INVALID_VALUE 0x800001FE
#define SCE_ERROR_INVALID_ARGUMENT 0x800001FF
#define SCE_ERROR_NOENT 0x80000202
#define SCE_ERROR_BAD_FILE 0x80000209
#define SCE_ERROR_ACCESS_ERROR 0x8000020D
#define SCE_ERROR_EXIST 0x80000211
#define SCE_ERROR_INVAL 0x80000216
#define SCE_ERROR_MFILE 0x80000218
#define SCE_ERROR_NOSPC 0x8000021C
#define SCE_ERROR_DFUNC 0x800002FF
/*
* Error definitions belonging to SCE_ERROR_FACILITY_ERRNO
*/
#define SCE_ERROR_ERRNO_OPERATION_NOT_PERMITTED 0x80010001
#define SCE_ERROR_ERRNO_FILE_NOT_FOUND 0x80010002
#define SCE_ERROR_ERRNO_FILE_OPEN_ERROR 0x80010003
#define SCE_ERROR_ERRNO_IO_ERROR 0x80010005
#define SCE_ERROR_ERRNO_ARG_LIST_TOO_LONG 0x80010007
#define SCE_ERROR_ERRNO_INVALID_FILE_DESCRIPTOR 0x80010009
#define SCE_ERROR_ERRNO_RESOURCE_UNAVAILABLE 0x8001000B
#define SCE_ERROR_ERRNO_NO_MEMORY 0x8001000C
#define SCE_ERROR_ERRNO_NO_PERM 0x8001000D
#define SCE_ERROR_ERRNO_FILE_INVALID_ADDR 0x8001000E
#define SCE_ERROR_ERRNO_DEVICE_BUSY 0x80010010
#define SCE_ERROR_ERRNO_FILE_ALREADY_EXISTS 0x80010011
#define SCE_ERROR_ERRNO_CROSS_DEV_LINK 0x80010012
#define SCE_ERROR_ERRNO_DEVICE_NOT_FOUND 0x80010013
#define SCE_ERROR_ERRNO_NOT_A_DIRECTORY 0x80010014
#define SCE_ERROR_ERRNO_IS_DIRECTORY 0x80010015
#define SCE_ERROR_ERRNO_INVALID_ARGUMENT 0x80010016
#define SCE_ERROR_ERRNO_TOO_MANY_OPEN_SYSTEM_FILES 0x80010018
#define SCE_ERROR_ERRNO_FILE_IS_TOO_BIG 0x8001001B
#define SCE_ERROR_ERRNO_DEVICE_NO_FREE_SPACE 0x8001001C
#define SCE_ERROR_ERRNO_READ_ONLY 0x8001001E
#define SCE_ERROR_ERRNO_CLOSED 0x80010020
// #define SCE_ERROR_ERRNO_EIDRM 0x80010024 -- Note: Keep this undefined.
#define SCE_ERROR_ERRNO_FILE_PROTOCOL 0x80010047
#define SCE_ERROR_ERRNO_DIRECTORY_IS_NOT_EMPTY 0x8001005A
#define SCE_ERROR_ERRNO_NAME_TOO_LONG 0x8001005B /* File name or path name too long */
#define SCE_ERROR_ERRNO_TOO_MANY_SYMBOLIC_LINKS 0x8001005C
#define SCE_ERROR_ERRNO_CONNECTION_RESET 0x80010068
#define SCE_ERROR_ERRNO_NO_FREE_BUF_SPACE 0x80010069
#define SCE_ERROR_ERRNO_ESHUTDOWN 0x8001006E /* Error sending package after socket was shutdown */
#define SCE_ERROR_ERRNO_EADDRINUSE 0x80010070 /* The address is already in use. */
#define SCE_ERROR_ERRNO_CONNECTION_ABORTED 0x80010071 /* Connection was aborted by software. */
#define SCE_ERROR_ERRNO_ETIMEDOUT 0x80010074 /* Operation timed out. */
#define SCE_ERROR_ERRNO_IN_PROGRESS 0x80010077
#define SCE_ERROR_ERRNO_ALREADY 0x80010078
#define SCE_ERROR_ERRNO_INVALID_PROTOCOL 0x8001007B /* Protocol is not supported. */
#define SCE_ERROR_ERRNO_INVALID_SOCKET_TYPE 0x8001007C /* Unsupported socket type. */
#define SCE_ERROR_ERRNO_ADDRESS_NOT_AVAILABLE 0x8001007D
#define SCE_ERROR_ERRNO_IS_ALREADY_CONNECTED 0x8001007F
#define SCE_ERROR_ERRNO_NOT_CONNECTED 0x80010080
#define SCE_ERROR_ERRNO_FILE_QUOTA_EXCEEDED 0x80010084
#define SCE_ERROR_ERRNO_NOT_SUPPORTED 0x80010086
#define SCE_ERROR_ERRNO_ENOMEDIUM 0x80010087 /* No medium was found. */
/*
* Non-standard error code definitions
*/
#define SCE_ERROR_ERRNO_ADDR_OUT_OF_MAIN_MEM 0x8001B001
#define SCE_ERROR_ERRNO_INVALID_UNIT_NUM 0x8001B002
#define SCE_ERROR_ERRNO_INVALID_FILE_SIZE 0x8001B003
#define SCE_ERROR_ERRNO_INVALID_FLAG 0x8001B004
#define SCE_ERROR_ERRNO_NO_CACHE 0x8001B005
#define SCE_ERROR_ERRNO_WRONG_MEDIUM_TYPE 0x8001B006
/*
* Flash memory (UMD, MS) up to 1.5.0 mistakenly had returned these values.
*/
#define SCE_ERROR_ERRNO150_ENAMETOOLONG 0x80010024
#define SCE_ERROR_ERRNO150_EADDRINUSE 0x80010062
#define SCE_ERROR_ERRNO150_ECONNABORTED 0x80010067
#define SCE_ERROR_ERRNO150_ETIMEDOUT 0x8001006E
#define SCE_ERROR_ERRNO150_ENOMEDIUM 0x8001007B
#define SCE_ERROR_ERRNO150_EMEDIUMTYPE 0x8001007C
#define SCE_ERROR_ERRNO150_ENOTSUP 0x8001B000
/*
* Error definitions belonging to SCE_ERROR_FACILITY_KERNEL
*/
#define SCE_ERROR_KERNEL_ERROR 0x80020001
#define SCE_ERROR_KERNEL_NOT_IMPLEMENTED 0x80020002
#define SCE_ERROR_KERNEL_ILLEGAL_EXPCODE 0x80020032
#define SCE_ERROR_KERNEL_EXPHANDLER_NOUSE 0x80020033
#define SCE_ERROR_KERNEL_EXPHANDLER_USED 0x80020034
#define SCE_ERROR_KERNEL_SYSCALLTABLE_NOUSED 0x80020035
#define SCE_ERROR_KERNEL_SYSCALLTABLE_ALREADY_REGISTERED 0x80020036
#define SCE_ERROR_KERNEL_INVALID_SYSCALLTABLE 0x80020037
#define SCE_ERROR_KERNEL_INVALID_SYSCALL_ID 0x80020038
#define SCE_ERROR_KERNEL_SYSCALL_HANDLER_ALREADY_EXISTS 0x80020039
#define SCE_ERROR_KERNEL_INVALID_NMI 0x8002003A
#define SCE_ERROR_KERNEL_CANNOT_BE_CALLED_FROM_INTERRUPT 0x80020064
#define SCE_ERROR_KERNEL_INVALID_INTERRUPT 0x80020065
#define SCE_ERROR_KERNEL_INTERRUPTS_ALREADY_DISABLED 0x80020066
#define SCE_ERROR_KERNEL_HANDLER_ALREADY_EXISTS 0x80020067
#define SCE_ERROR_KERNEL_HANDLER_NOTFOUND 0x80020068
#define SCE_ERROR_KERNEL_INVALID_INTERRUPT_LEVEL 0x80020069
#define SCE_ERROR_KERNEL_INVALID_INTERRUPT_ARGUMENT 0x8002006B
#define SCE_ERROR_KERNEL_INVALID_STACK_ADDRESS 0x8002006C
#define SCE_ERROR_KERNEL_STACK_ALREADY_SET 0x8002006D
#define SCE_ERROR_KERNEL_NO_TIMER 0x80020096
#define SCE_ERROR_KERNEL_ILLEGAL_TIMER_ID 0x80020097
#define SCE_ERROR_KERNEL_ILLEGAL_PRESCALE 0x80020099
#define SCE_ERROR_KERNEL_TIMER_BUSY 0x8002009A
#define SCE_ERROR_KERNEL_TIMER_NOT_SETUP 0x8002009B
#define SCE_ERROR_KERNEL_TIMER_NOT_INUSE 0x8002009C
#define SCE_ERROR_KERNEL_UNIT_USED 0x800200A0
#define SCE_ERROR_KERNEL_UNIT_NOUSE 0x800200A1
#define SCE_ERROR_KERNEL_UNIT_NO_ROMDIR 0x800200A2
#define SCE_ERROR_KERNEL_UIDTYPE_ALREADY_EXISTS 0x800200C8
#define SCE_ERROR_KERNEL_UIDTYPE_NOT_FOUND 0x800200C9
#define SCE_ERROR_KERNEL_UIDTYPE_NOT_EMPTY 0x800200CA
#define SCE_ERROR_KERNEL_UNKNOWN_UID 0x800200CB
#define SCE_ERROR_KERNEL_UNMATCH_TYPE_UID 0x800200CC
#define SCE_ERROR_KERNEL_NOT_EXIST_ID 0x800200CD
#define SCE_ERROR_KERNEL_NOT_FOUND_FUNCTION_UID 0x800200CE
#define SCE_ERROR_KERNEL_ALREADY_HOLDER_UID 0x800200CF
#define SCE_ERROR_KERNEL_NOT_HOLDER_UID 0x800200D0
#define SCE_ERROR_KERNEL_ILLEGAL_PERMISSION 0x800200D1
#define SCE_ERROR_KERNEL_ILLEGAL_ARGUMENT 0x800200D2
#define SCE_ERROR_KERNEL_ILLEGAL_ADDR 0x800200D3
#define SCE_ERROR_KERNEL_MEMORY_AREA_OUT_OF_RANGE 0x800200D4
#define SCE_ERROR_KERNEL_MEMORY_AREA_IS_OVERLAP 0x800200D5
#define SCE_ERROR_KERNEL_ILLEGAL_PARTITION_ID 0x800200D6
#define SCE_ERROR_KERNEL_PARTITION_IN_USE 0x800200D7
#define SCE_ERROR_KERNEL_ILLEGAL_MEMBLOCK_ALLOC_TYPE 0x800200D8
#define SCE_ERROR_KERNEL_FAILED_ALLOC_MEMBLOCK 0x800200D9
#define SCE_ERROR_KERNEL_INHIBITED_RESIZE_MEMBLOCK 0x800200DA
#define SCE_ERROR_KERNEL_FAILED_RESIZE_MEMBLOCK 0x800200DB
#define SCE_ERROR_KERNEL_FAILED_ALLOC_HEAPBLOCK 0x800200DC
#define SCE_ERROR_KERNEL_FAILED_ALLOC_HEAP 0x800200DD
#define SCE_ERROR_KERNEL_ILLEGAL_CHUNK_ID 0x800200DE
#define SCE_ERROR_KERNEL_CANNOT_FIND_CHUNK_NAME 0x800200DF
#define SCE_ERROR_KERNEL_NO_FREE_CHUNK 0x800200E0
#define SCE_ERROR_KERNEL_MEMBLOCK_FRAGMENTED 0x800200E1
#define SCE_ERROR_KERNEL_MEMBLOCK_CANNOT_JOINT 0x800200E2
#define SCE_ERROR_KERNEL_MEMBLOCK_CANNOT_SEPARATE 0x800200E3
#define SCE_ERROR_KERNEL_ILLEGAL_ALIGNMENT_SIZE 0x800200E4
#define SCE_ERROR_KERNEL_ILLEGAL_DEVKIT_VER 0x800200E5
#define SCE_ERROR_KERNEL_MODULE_LINK_ERROR 0x8002012C
#define SCE_ERROR_KERNEL_ILLEGAL_OBJECT_FORMAT 0x8002012D
#define SCE_ERROR_KERNEL_UNKNOWN_MODULE 0x8002012E
#define SCE_ERROR_KERNEL_UNKNOWN_MODULE_FILE 0x8002012F
#define SCE_ERROR_KERNEL_FILE_READ_ERROR 0x80020130
#define SCE_ERROR_KERNEL_MEMORY_IN_USE 0x80020131
#define SCE_ERROR_KERNEL_PARTITION_MISMATCH 0x80020132
#define SCE_ERROR_KERNEL_MODULE_ALREADY_STARTED 0x80020133
#define SCE_ERROR_KERNEL_MODULE_NOT_STARTED 0x80020134
#define SCE_ERROR_KERNEL_MODULE_ALREADY_STOPPED 0x80020135
#define SCE_ERROR_KERNEL_MODULE_CANNOT_STOP 0x80020136
#define SCE_ERROR_KERNEL_MODULE_NOT_STOPPED 0x80020137
#define SCE_ERROR_KERNEL_MODULE_CANNOT_REMOVE 0x80020138
#define SCE_ERROR_KERNEL_EXCLUSIVE_LOAD 0x80020139
#define SCE_ERROR_KERNEL_LIBRARY_IS_NOT_LINKED 0x8002013A
#define SCE_ERROR_KERNEL_LIBRARY_ALREADY_EXISTS 0x8002013B
#define SCE_ERROR_KERNEL_LIBRARY_NOT_FOUND 0x8002013C
#define SCE_ERROR_KERNEL_ILLEGAL_LIBRARY_HEADER 0x8002013D
#define SCE_ERROR_KERNEL_LIBRARY_IN_USE 0x8002013E
#define SCE_ERROR_KERNEL_MODULE_ALREADY_STOPPING 0x8002013F
#define SCE_ERROR_KERNEL_ILLEGAL_OFFSET_VALUE 0x80020140
#define SCE_ERROR_KERNEL_ILLEGAL_POSITION_CODE 0x80020141
#define SCE_ERROR_KERNEL_ILLEGAL_ACCESS_CODE 0x80020142
#define SCE_ERROR_KERNEL_MODULE_MANAGER_BUSY 0x80020143
#define SCE_ERROR_KERNEL_ILLEGAL_FLAG 0x80020144
#define SCE_ERROR_KERNEL_CANNOT_GET_MODULE_LIST 0x80020145
#define SCE_ERROR_KERNEL_PROHIBIT_LOADMODULE_DEVICE 0x80020146
#define SCE_ERROR_KERNEL_PROHIBIT_LOADEXEC_DEVICE 0x80020147
#define SCE_ERROR_KERNEL_UNSUPPORTED_PRX_TYPE 0x80020148
#define SCE_ERROR_KERNEL_ILLEGAL_PERMISSION_CALL 0x80020149
#define SCE_ERROR_KERNEL_CANNOT_GET_MODULE_INFO 0x8002014A
#define SCE_ERROR_KERNEL_ILLEGAL_LOADEXEC_BUFFER 0x8002014B
#define SCE_ERROR_KERNEL_ILLEGAL_LOADEXEC_FILENAME 0x8002014C
#define SCE_ERROR_KERNEL_NO_EXIT_CALLBACK 0x8002014D
#define SCE_ERROR_KERNEL_MEDIA_CHANGED 0x8002014E
#define SCE_ERROR_KERNEL_CANNOT_USE_BETA_VER_MODULE 0x8002014F
#define SCE_ERROR_KERNEL_NO_MEMORY 0x80020190
#define SCE_ERROR_KERNEL_ILLEGAL_ATTR 0x80020191
#define SCE_ERROR_KERNEL_ILLEGAL_THREAD_ENTRY_ADDR 0x80020192
#define SCE_ERROR_KERNEL_ILLEGAL_PRIORITY 0x80020193
#define SCE_ERROR_KERNEL_ILLEGAL_STACK_SIZE 0x80020194
#define SCE_ERROR_KERNEL_ILLEGAL_MODE 0x80020195
#define SCE_ERROR_KERNEL_ILLEGAL_MASK 0x80020196
#define SCE_ERROR_KERNEL_ILLEGAL_THREAD 0x80020197
#define SCE_ERROR_KERNEL_NOT_FOUND_THREAD 0x80020198
#define SCE_ERROR_KERNEL_NOT_FOUND_SEMAPHORE 0x80020199
#define SCE_ERROR_KERNEL_NOT_FOUND_EVENT_FLAG 0x8002019A
#define SCE_ERROR_KERNEL_NOT_FOUND_MESSAGE_BOX 0x8002019B
#define SCE_ERROR_KERNEL_NOT_FOUND_VPOOL 0x8002019C
#define SCE_ERROR_KERNEL_NOT_FOUND_FPOOL 0x8002019D
#define SCE_ERROR_KERNEL_NOT_FOUND_MESSAGE_PIPE 0x8002019E
#define SCE_ERROR_KERNEL_NOT_FOUND_ALARM 0x8002019F
#define SCE_ERROR_KERNEL_NOT_FOUND_THREAD_EVENT_HANDLER 0x800201A0
#define SCE_ERROR_KERNEL_NOT_FOUND_CALLBACK 0x800201A1
#define SCE_ERROR_KERNEL_THREAD_ALREADY_DORMANT 0x800201A2
#define SCE_ERROR_KERNEL_THREAD_ALREADY_SUSPEND 0x800201A3
#define SCE_ERROR_KERNEL_THREAD_IS_NOT_DORMANT 0x800201A4
#define SCE_ERROR_KERNEL_THREAD_IS_NOT_SUSPEND 0x800201A5
#define SCE_ERROR_KERNEL_THREAD_IS_NOT_WAIT 0x800201A6
#define SCE_ERROR_KERNEL_WAIT_CAN_NOT_WAIT 0x800201A7
#define SCE_ERROR_KERNEL_WAIT_TIMEOUT 0x800201A8
#define SCE_ERROR_KERNEL_WAIT_CANCELLED 0x800201A9
#define SCE_ERROR_KERNEL_WAIT_STATUS_RELEASED 0x800201AA
#define SCE_ERROR_KERNEL_WAIT_STATUS_RELEASED_CALLBACK 0x800201AB
#define SCE_ERROR_KERNEL_THREAD_IS_TERMINATED 0x800201AC
#define SCE_ERROR_KERNEL_SEMA_ZERO 0x800201AD
#define SCE_ERROR_KERNEL_SEMA_OVERFLOW 0x800201AE
#define SCE_ERROR_KERNEL_EVENT_FLAG_POLL_FAILED 0x800201AF
#define SCE_ERROR_KERNEL_EVENT_FLAG_NO_MULTI_PERM 0x800201B0
#define SCE_ERROR_KERNEL_EVENT_FLAG_ILLEGAL_WAIT_PATTERN 0x800201B1
#define SCE_ERROR_KERNEL_MESSAGEBOX_NO_MESSAGE 0x800201B2
#define SCE_ERROR_KERNEL_MESSAGE_PIPE_FULL 0x800201B3
#define SCE_ERROR_KERNEL_MESSAGE_PIPE_EMPTY 0x800201B4
#define SCE_ERROR_KERNEL_WAIT_DELETE 0x800201B5
#define SCE_ERROR_KERNEL_ILLEGAL_MEMBLOCK 0x800201B6
#define SCE_ERROR_KERNEL_ILLEGAL_MEMSIZE 0x800201B7
#define SCE_ERROR_KERNEL_ILLEGAL_SCRATCHPAD_ADDR 0x800201B8
#define SCE_ERROR_KERNEL_SCRATCHPAD_IN_USE 0x800201B9
#define SCE_ERROR_KERNEL_SCRATCHPAD_NOT_IN_USE 0x800201BA
#define SCE_ERROR_KERNEL_ILLEGAL_TYPE 0x800201BB
#define SCE_ERROR_KERNEL_ILLEGAL_SIZE 0x800201BC
#define SCE_ERROR_KERNEL_ILLEGAL_COUNT 0x800201BD
#define SCE_ERROR_KERNEL_NOT_FOUND_VTIMER 0x800201BE
#define SCE_ERROR_KERNEL_ILLEGAL_VTIMER 0x800201BF
#define SCE_ERROR_KERNEL_ILLEGAL_KTLS 0x800201C0
#define SCE_ERROR_KERNEL_KTLS_IS_FULL 0x800201C1
#define SCE_ERROR_KERNEL_KTLS_IS_BUSY 0x800201C2
#define SCE_ERROR_KERNEL_MUTEX_NOT_FOUND 0x800201C3
#define SCE_ERROR_KERNEL_MUTEX_LOCKED 0x800201C4
#define SCE_ERROR_KERNEL_MUTEX_UNLOCKED 0x800201C5
#define SCE_ERROR_KERNEL_MUTEX_LOCK_OVERFLOW 0x800201C6
#define SCE_ERROR_KERNEL_MUTEX_UNLOCK_UNDERFLOW 0x800201C7
#define SCE_ERROR_KERNEL_MUTEX_RECURSIVE_NOT_ALLOWED 0x800201C8
#define SCE_ERROR_KERNEL_MESSAGEBOX_DUPLICATE_MESSAGE 0x800201C9
#define SCE_ERROR_KERNEL_LWMUTEX_NOT_FOUND 0x800201CA
#define SCE_ERROR_KERNEL_LWMUTEX_LOCKED 0x800201CB
#define SCE_ERROR_KERNEL_LWMUTEX_UNLOCKED 0x800201CC
#define SCE_ERROR_KERNEL_LWMUTEX_LOCK_OVERFLOW 0x800201CD
#define SCE_ERROR_KERNEL_LWMUTEX_UNLOCK_UNDERFLOW 0x800201CE
#define SCE_ERROR_KERNEL_LWMUTEX_RECURSIVE_NOT_ALLOWED 0x800201CF
#define SCE_ERROR_KERNEL_UNKNOWN_TLSPLID 0x800201D0
#define SCE_ERROR_KERNEL_UTLS_FULL 0x800201D1
#define SCE_ERROR_KERNEL_UTLS_BUSY 0x800201D2
#define SCE_ERROR_KERNEL_PM_INVALID_PRIORITY 0x80020258
#define SCE_ERROR_KERNEL_PM_INVALID_DEVNAME 0x80020259
#define SCE_ERROR_KERNEL_PM_UNKNOWN_DEVNAME 0x8002025A
#define SCE_ERROR_KERNEL_PM_PMINFO_REGISTERED 0x8002025B
#define SCE_ERROR_KERNEL_PM_PMINFO_UNREGISTERED 0x8002025C
#define SCE_ERROR_KERNEL_PM_INVALID_MAJOR_STATE 0x8002025D
#define SCE_ERROR_KERNEL_PM_INVALID_REQUEST 0x8002025E
#define SCE_ERROR_KERNEL_PM_UNKNOWN_REQUEST 0x8002025F
#define SCE_ERROR_KERNEL_PM_INVALID_UNIT 0x80020260
#define SCE_ERROR_KERNEL_PM_CANNOT_CANCEL 0x80020261
#define SCE_ERROR_KERNEL_PM_INVALID_PMINFO 0x80020262
#define SCE_ERROR_KERNEL_PM_INVALID_ARGUMENT 0x80020263
#define SCE_ERROR_KERNEL_PM_ALREADY_TARGET_PWRSTATE 0x80020264
#define SCE_ERROR_KERNEL_PM_CHANGE_PWRSTATE_FAILED 0x80020265
#define SCE_ERROR_KERNEL_PM_CANNOT_CHANGE_DEVPWR_STATE 0x80020266
#define SCE_ERROR_KERNEL_PM_NO_SUPPORT_DEVPWR_STATE 0x80020267
#define SCE_ERROR_KERNEL_DMAC_REQUEST_FAILED 0x800202BC
#define SCE_ERROR_KERNEL_DMAC_REQUEST_DENIED 0x800202BD
#define SCE_ERROR_KERNEL_DMAC_OP_QUEUED 0x800202BE
#define SCE_ERROR_KERNEL_DMAC_OP_NOT_QUEUED 0x800202BF
#define SCE_ERROR_KERNEL_DMAC_OP_RUNNING 0x800202C0
#define SCE_ERROR_KERNEL_DMAC_OP_NOT_ASSIGNED 0x800202C1
#define SCE_ERROR_KERNEL_DMAC_OP_TIMEOUT 0x800202C2
#define SCE_ERROR_KERNEL_DMAC_OP_FREED 0x800202C3
#define SCE_ERROR_KERNEL_DMAC_OP_USED 0x800202C4
#define SCE_ERROR_KERNEL_DMAC_OP_EMPTY 0x800202C5
#define SCE_ERROR_KERNEL_DMAC_OP_ABORTED 0x800202C6
#define SCE_ERROR_KERNEL_DMAC_OP_ERROR 0x800202C7
#define SCE_ERROR_KERNEL_DMAC_CHANNEL_RESERVED 0x800202C8
#define SCE_ERROR_KERNEL_DMAC_CHANNEL_EXCLUDED 0x800202C9
#define SCE_ERROR_KERNEL_DMAC_PRIVILEGE_ADDRESS 0x800202CA
#define SCE_ERROR_KERNEL_DMAC_NO_ENOUGHSPACE 0x800202CB
#define SCE_ERROR_KERNEL_DMAC_CHANNEL_NOT_ASSIGNED 0x800202CC
#define SCE_ERROR_KERNEL_DMAC_CHILD_OPERATION 0x800202CD
#define SCE_ERROR_KERNEL_DMAC_TOO_MUCH_SIZE 0x800202CE
#define SCE_ERROR_KERNEL_DMAC_INVALID_ARGUMENT 0x800202CF
#define SCE_ERROR_KERNEL_TOO_MANY_OPEN_FILES 0x80020320
#define SCE_ERROR_KERNEL_NO_SUCH_DEVICE 0x80020321
#define SCE_ERROR_KERNEL_XDEV 0x80020322
#define SCE_ERROR_KERNEL_BAD_FILE_DESCRIPTOR 0x80020323
#define SCE_ERROR_KERNEL_INVALID_ARGUMENT 0x80020324
#define SCE_ERROR_KERNEL_UNSUPPORTED_OPERATION 0x80020325
#define SCE_ERROR_KERNEL_ALIAS_USED 0x80020326
#define SCE_ERROR_KERNEL_DRIVER_DELETED 0x80020328
#define SCE_ERROR_KERNEL_ASYNC_BUSY 0x80020329
#define SCE_ERROR_KERNEL_NO_ASYNC_OP 0x8002032A
#define SCE_ERROR_KERNEL_REGDEV 0x8002032B
#define SCE_ERROR_KERNEL_NOCWD 0x8002032C
#define SCE_ERROR_KERNEL_FILENAME_TOO_LONG 0x8002032D
#define SCE_ERROR_KERNEL_STDIO_NOT_OPENED 0x80020384
#define SCE_ERROR_KERNEL_DECI2P_UNKNOWN_SID 0x800203E8
#define SCE_ERROR_KERNEL_DECI2P_ALREADYUSE_PROTOCOL 0x800203E9
#define SCE_ERROR_KERNEL_DECI2P_TOOMANY_PROTOCOL 0x800203EA
#define SCE_ERROR_KERNEL_DECI2P_TOOSMALL_BUFFER 0x800203EB
#define SCE_ERROR_KERNEL_DECI2P_INVALID_PROTOCOL 0x800203EC
#define SCE_ERROR_KERNEL_DECI2P_INVALID_HEADER 0x800203ED
#define SCE_ERROR_KERNEL_DECI2P_NO_ROUTE 0x800203EE
#define SCE_ERROR_KERNEL_DECI2P_NO_SPACE 0x800203EF
#define SCE_ERROR_KERNEL_DECI2P_NO_HOSTIF 0x800203F0
#define SCE_ERROR_KERNEL_NOT_CACHE_ALIGNED 0x8002044C
#define SCE_ERROR_KERNEL_MAX_ERROR 0x8002044D
/*
* Error-similar definitions.
*/
#define SCE_KERNEL_VALUE_UNITIALIZED (-1)
#define SCE_KERNEL_PTR_UNITIALIZED ((void *)SCE_KERNEL_VALUE_UNITIALIZED)