From 9f45649bc1bd6cbdbe8b2c4233726dae47dae480 Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Thu, 23 Jul 2020 15:34:54 -0400 Subject: Add {,k}sceIo{Io,Dev}ctlAsync prototypes --- include/user/kernel/iofilemgr.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'include/user/kernel') diff --git a/include/user/kernel/iofilemgr.h b/include/user/kernel/iofilemgr.h index 87ad029..240705b 100644 --- a/include/user/kernel/iofilemgr.h +++ b/include/user/kernel/iofilemgr.h @@ -60,6 +60,16 @@ extern "C" { #define SCE_IO_MAX_PATH_BUFFER_SIZE (1024) /* maximum path buffer size */ #define SCE_IO_MAX_PATH_LENGTH (200) /* maximum path length */ +/** + * May be used with sceIoDevctl() + */ +typedef struct SceIoDevInfo { + SceOff max_size; + SceOff free_size; + SceSize cluster_size; + void *unk; +} SceIoDevInfo; + /** * Remove directory entry * @@ -418,6 +428,34 @@ SceUID sceIoSyncByFdAsync(SceUID fd, int flag, SceIoAsyncParam* asyncParam); */ SceUID sceIoSyncAsync(const char* device, int flag, SceIoAsyncParam* asyncParam); +/** + * This function is unimplemented. + * + * @return SCE_KERNEL_ERROR_UNSUP (0x80020004) + */ +int sceIoIoctlAsync( + SceUID fd, + int cmd, + const void *argp, + SceSize arglen, + void *bufp, + SceSize buflen, + SceIoAsyncParam* asyncParam); + +/** + * This function is unimplemented. + * + * @return SCE_KERNEL_ERROR_UNSUP (0x80020004) + */ +int sceIoDevctlAsync( + const char *devname, + int cmd, + const void *arg, + SceSize arglen, + void *bufp, + SceSize buflen, + SceIoAsyncParam* asyncParam); + /*--------------------IO Priority--------------------*/ /*Valid priority values range: 1 (highest) - 15 (lowest). Default priority value is 14*/ -- cgit v1.2.3