summaryrefslogtreecommitdiff
path: root/include/user/io/devctl.h
diff options
context:
space:
mode:
authorReiko Asakura2020-07-21 15:10:11 -0400
committerReiko Asakura2020-07-21 15:10:11 -0400
commit16f304f919c7a23e615ca1c045fc98a53ae01824 (patch)
tree9716d989df32a044d8fad807eaf669b06946a025 /include/user/io/devctl.h
parentAdd doc and remove unneeded include (diff)
downloadvds-libraries-16f304f919c7a23e615ca1c045fc98a53ae01824.tar.gz
Refactor userland SceIofilemgr headers
Diffstat (limited to 'include/user/io/devctl.h')
-rw-r--r--include/user/io/devctl.h34
1 files changed, 1 insertions, 33 deletions
diff --git a/include/user/io/devctl.h b/include/user/io/devctl.h
index ec1d726..2b9c96a 100644
--- a/include/user/io/devctl.h
+++ b/include/user/io/devctl.h
@@ -1,7 +1,7 @@
#ifndef _PSP2_IO_DEVCTL_H_
#define _PSP2_IO_DEVCTL_H_
-#include <psp2/types.h>
+#include <psp2/kernel/iofilemgr.h>
#ifdef __cplusplus
extern "C" {
@@ -15,38 +15,6 @@ typedef struct SceIoDevInfo {
} SceIoDevInfo;
/**
- * Send a devctl command to a device.
- *
- * @par Example: Sending a simple command to a device
- * @code
- * SceIoDevInfo info;
- * sceIoDevctl("ux0:", 0x3001, NULL, 0, &info, sizeof(SceIoDevInfo));
- * @endcode
- *
- * @param dev - String for the device to send the devctl to (e.g. "ux0:")
- * @param cmd - The command to send to the device
- * @param indata - A data block to send to the device, if NULL sends no data
- * @param inlen - Length of indata, if 0 sends no data
- * @param outdata - A data block to receive the result of a command, if NULL receives no data
- * @param outlen - Length of outdata, if 0 receives no data
- * @return 0 on success, < 0 on error
- */
-int sceIoDevctl(const char *dev, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen);
-
-/**
- * Perform an ioctl on a device.
- *
- * @param fd - Opened file descriptor to ioctl to
- * @param cmd - The command to send to the device
- * @param indata - A data block to send to the device, if NULL sends no data
- * @param inlen - Length of indata, if 0 sends no data
- * @param outdata - A data block to receive the result of a command, if NULL receives no data
- * @param outlen - Length of outdata, if 0 receives no data
- * @return 0 on success, < 0 on error
- */
-int sceIoIoctl(SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen);
-
-/**
* Perform an ioctl on a device. (asynchronous)
*
* @param fd - Opened file descriptor to ioctl to