diff options
author | Rinnegatamante | 2017-04-11 03:28:43 +0200 |
---|---|---|
committer | devnoname120 | 2017-04-11 03:28:43 +0200 |
commit | 7a5841e1e8899312c589f9de6e96ab79927b66c0 (patch) | |
tree | e0257b2b02c268872e15f6296ac02378a1060dde /include/kernel/io | |
parent | Typedef udcd structures (diff) | |
download | vds-libraries-7a5841e1e8899312c589f9de6e96ab79927b66c0.tar.gz |
Added missing kernel IO headers. (#160)
* Added missing kernel IO headers.
Added missing kernel IO headers.
Diffstat (limited to 'include/kernel/io')
-rw-r--r-- | include/kernel/io/devctl.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/kernel/io/devctl.h b/include/kernel/io/devctl.h new file mode 100644 index 0000000..706778e --- /dev/null +++ b/include/kernel/io/devctl.h @@ -0,0 +1,33 @@ +#ifndef _PSP2_IO_DEVCTRL_H_ +#define _PSP2_IO_DEVCTRL_H_ + +#include <psp2/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Send a devctl command to a device. + * + * @par Example: Sending a simple command to a device + * @code + * sceIoDevctl("ux0:", 0x3001, NULL, 0, outdata, 0x18); + * @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); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_IO_DEVCTRL_H_ */ + |