summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2022-01-21 16:31:57 -0500
committerGravatar Lioncash2022-01-21 16:31:57 -0500
commit8dd6dc9a29b876c0e8039941120914d3cde8207f (patch)
tree269a2367110da5e46c14477e56a70fcaf7cad232
parentservice/set: Update function tables (diff)
downloadyuzu-8dd6dc9a29b876c0e8039941120914d3cde8207f.tar.gz
yuzu-8dd6dc9a29b876c0e8039941120914d3cde8207f.tar.xz
yuzu-8dd6dc9a29b876c0e8039941120914d3cde8207f.zip
service/usb: Update function tables
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/usb/usb.cpp42
1 files changed, 15 insertions, 27 deletions
diff --git a/src/core/hle/service/usb/usb.cpp b/src/core/hle/service/usb/usb.cpp
index 502dfbb4a..0747c33cd 100644
--- a/src/core/hle/service/usb/usb.cpp
+++ b/src/core/hle/service/usb/usb.cpp
@@ -17,34 +17,9 @@ public:
17 explicit IDsInterface(Core::System& system_) : ServiceFramework{system_, "IDsInterface"} { 17 explicit IDsInterface(Core::System& system_) : ServiceFramework{system_, "IDsInterface"} {
18 // clang-format off 18 // clang-format off
19 static const FunctionInfo functions[] = { 19 static const FunctionInfo functions[] = {
20 {0, nullptr, "GetDsEndpoint"},
21 {1, nullptr, "GetSetupEvent"},
22 {2, nullptr, "Unknown2"},
23 {3, nullptr, "EnableInterface"},
24 {4, nullptr, "DisableInterface"},
25 {5, nullptr, "CtrlInPostBufferAsync"},
26 {6, nullptr, "CtrlOutPostBufferAsync"},
27 {7, nullptr, "GetCtrlInCompletionEvent"},
28 {8, nullptr, "GetCtrlInReportData"},
29 {9, nullptr, "GetCtrlOutCompletionEvent"},
30 {10, nullptr, "GetCtrlOutReportData"},
31 {11, nullptr, "StallCtrl"},
32 {12, nullptr, "AppendConfigurationData"},
33 };
34 // clang-format on
35
36 RegisterHandlers(functions);
37 }
38};
39
40class USB_DS final : public ServiceFramework<USB_DS> {
41public:
42 explicit USB_DS(Core::System& system_) : ServiceFramework{system_, "usb:ds"} {
43 // clang-format off
44 static const FunctionInfo functions[] = {
45 {0, nullptr, "BindDevice"}, 20 {0, nullptr, "BindDevice"},
46 {1, nullptr, "BindClientProcess"}, 21 {1, nullptr, "BindClientProcess"},
47 {2, nullptr, "GetDsInterface"}, 22 {2, nullptr, "AddInterface"},
48 {3, nullptr, "GetStateChangeEvent"}, 23 {3, nullptr, "GetStateChangeEvent"},
49 {4, nullptr, "GetState"}, 24 {4, nullptr, "GetState"},
50 {5, nullptr, "ClearDeviceData"}, 25 {5, nullptr, "ClearDeviceData"},
@@ -62,6 +37,19 @@ public:
62 } 37 }
63}; 38};
64 39
40class USB_DS final : public ServiceFramework<USB_DS> {
41public:
42 explicit USB_DS(Core::System& system_) : ServiceFramework{system_, "usb:ds"} {
43 // clang-format off
44 static const FunctionInfo functions[] = {
45 {0, nullptr, "OpenDsService"},
46 };
47 // clang-format on
48
49 RegisterHandlers(functions);
50 }
51};
52
65class IClientEpSession final : public ServiceFramework<IClientEpSession> { 53class IClientEpSession final : public ServiceFramework<IClientEpSession> {
66public: 54public:
67 explicit IClientEpSession(Core::System& system_) 55 explicit IClientEpSession(Core::System& system_)
@@ -120,7 +108,7 @@ public:
120 {5, nullptr, "DestroyInterfaceAvailableEvent"}, 108 {5, nullptr, "DestroyInterfaceAvailableEvent"},
121 {6, nullptr, "GetInterfaceStateChangeEvent"}, 109 {6, nullptr, "GetInterfaceStateChangeEvent"},
122 {7, nullptr, "AcquireUsbIf"}, 110 {7, nullptr, "AcquireUsbIf"},
123 {8, nullptr, "Unknown8"}, 111 {8, nullptr, "ResetDevice"},
124 }; 112 };
125 // clang-format on 113 // clang-format on
126 114