aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/ir/ir_u.cpp
diff options
context:
space:
mode:
authorGravatar purpasmart96 <kanzoconfigz@hotmail.com>2015-03-27 16:51:54 -0700
committerGravatar purpasmart96 <kanzoconfigz@hotmail.com>2015-04-03 19:36:03 -0700
commitd6c9af600fba67de7efaa1128b000a06c3b6f230 (patch)
tree77c8716aa0332664e9d156cbaf95231861110f4f /src/core/hle/service/ir/ir_u.cpp
parent3fd2cc566b38d34c587140ce3dbc580f85e34717 (diff)
IR: Move The IR services to their own folder and implement "GetHandles"
Diffstat (limited to 'src/core/hle/service/ir/ir_u.cpp')
-rw-r--r--src/core/hle/service/ir/ir_u.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/core/hle/service/ir/ir_u.cpp b/src/core/hle/service/ir/ir_u.cpp
new file mode 100644
index 00000000..1b1e3078
--- /dev/null
+++ b/src/core/hle/service/ir/ir_u.cpp
@@ -0,0 +1,38 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/hle.h"
+#include "core/hle/service/ir/ir.h"
+#include "core/hle/service/ir/ir_u.h"
+
+namespace Service {
+namespace IR {
+
+const Interface::FunctionInfo FunctionTable[] = {
+ {0x00010000, nullptr, "Initialize"},
+ {0x00020000, nullptr, "Shutdown"},
+ {0x00030042, nullptr, "StartSendTransfer"},
+ {0x00040000, nullptr, "WaitSendTransfer"},
+ {0x000500C2, nullptr, "StartRecvTransfer"},
+ {0x00060000, nullptr, "WaitRecvTransfer"},
+ {0x00070080, nullptr, "GetRecvTransferCount"},
+ {0x00080000, nullptr, "GetSendState"},
+ {0x00090040, nullptr, "SetBitRate"},
+ {0x000A0000, nullptr, "GetBitRate"},
+ {0x000B0040, nullptr, "SetIRLEDState"},
+ {0x000C0000, nullptr, "GetIRLEDRecvState"},
+ {0x000D0000, nullptr, "GetSendFinishedEvent"},
+ {0x000E0000, nullptr, "GetRecvFinishedEvent"},
+ {0x000F0000, nullptr, "GetTransferState"},
+ {0x00100000, nullptr, "GetErrorStatus"},
+ {0x00110040, nullptr, "SetSleepModeActive"},
+ {0x00120040, nullptr, "SetSleepModeState"},
+};
+
+IR_U_Interface::IR_U_Interface() {
+ Register(FunctionTable);
+}
+
+} // namespace IR
+} // namespace Service