diff options
author | Sunguk Lee | 2018-01-14 19:40:01 +0900 |
---|---|---|
committer | Sunguk Lee | 2018-01-15 01:36:00 +0900 |
commit | 8cb4208f52b5f94555955ce9cc2eff6b7fa5c2f7 (patch) | |
tree | 64df67b1afa8db795f6fbe31afa8aa8f668d9b95 | |
parent | Merge pull request #283 from d3m3vilurr/update-ctrl (diff) | |
download | vds-libraries-8cb4208f52b5f94555955ce9cc2eff6b7fa5c2f7.tar.gz |
Remove all NID mismatched definitions
anyway, we can't use these functions before finding right NID value.
but if we provide these & doc contains these info, end-programmers can
have confusion
Resolve #201
-rw-r--r-- | include/kernel/bt.h | 1 | ||||
-rw-r--r-- | include/kernel/kernel/threadmgr.h | 329 | ||||
-rw-r--r-- | include/kernel/udcd.h | 15 | ||||
-rw-r--r-- | include/user/kernel/threadmgr.h | 9 |
4 files changed, 0 insertions, 354 deletions
diff --git a/include/kernel/bt.h b/include/kernel/bt.h index 32dc38c..0892ef4 100644 --- a/include/kernel/bt.h +++ b/include/kernel/bt.h @@ -306,7 +306,6 @@ int sceBtHfpGetCurrentPhoneNumber(int r0, int r1, int r2, int r3); int sceBtHfpRequest(int r0, int r1, int r2, int r3); int sceBtHidGetReportDescriptor(unsigned int mac0, unsigned int mac1, void *buffer, unsigned int size); int sceBtHidTransfer(unsigned int mac0, unsigned int mac1, SceBtHidRequest *request); -int sceBtPairingOOB(int r0, int r1, int r2, int r3); int sceBtPushBip(int r0, int r1, int r2, int r3); int sceBtPushOpp(int r0, int r1, int r2, int r3); int sceBtReadEvent(SceBtEvent *events, int num_events); diff --git a/include/kernel/kernel/threadmgr.h b/include/kernel/kernel/threadmgr.h index 5bd1790..c702725 100644 --- a/include/kernel/kernel/threadmgr.h +++ b/include/kernel/kernel/threadmgr.h @@ -205,16 +205,6 @@ int sceKernelDelayThread(SceUInt delay); int sceKernelDelayThreadCB(SceUInt delay); /** - * Modify the attributes of the current thread. - * - * @param unknown - Set to 0. - * @param attr - The thread attributes to modify. One of ::SceThreadAttributes. - * - * @return < 0 on error. - */ -int sceKernelChangeCurrentThreadAttr(int unknown, SceUInt attr); - -/** * Change the threads current priority. * * @param thid - The ID of the thread (from ::sceKernelCreateThread or ::sceKernelGetThreadId) @@ -232,15 +222,6 @@ int sceKernelChangeCurrentThreadAttr(int unknown, SceUInt attr); int sceKernelChangeThreadPriority(SceUID thid, int priority); /** - * Release a thread in the wait state. - * - * @param thid - The UID of the thread. - * - * @return 0 on success, < 0 on error - */ -int sceKernelReleaseWaitThread(SceUID thid); - -/** * Get the current thread Id * * @return The thread id of the calling thread. @@ -255,22 +236,6 @@ int sceKernelGetThreadId(void); int sceKernelGetThreadCurrentPriority(void); /** - * Get the exit status of a thread. - * - * @param thid - The UID of the thread to check. - * - * @return The exit status - */ -int sceKernelGetThreadExitStatus(SceUID thid); - -/** - * Check the thread stack? - * - * @return Unknown. - */ -int sceKernelCheckThreadStack(void); - -/** * Get the free stack size for a thread. * * @param thid - The thread ID. Seem to take current thread @@ -280,35 +245,6 @@ int sceKernelCheckThreadStack(void); */ int sceKernelGetThreadStackFreeSize(SceUID thid); -/** - * Get the status information for the specified thread. - * - * @param thid - Id of the thread to get status - * @param info - Pointer to the info structure to receive the data. - * Note: The structures size field should be set to - * sizeof(SceKernelThreadInfo) before calling this function. - * - * @par Example: - * @code - * SceKernelThreadInfo status; - * status.size = sizeof(SceKernelThreadInfo); - * if(sceKernelGetThreadInfo(thid, &status) == 0) - * { Do something... } - * @endcode - * @return 0 if successful, otherwise the error code. - */ -int sceKernelGetThreadInfo(SceUID thid, SceKernelThreadInfo *info); - -/** - * Retrive the runtime status of a thread. - * - * @param thid - UID of the thread to retrieve status. - * @param status - Pointer to a ::SceKernelThreadRunStatus struct to receive the runtime status. - * - * @return 0 if successful, otherwise the error code. - */ -int sceKernelGetThreadRunStatus(SceUID thid, SceKernelThreadRunStatus *status); - /* Semaphores. */ @@ -399,22 +335,6 @@ int sceKernelSignalSema(SceUID semaid, int signal); int sceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout); /** - * Lock a semaphore and handle callbacks if necessary. - * - * @par Example: - * @code - * sceKernelWaitSemaCB(semaid, 1, 0); - * @endcode - * - * @param semaid - The sema id returned from ::sceKernelCreateSema - * @param signal - The value to wait for (i.e. if 1 then wait till reaches a signal state of 1) - * @param timeout - Timeout in microseconds (assumed). - * - * @return < 0 on error. - */ -int sceKernelWaitSemaCB(SceUID semaid, int signal, SceUInt *timeout); - -/** * Poll a semaphore. * * @param semaid - UID of the semaphore to poll. @@ -424,26 +344,6 @@ int sceKernelWaitSemaCB(SceUID semaid, int signal, SceUInt *timeout); */ int sceKernelPollSema(SceUID semaid, int signal); -/** - * Cancels a semaphore - * - * @param semaid - The sema id returned from ::sceKernelCreateSema - * @param setCount - The new lock count of the semaphore - * @param numWaitThreads - Number of threads waiting for the semaphore - * @return < 0 On error. - */ -int sceKernelCancelSema(SceUID semaid, int setCount, int *numWaitThreads); - -/** - * Retrieve information about a semaphore. - * - * @param semaid - UID of the semaphore to retrieve info for. - * @param info - Pointer to a ::SceKernelSemaInfo struct to receive the info. - * - * @return < 0 on error. - */ -int sceKernelGetSemaInfo(SceUID semaid, SceKernelSemaInfo *info); - /* Mutexes. */ @@ -502,22 +402,6 @@ SceUID sceKernelCreateMutex(const char *name, SceUInt attr, int initCount, SceKe int sceKernelDeleteMutex(SceUID mutexid); /** - * Open a mutex - * - * @param name - The name of the mutex to open - * @return Returns the value 0 if it's successful, otherwise -1 - */ -int sceKernelOpenMutex(const char *name); - -/** - * Close a mutex - * - * @param mutexid - The mutex id returned from ::sceKernelCreateMutex - * @return Returns the value 0 if it's successful, otherwise -1 - */ -int sceKernelCloseMutex(SceUID mutexid); - -/** * Lock a mutex * * @param mutexid - The mutex id returned from ::sceKernelCreateMutex @@ -528,16 +412,6 @@ int sceKernelCloseMutex(SceUID mutexid); int sceKernelLockMutex(SceUID mutexid, int lockCount, unsigned int *timeout); /** - * Lock a mutex and handle callbacks if necessary. - * - * @param mutexid - The mutex id returned from ::sceKernelCreateMutex - * @param lockCount - The value to increment to the lock count of the mutex - * @param timeout - Timeout in microseconds (assumed) - * @return < 0 On error. - */ -int sceKernelLockMutexCB(SceUID mutexid, int lockCount, unsigned int *timeout); - -/** * Try to lock a mutex (non-blocking) * * @param mutexid - The mutex id returned from ::sceKernelCreateMutex @@ -565,16 +439,6 @@ int sceKernelUnlockMutex(SceUID mutexid, int unlockCount); */ int sceKernelCancelMutex(SceUID mutexid, int newCount, int *numWaitThreads); -/** - * Retrieve information about a mutex. - * - * @param mutexid - UID of the mutex to retrieve info for. - * @param info - Pointer to a ::SceKernelMutexInfo struct to receive the info. - * - * @return < 0 on error. - */ -int sceKernelGetMutexInfo(SceUID mutexid, SceKernelMutexInfo *info); - typedef struct SceKernelLwMutexWork { SceInt64 data[4]; } SceKernelLwMutexWork; @@ -583,11 +447,6 @@ typedef struct SceKernelLwMutexOptParam { SceSize size; } SceKernelLwMutexOptParam; -int sceKernelCreateLwMutex(SceKernelLwMutexWork *pWork,const char *pName, unsigned int attr, int initCount, const SceKernelLwMutexOptParam *pOptParam); -int sceKernelDeleteLwMutex(SceKernelLwMutexWork *pWork); -int sceKernelLockLwMutex(SceKernelLwMutexWork *pWork, int lockCount, unsigned int *pTimeout); -int sceKernelUnlockLwMutex(SceKernelLwMutexWork *pWork, int unlockCount); - int sceKernelInitializeFastMutex(void *mutex, const char *name, int unk0, int unk1); int sceKernelLockFastMutex(void *mutex); int sceKernelUnlockFastMutex(void *mutex); @@ -711,16 +570,6 @@ int sceKernelWaitEventFlagCB(int evid, unsigned int bits, unsigned int wait, uns */ int sceKernelDeleteEventFlag(int evid); -/** - * Get the status of an event flag. - * - * @param event - The UID of the event. - * @param status - A pointer to a ::SceKernelEventFlagInfo structure. - * - * @return < 0 on error. - */ -int sceKernelGetEventFlagInfo(SceUID event, SceKernelEventFlagInfo *info); - /* Condition variables */ typedef struct SceKernelLwCondWork { @@ -731,11 +580,6 @@ typedef struct SceKernelLwCondOptParam { SceSize size; } SceKernelLwCondOptParam; -int sceKernelCreateLwCond(SceKernelLwCondWork *pWork, const char *pName, unsigned int attr, SceKernelLwMutexWork *pLwMutex, const SceKernelLwCondOptParam *pOptParam); -int sceKernelDeleteLwCond(SceKernelLwCondWork *pWork); -int sceKernelSignalLwCond(SceKernelLwCondWork *pWork); -int sceKernelWaitLwCond(SceKernelLwCondWork *pWork, unsigned int *pTimeout); - /* Callbacks. */ /** Callback function prototype */ @@ -779,17 +623,6 @@ typedef struct SceKernelCallbackInfo { int sceKernelCreateCallback(const char *name, unsigned int attr, SceKernelCallbackFunction func, void *arg); /** - * Gets the status of a specified callback. - * - * @param cb - The UID of the callback to retrieve info for. - * @param status - Pointer to a status structure. The size parameter should be - * initialized before calling. - * - * @return < 0 on error. - */ -int sceKernelGetCallbackInfo(SceUID cb, SceKernelCallbackInfo *infop); - -/** * Delete a callback * * @param cb - The UID of the specified callback @@ -834,168 +667,6 @@ int sceKernelGetCallbackCount(SceUID cb); int sceKernelCheckCallback(void); -/* Message pipes */ - -/** - * Create a message pipe - * - * @param name - Name of the pipe - * @param type - The type of memory attribute to use internally (set to 0x40) - * @param attr - Set to 12 - * @param bufSize - The size of the internal buffer in multiples of 0x1000 (4KB) - * @param opt - Message pipe options (set to NULL) - * - * @return The UID of the created pipe, < 0 on error - */ -SceUID sceKernelCreateMsgPipe(const char *name, int type, int attr, unsigned int bufSize, void *opt); - -/** - * Delete a message pipe - * - * @param uid - The UID of the pipe - * - * @return 0 on success, < 0 on error - */ -int sceKernelDeleteMsgPipe(SceUID uid); - -/** - * Send a message to a pipe - * - * @param uid - The UID of the pipe - * @param message - Pointer to the message - * @param size - Size of the message - * @param unk1 - Unknown - async vs sync? use 0 for sync - * @param unk2 - Unknown - use NULL - * @param timeout - Timeout for send in us. use NULL to wait indefinitely - * - * @return 0 on success, < 0 on error - */ -int sceKernelSendMsgPipe(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout); - -/** - * Send a message to a pipe (with callback) - * - * @param uid - The UID of the pipe - * @param message - Pointer to the message - * @param size - Size of the message - * @param unk1 - Unknown - async vs sync? use 0 for sync - * @param unk2 - Unknown - use NULL - * @param timeout - Timeout for send in us. use NULL to wait indefinitely - * - * @return 0 on success, < 0 on error - */ -int sceKernelSendMsgPipeCB(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout); - -/** - * Try to send a message to a pipe - * - * @param uid - The UID of the pipe - * @param message - Pointer to the message - * @param size - Size of the message - * @param unk1 - Unknown - use 0 - * @param unk2 - Unknown - use NULL - * - * @return 0 on success, < 0 on error - */ -int sceKernelTrySendMsgPipe(SceUID uid, void *message, unsigned int size, int unk1, void *unk2); - -/** - * Receive a message from a pipe - * - * @param uid - The UID of the pipe - * @param message - Pointer to the message - * @param size - Size of the message - * @param unk1 - Unknown - async vs sync? use 0 for sync - * @param unk2 - Unknown - use NULL - * @param timeout - Timeout for receive in us. use NULL to wait indefinitely - * - * @return 0 on success, < 0 on error - */ -int sceKernelReceiveMsgPipe(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout); - -/** - * Receive a message from a pipe (with callback) - * - * @param uid - The UID of the pipe - * @param message - Pointer to the message - * @param size - Size of the message - * @param unk1 - Unknown - async vs sync? use 0 for sync - * @param unk2 - Unknown - use NULL - * @param timeout - Timeout for receive in us. use NULL to wait indefinitely - * - * @return 0 on success, < 0 on error - */ -int sceKernelReceiveMsgPipeCB(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout); - -/** - * Receive a message from a pipe - * - * @param uid - The UID of the pipe - * @param message - Pointer to the message - * @param size - Size of the message - * @param unk1 - Unknown - use 0 - * @param unk2 - Unknown - use NULL - * - * @return 0 on success, < 0 on error - */ -int sceKernelTryReceiveMsgPipe(SceUID uid, void *message, unsigned int size, int unk1, void *unk2); - -/** - * Cancel a message pipe - * - * @param uid - UID of the pipe to cancel - * @param psend - Receive number of sending threads, NULL is valid - * @param precv - Receive number of receiving threads, NULL is valid - * - * @return 0 on success, < 0 on error - */ -int sceKernelCancelMsgPipe(SceUID uid, int *psend, int *precv); - -/** Message Pipe status info */ -typedef struct SceKernelMppInfo { - SceSize size; - SceUID mppId; // Needs confirmation - char name[32]; - SceUInt attr; - int bufSize; - int freeSize; - int numSendWaitThreads; - int numReceiveWaitThreads; -} SceKernelMppInfo; - -/** - * Get the status of a Message Pipe - * - * @param uid - The uid of the Message Pipe - * @param info - Pointer to a ::SceKernelMppInfo structure - * - * @return 0 on success, < 0 on error - */ -int sceKernelGetMsgPipeInfo(SceUID uid, SceKernelMppInfo *info); - - -/* Misc. */ - -typedef struct SceKernelSystemInfo { - SceSize size; - SceUInt32 activeCpuMask; - - struct { - SceKernelSysClock idleClock; - SceUInt32 comesOutOfIdleCount; - SceUInt32 threadSwitchCount; - } cpuInfo[4]; -} SceKernelSystemInfo; - -/** - * Get the system information - * - * @param info - Pointer to a ::SceKernelSystemInfo structure - * - * @return 0 on success, < 0 on error - */ -int sceKernelGetSystemInfo(SceKernelSystemInfo *info); - /* Misc. */ /** Threadmgr types */ diff --git a/include/kernel/udcd.h b/include/kernel/udcd.h index 8243833..c79f356 100644 --- a/include/kernel/udcd.h +++ b/include/kernel/udcd.h @@ -444,15 +444,6 @@ int sceUdcdGetDeviceInfo(SceUdcdDeviceInfo *devInfo); int sceUdcdGetDrvState(const char *driverName); /** - * Get the list of drivers - * @param flags - One or more ::SceUdcdStatusDriver - * @param list - points to the output list - * @param size - number of entries in the output list - * @return the number of drivers in the output or < 0 in case of error - */ -int sceUdcdGetDrvList(unsigned int flags, SceUdcdDriverName *list, int size); - -/** * Wait for USB state * @param state - combination of states (returned by ::sceUdcdGetDeviceState) * @param waitMode - one of the ::SceEventFlagWaitTypes @@ -462,12 +453,6 @@ int sceUdcdGetDrvList(unsigned int flags, SceUdcdDriverName *list, int size); int sceUdcdWaitState(unsigned int state, unsigned int waitMode, SceUInt *timeout); /** - * Cancel a pending sceUdcdWaitState - * @return 0 on success - */ -int sceUdcdWaitCancel(void); - -/** * Register a USB driver. * * @param drv - Pointer to a filled out USB driver diff --git a/include/user/kernel/threadmgr.h b/include/user/kernel/threadmgr.h index aa43e0c..6535d85 100644 --- a/include/user/kernel/threadmgr.h +++ b/include/user/kernel/threadmgr.h @@ -225,15 +225,6 @@ int sceKernelChangeCurrentThreadAttr(int unknown, SceUInt attr); int sceKernelChangeThreadPriority(SceUID thid, int priority); /** - * Release a thread in the wait state. - * - * @param thid - The UID of the thread. - * - * @return 0 on success, < 0 on error - */ -int sceKernelReleaseWaitThread(SceUID thid); - -/** * Get the current thread Id * * @return The thread id of the calling thread. |