# pspkerror.h

Go to the documentation of this file.

    00001 /*
    00002  * PSP Software Development Kit - http://www.pspdev.org
    00003  * -----------------------------------------------------------------------
    00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
    00005  *
    00006  * pspkerror.h - Definitions for the kernel error codes
    00007  *
    00008  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
    00009  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
    00010  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
    00011  *
    00012  * $Id: pspkerror.h 1095 2005-09-27 21:02:16Z jim $
    00013  */
    00014 #ifndef PSPKERROR_H
    00015 #define PSPKERROR_H
    00016
    00017 /* Note: The error code enumerations in this file were extrapolated from
    00018    symbolic debugging information found in the Japanese version of Puzzle Bobble. */
    00019
    00020 enum PspKernelErrorCodes
    00021 {
    00022         SCE_KERNEL_ERROR_OK      = 0,
    00023         SCE_KERNEL_ERROR_ERROR   = 0x80020001,
    00024         SCE_KERNEL_ERROR_NOTIMP = 0x80020002,
    00025         SCE_KERNEL_ERROR_ILLEGAL_EXPCODE        = 0x80020032,
    00026         SCE_KERNEL_ERROR_EXPHANDLER_NOUSE       = 0x80020033,
    00027         SCE_KERNEL_ERROR_EXPHANDLER_USED        = 0x80020034,
    00028         SCE_KERNEL_ERROR_SYCALLTABLE_NOUSED     = 0x80020035,
    00029         SCE_KERNEL_ERROR_SYCALLTABLE_USED       = 0x80020036,
    00030         SCE_KERNEL_ERROR_ILLEGAL_SYSCALLTABLE   = 0x80020037,
    00031         SCE_KERNEL_ERROR_ILLEGAL_PRIMARY_SYSCALL_NUMBER = 0x80020038,
    00032         SCE_KERNEL_ERROR_PRIMARY_SYSCALL_NUMBER_INUSE   = 0x80020039,
    00033         SCE_KERNEL_ERROR_ILLEGAL_CONTEXT        = 0x80020064,
    00034         SCE_KERNEL_ERROR_ILLEGAL_INTRCODE       = 0x80020065,
    00035         SCE_KERNEL_ERROR_CPUDI  = 0x80020066,
    00036         SCE_KERNEL_ERROR_FOUND_HANDLER  = 0x80020067,
    00037         SCE_KERNEL_ERROR_NOTFOUND_HANDLER       = 0x80020068,
    00038         SCE_KERNEL_ERROR_ILLEGAL_INTRLEVEL      = 0x80020069,
    00039         SCE_KERNEL_ERROR_ILLEGAL_ADDRESS        = 0x8002006a,
    00040         SCE_KERNEL_ERROR_ILLEGAL_INTRPARAM      = 0x8002006b,
    00041         SCE_KERNEL_ERROR_ILLEGAL_STACK_ADDRESS  = 0x8002006c,
    00042         SCE_KERNEL_ERROR_ALREADY_STACK_SET      = 0x8002006d,
    00043         SCE_KERNEL_ERROR_NO_TIMER       = 0x80020096,
    00044         SCE_KERNEL_ERROR_ILLEGAL_TIMERID        = 0x80020097,
    00045         SCE_KERNEL_ERROR_ILLEGAL_SOURCE = 0x80020098,
    00046         SCE_KERNEL_ERROR_ILLEGAL_PRESCALE       = 0x80020099,
    00047         SCE_KERNEL_ERROR_TIMER_BUSY     = 0x8002009a,
    00048         SCE_KERNEL_ERROR_TIMER_NOT_SETUP        = 0x8002009b,
    00049         SCE_KERNEL_ERROR_TIMER_NOT_INUSE        = 0x8002009c,
    00050         SCE_KERNEL_ERROR_UNIT_USED      = 0x800200a0,
    00051         SCE_KERNEL_ERROR_UNIT_NOUSE     = 0x800200a1,
    00052         SCE_KERNEL_ERROR_NO_ROMDIR      = 0x800200a2,
    00053         SCE_KERNEL_ERROR_IDTYPE_EXIST   = 0x800200c8,
    00054         SCE_KERNEL_ERROR_IDTYPE_NOT_EXIST       = 0x800200c9,
    00055         SCE_KERNEL_ERROR_IDTYPE_NOT_EMPTY       = 0x800200ca,
    00056         SCE_KERNEL_ERROR_UNKNOWN_UID    = 0x800200cb,
    00057         SCE_KERNEL_ERROR_UNMATCH_UID_TYPE       = 0x800200cc,
    00058         SCE_KERNEL_ERROR_ID_NOT_EXIST   = 0x800200cd,
    00059         SCE_KERNEL_ERROR_NOT_FOUND_UIDFUNC      = 0x800200ce,
    00060         SCE_KERNEL_ERROR_UID_ALREADY_HOLDER     = 0x800200cf,
    00061         SCE_KERNEL_ERROR_UID_NOT_HOLDER = 0x800200d0,
    00062         SCE_KERNEL_ERROR_ILLEGAL_PERM   = 0x800200d1,
    00063         SCE_KERNEL_ERROR_ILLEGAL_ARGUMENT       = 0x800200d2,
    00064         SCE_KERNEL_ERROR_ILLEGAL_ADDR   = 0x800200d3,
    00065         SCE_KERNEL_ERROR_OUT_OF_RANGE   = 0x800200d4,
    00066         SCE_KERNEL_ERROR_MEM_RANGE_OVERLAP      = 0x800200d5,
    00067         SCE_KERNEL_ERROR_ILLEGAL_PARTITION      = 0x800200d6,
    00068         SCE_KERNEL_ERROR_PARTITION_INUSE        = 0x800200d7,
    00069         SCE_KERNEL_ERROR_ILLEGAL_MEMBLOCKTYPE   = 0x800200d8,
    00070         SCE_KERNEL_ERROR_MEMBLOCK_ALLOC_FAILED  = 0x800200d9,
    00071         SCE_KERNEL_ERROR_MEMBLOCK_RESIZE_LOCKED = 0x800200da,
    00072         SCE_KERNEL_ERROR_MEMBLOCK_RESIZE_FAILED = 0x800200db,
    00073         SCE_KERNEL_ERROR_HEAPBLOCK_ALLOC_FAILED = 0x800200dc,
    00074         SCE_KERNEL_ERROR_HEAP_ALLOC_FAILED      = 0x800200dd,
    00075         SCE_KERNEL_ERROR_ILLEGAL_CHUNK_ID       = 0x800200de,
    00076         SCE_KERNEL_ERROR_NOCHUNK        = 0x800200df,
    00077         SCE_KERNEL_ERROR_NO_FREECHUNK   = 0x800200e0,
    00078         SCE_KERNEL_ERROR_LINKERR        = 0x8002012c,
    00079         SCE_KERNEL_ERROR_ILLEGAL_OBJECT = 0x8002012d,
    00080         SCE_KERNEL_ERROR_UNKNOWN_MODULE = 0x8002012e,
    00081         SCE_KERNEL_ERROR_NOFILE = 0x8002012f,
    00082         SCE_KERNEL_ERROR_FILEERR        = 0x80020130,
    00083         SCE_KERNEL_ERROR_MEMINUSE       = 0x80020131,
    00084         SCE_KERNEL_ERROR_PARTITION_MISMATCH     = 0x80020132,
    00085         SCE_KERNEL_ERROR_ALREADY_STARTED        = 0x80020133,
    00086         SCE_KERNEL_ERROR_NOT_STARTED    = 0x80020134,
    00087         SCE_KERNEL_ERROR_ALREADY_STOPPED        = 0x80020135,
    00088         SCE_KERNEL_ERROR_CAN_NOT_STOP   = 0x80020136,
    00089         SCE_KERNEL_ERROR_NOT_STOPPED    = 0x80020137,
    00090         SCE_KERNEL_ERROR_NOT_REMOVABLE  = 0x80020138,
    00091         SCE_KERNEL_ERROR_EXCLUSIVE_LOAD = 0x80020139,
    00092         SCE_KERNEL_ERROR_LIBRARY_NOT_YET_LINKED = 0x8002013a,
    00093         SCE_KERNEL_ERROR_LIBRARY_FOUND  = 0x8002013b,
    00094         SCE_KERNEL_ERROR_LIBRARY_NOTFOUND       = 0x8002013c,
    00095         SCE_KERNEL_ERROR_ILLEGAL_LIBRARY        = 0x8002013d,
    00096         SCE_KERNEL_ERROR_LIBRARY_INUSE  = 0x8002013e,
    00097         SCE_KERNEL_ERROR_ALREADY_STOPPING       = 0x8002013f,
    00098         SCE_KERNEL_ERROR_ILLEGAL_OFFSET = 0x80020140,
    00099         SCE_KERNEL_ERROR_ILLEGAL_POSITION       = 0x80020141,
    00100         SCE_KERNEL_ERROR_ILLEGAL_ACCESS = 0x80020142,
    00101         SCE_KERNEL_ERROR_MODULE_MGR_BUSY        = 0x80020143,
    00102         SCE_KERNEL_ERROR_ILLEGAL_FLAG   = 0x80020144,
    00103         SCE_KERNEL_ERROR_CANNOT_GET_MODULELIST  = 0x80020145,
    00104         SCE_KERNEL_ERROR_PROHIBIT_LOADMODULE_DEVICE     = 0x80020146,
    00105         SCE_KERNEL_ERROR_PROHIBIT_LOADEXEC_DEVICE       = 0x80020147,
    00106         SCE_KERNEL_ERROR_UNSUPPORTED_PRX_TYPE   = 0x80020148,
    00107         SCE_KERNEL_ERROR_ILLEGAL_PERM_CALL      = 0x80020149,
    00108         SCE_KERNEL_ERROR_CANNOT_GET_MODULE_INFORMATION  = 0x8002014a,
    00109         SCE_KERNEL_ERROR_ILLEGAL_LOADEXEC_BUFFER        = 0x8002014b,
    00110         SCE_KERNEL_ERROR_ILLEGAL_LOADEXEC_FILENAME      = 0x8002014c,
    00111         SCE_KERNEL_ERROR_NO_EXIT_CALLBACK       = 0x8002014d,
    00112         SCE_KERNEL_ERROR_NO_MEMORY      = 0x80020190,
    00113         SCE_KERNEL_ERROR_ILLEGAL_ATTR   = 0x80020191,
    00114         SCE_KERNEL_ERROR_ILLEGAL_ENTRY  = 0x80020192,
    00115         SCE_KERNEL_ERROR_ILLEGAL_PRIORITY       = 0x80020193,
    00116         SCE_KERNEL_ERROR_ILLEGAL_STACK_SIZE     = 0x80020194,
    00117         SCE_KERNEL_ERROR_ILLEGAL_MODE   = 0x80020195,
    00118         SCE_KERNEL_ERROR_ILLEGAL_MASK   = 0x80020196,
    00119         SCE_KERNEL_ERROR_ILLEGAL_THID   = 0x80020197,
    00120         SCE_KERNEL_ERROR_UNKNOWN_THID   = 0x80020198,
    00121         SCE_KERNEL_ERROR_UNKNOWN_SEMID  = 0x80020199,
    00122         SCE_KERNEL_ERROR_UNKNOWN_EVFID  = 0x8002019a,
    00123         SCE_KERNEL_ERROR_UNKNOWN_MBXID  = 0x8002019b,
    00124         SCE_KERNEL_ERROR_UNKNOWN_VPLID  = 0x8002019c,
    00125         SCE_KERNEL_ERROR_UNKNOWN_FPLID  = 0x8002019d,
    00126         SCE_KERNEL_ERROR_UNKNOWN_MPPID  = 0x8002019e,
    00127         SCE_KERNEL_ERROR_UNKNOWN_ALMID  = 0x8002019f,
    00128         SCE_KERNEL_ERROR_UNKNOWN_TEID   = 0x800201a0,
    00129         SCE_KERNEL_ERROR_UNKNOWN_CBID   = 0x800201a1,
    00130         SCE_KERNEL_ERROR_DORMANT        = 0x800201a2,
    00131         SCE_KERNEL_ERROR_SUSPEND        = 0x800201a3,
    00132         SCE_KERNEL_ERROR_NOT_DORMANT    = 0x800201a4,
    00133         SCE_KERNEL_ERROR_NOT_SUSPEND    = 0x800201a5,
    00134         SCE_KERNEL_ERROR_NOT_WAIT       = 0x800201a6,
    00135         SCE_KERNEL_ERROR_CAN_NOT_WAIT   = 0x800201a7,
    00136         SCE_KERNEL_ERROR_WAIT_TIMEOUT   = 0x800201a8,
    00137         SCE_KERNEL_ERROR_WAIT_CANCEL    = 0x800201a9,
    00138         SCE_KERNEL_ERROR_RELEASE_WAIT   = 0x800201aa,
    00139         SCE_KERNEL_ERROR_NOTIFY_CALLBACK        = 0x800201ab,
    00140         SCE_KERNEL_ERROR_THREAD_TERMINATED      = 0x800201ac,
    00141         SCE_KERNEL_ERROR_SEMA_ZERO      = 0x800201ad,
    00142         SCE_KERNEL_ERROR_SEMA_OVF       = 0x800201ae,
    00143         SCE_KERNEL_ERROR_EVF_COND       = 0x800201af,
    00144         SCE_KERNEL_ERROR_EVF_MULTI      = 0x800201b0,
    00145         SCE_KERNEL_ERROR_EVF_ILPAT      = 0x800201b1,
    00146         SCE_KERNEL_ERROR_MBOX_NOMSG     = 0x800201b2,
    00147         SCE_KERNEL_ERROR_MPP_FULL       = 0x800201b3,
    00148         SCE_KERNEL_ERROR_MPP_EMPTY      = 0x800201b4,
    00149         SCE_KERNEL_ERROR_WAIT_DELETE    = 0x800201b5,
    00150         SCE_KERNEL_ERROR_ILLEGAL_MEMBLOCK       = 0x800201b6,
    00151         SCE_KERNEL_ERROR_ILLEGAL_MEMSIZE        = 0x800201b7,
    00152         SCE_KERNEL_ERROR_ILLEGAL_SPADADDR       = 0x800201b8,
    00153         SCE_KERNEL_ERROR_SPAD_INUSE     = 0x800201b9,
    00154         SCE_KERNEL_ERROR_SPAD_NOT_INUSE = 0x800201ba,
    00155         SCE_KERNEL_ERROR_ILLEGAL_TYPE   = 0x800201bb,
    00156         SCE_KERNEL_ERROR_ILLEGAL_SIZE   = 0x800201bc,
    00157         SCE_KERNEL_ERROR_ILLEGAL_COUNT  = 0x800201bd,
    00158         SCE_KERNEL_ERROR_UNKNOWN_VTID   = 0x800201be,
    00159         SCE_KERNEL_ERROR_ILLEGAL_VTID   = 0x800201bf,
    00160         SCE_KERNEL_ERROR_ILLEGAL_KTLSID = 0x800201c0,
    00161         SCE_KERNEL_ERROR_KTLS_FULL      = 0x800201c1,
    00162         SCE_KERNEL_ERROR_KTLS_BUSY      = 0x800201c2,
    00163         SCE_KERNEL_ERROR_PM_INVALID_PRIORITY    = 0x80020258,
    00164         SCE_KERNEL_ERROR_PM_INVALID_DEVNAME     = 0x80020259,
    00165         SCE_KERNEL_ERROR_PM_UNKNOWN_DEVNAME     = 0x8002025a,
    00166         SCE_KERNEL_ERROR_PM_PMINFO_REGISTERED   = 0x8002025b,
    00167         SCE_KERNEL_ERROR_PM_PMINFO_UNREGISTERED = 0x8002025c,
    00168         SCE_KERNEL_ERROR_PM_INVALID_MAJOR_STATE = 0x8002025d,
    00169         SCE_KERNEL_ERROR_PM_INVALID_REQUEST     = 0x8002025e,
    00170         SCE_KERNEL_ERROR_PM_UNKNOWN_REQUEST     = 0x8002025f,
    00171         SCE_KERNEL_ERROR_PM_INVALID_UNIT        = 0x80020260,
    00172         SCE_KERNEL_ERROR_PM_CANNOT_CANCEL       = 0x80020261,
    00173         SCE_KERNEL_ERROR_PM_INVALID_PMINFO      = 0x80020262,
    00174         SCE_KERNEL_ERROR_PM_INVALID_ARGUMENT    = 0x80020263,
    00175         SCE_KERNEL_ERROR_PM_ALREADY_TARGET_PWRSTATE     = 0x80020264,
    00176         SCE_KERNEL_ERROR_PM_CHANGE_PWRSTATE_FAILED      = 0x80020265,
    00177         SCE_KERNEL_ERROR_PM_CANNOT_CHANGE_DEVPWR_STATE  = 0x80020266,
    00178         SCE_KERNEL_ERROR_PM_NO_SUPPORT_DEVPWR_STATE     = 0x80020267,
    00179         SCE_KERNEL_ERROR_DMAC_REQUEST_FAILED    = 0x800202bc,
    00180         SCE_KERNEL_ERROR_DMAC_REQUEST_DENIED    = 0x800202bd,
    00181         SCE_KERNEL_ERROR_DMAC_OP_QUEUED = 0x800202be,
    00182         SCE_KERNEL_ERROR_DMAC_OP_NOT_QUEUED     = 0x800202bf,
    00183         SCE_KERNEL_ERROR_DMAC_OP_RUNNING        = 0x800202c0,
    00184         SCE_KERNEL_ERROR_DMAC_OP_NOT_ASSIGNED   = 0x800202c1,
    00185         SCE_KERNEL_ERROR_DMAC_OP_TIMEOUT        = 0x800202c2,
    00186         SCE_KERNEL_ERROR_DMAC_OP_FREED  = 0x800202c3,
    00187         SCE_KERNEL_ERROR_DMAC_OP_USED   = 0x800202c4,
    00188         SCE_KERNEL_ERROR_DMAC_OP_EMPTY  = 0x800202c5,
    00189         SCE_KERNEL_ERROR_DMAC_OP_ABORTED        = 0x800202c6,
    00190         SCE_KERNEL_ERROR_DMAC_OP_ERROR  = 0x800202c7,
    00191         SCE_KERNEL_ERROR_DMAC_CHANNEL_RESERVED  = 0x800202c8,
    00192         SCE_KERNEL_ERROR_DMAC_CHANNEL_EXCLUDED  = 0x800202c9,
    00193         SCE_KERNEL_ERROR_DMAC_PRIVILEGE_ADDRESS = 0x800202ca,
    00194         SCE_KERNEL_ERROR_DMAC_NO_ENOUGHSPACE    = 0x800202cb,
    00195         SCE_KERNEL_ERROR_DMAC_CHANNEL_NOT_ASSIGNED      = 0x800202cc,
    00196         SCE_KERNEL_ERROR_DMAC_CHILD_OPERATION   = 0x800202cd,
    00197         SCE_KERNEL_ERROR_DMAC_TOO_MUCH_SIZE     = 0x800202ce,
    00198         SCE_KERNEL_ERROR_DMAC_INVALID_ARGUMENT  = 0x800202cf,
    00199         SCE_KERNEL_ERROR_MFILE  = 0x80020320,
    00200         SCE_KERNEL_ERROR_NODEV  = 0x80020321,
    00201         SCE_KERNEL_ERROR_XDEV   = 0x80020322,
    00202         SCE_KERNEL_ERROR_BADF   = 0x80020323,
    00203         SCE_KERNEL_ERROR_INVAL  = 0x80020324,
    00204         SCE_KERNEL_ERROR_UNSUP  = 0x80020325,
    00205         SCE_KERNEL_ERROR_ALIAS_USED     = 0x80020326,
    00206         SCE_KERNEL_ERROR_CANNOT_MOUNT   = 0x80020327,
    00207         SCE_KERNEL_ERROR_DRIVER_DELETED = 0x80020328,
    00208         SCE_KERNEL_ERROR_ASYNC_BUSY     = 0x80020329,
    00209         SCE_KERNEL_ERROR_NOASYNC        = 0x8002032a,
    00210         SCE_KERNEL_ERROR_REGDEV = 0x8002032b,
    00211         SCE_KERNEL_ERROR_NOCWD  = 0x8002032c,
    00212         SCE_KERNEL_ERROR_NAMETOOLONG    = 0x8002032d,
    00213         SCE_KERNEL_ERROR_NXIO   = 0x800203e8,
    00214         SCE_KERNEL_ERROR_IO     = 0x800203e9,
    00215         SCE_KERNEL_ERROR_NOMEM  = 0x800203ea,
    00216         SCE_KERNEL_ERROR_STDIO_NOT_OPENED       = 0x800203eb,
    00217         SCE_KERNEL_ERROR_CACHE_ALIGNMENT        = 0x8002044c,
    00218         SCE_KERNEL_ERROR_ERRORMAX       = 0x8002044d,
    00219 };
    00220
    00221 #endif /* PSPKERROR_H */