WII_IPC_HLE: Update the "IOS basics" comment

The codebase has changed since it was written, so it needed
a small update.
This commit is contained in:
Léo Lam 2017-01-05 01:10:03 +01:00
parent 00268443ca
commit a15be890e1
1 changed files with 13 additions and 17 deletions

View File

@ -2,23 +2,19 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
/* // This is the main Wii IPC file that handles all incoming IPC requests and directs them
This is the main Wii IPC file that handles all incoming IPC calls and directs them // to the right function.
to the right function. //
// IPC basics (IOS' usage):
IPC basics (IOS' usage): // All IPC request handlers will write a return value to 0x04.
// Open: Device file descriptor or error code
Return values for file handles: All IPC calls will generate a return value to 0x04, // Close: IPC_SUCCESS
in case of success they are // Read: Bytes read
Open: DeviceID // Write: Bytes written
Close: 0 // Seek: Seek position
Read: Bytes read // Ioctl: Depends on the handler
Write: Bytes written // Ioctlv: Depends on the handler
Seek: Seek position // Replies may be sent immediately or asynchronously for ioctls and ioctlvs.
Ioctl: 0 (in addition to that there may be messages to the out buffers)
Ioctlv: 0 (in addition to that there may be messages to the out buffers)
They will also generate a true or false return for UpdateInterrupts() in WII_IPC.cpp.
*/
#include <deque> #include <deque>
#include <map> #include <map>