summaryrefslogtreecommitdiff
path: root/src/core/hle/service/lbl
diff options
context:
space:
mode:
authorGravatar Liam2023-02-19 14:42:12 -0500
committerGravatar Liam2023-03-01 10:39:49 -0500
commit65be230fdda302b25447f2f09b06e3238bd09e79 (patch)
tree68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/lbl
parentsm:: remove unused member (diff)
downloadyuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz
yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz
yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/lbl')
-rw-r--r--src/core/hle/service/lbl/lbl.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/core/hle/service/lbl/lbl.cpp b/src/core/hle/service/lbl/lbl.cpp
index 3f3c68d80..98a79365d 100644
--- a/src/core/hle/service/lbl/lbl.cpp
+++ b/src/core/hle/service/lbl/lbl.cpp
@@ -5,7 +5,7 @@
5#include <memory> 5#include <memory>
6 6
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8#include "core/hle/ipc_helpers.h" 8#include "core/hle/service/ipc_helpers.h"
9#include "core/hle/service/lbl/lbl.h" 9#include "core/hle/service/lbl/lbl.h"
10#include "core/hle/service/server_manager.h" 10#include "core/hle/service/server_manager.h"
11#include "core/hle/service/service.h" 11#include "core/hle/service/service.h"
@@ -60,7 +60,7 @@ private:
60 On = 1, 60 On = 1,
61 }; 61 };
62 62
63 void SetCurrentBrightnessSetting(Kernel::HLERequestContext& ctx) { 63 void SetCurrentBrightnessSetting(HLERequestContext& ctx) {
64 IPC::RequestParser rp{ctx}; 64 IPC::RequestParser rp{ctx};
65 auto brightness = rp.Pop<float>(); 65 auto brightness = rp.Pop<float>();
66 66
@@ -78,7 +78,7 @@ private:
78 rb.Push(ResultSuccess); 78 rb.Push(ResultSuccess);
79 } 79 }
80 80
81 void GetCurrentBrightnessSetting(Kernel::HLERequestContext& ctx) { 81 void GetCurrentBrightnessSetting(HLERequestContext& ctx) {
82 auto brightness = current_brightness; 82 auto brightness = current_brightness;
83 if (!std::isfinite(brightness)) { 83 if (!std::isfinite(brightness)) {
84 LOG_ERROR(Service_LBL, "Brightness is infinite!"); 84 LOG_ERROR(Service_LBL, "Brightness is infinite!");
@@ -92,7 +92,7 @@ private:
92 rb.Push(brightness); 92 rb.Push(brightness);
93 } 93 }
94 94
95 void SwitchBacklightOn(Kernel::HLERequestContext& ctx) { 95 void SwitchBacklightOn(HLERequestContext& ctx) {
96 IPC::RequestParser rp{ctx}; 96 IPC::RequestParser rp{ctx};
97 const auto fade_time = rp.Pop<u64_le>(); 97 const auto fade_time = rp.Pop<u64_le>();
98 LOG_WARNING(Service_LBL, "(STUBBED) called, fade_time={}", fade_time); 98 LOG_WARNING(Service_LBL, "(STUBBED) called, fade_time={}", fade_time);
@@ -103,7 +103,7 @@ private:
103 rb.Push(ResultSuccess); 103 rb.Push(ResultSuccess);
104 } 104 }
105 105
106 void SwitchBacklightOff(Kernel::HLERequestContext& ctx) { 106 void SwitchBacklightOff(HLERequestContext& ctx) {
107 IPC::RequestParser rp{ctx}; 107 IPC::RequestParser rp{ctx};
108 const auto fade_time = rp.Pop<u64_le>(); 108 const auto fade_time = rp.Pop<u64_le>();
109 LOG_WARNING(Service_LBL, "(STUBBED) called, fade_time={}", fade_time); 109 LOG_WARNING(Service_LBL, "(STUBBED) called, fade_time={}", fade_time);
@@ -114,7 +114,7 @@ private:
114 rb.Push(ResultSuccess); 114 rb.Push(ResultSuccess);
115 } 115 }
116 116
117 void GetBacklightSwitchStatus(Kernel::HLERequestContext& ctx) { 117 void GetBacklightSwitchStatus(HLERequestContext& ctx) {
118 LOG_DEBUG(Service_LBL, "called"); 118 LOG_DEBUG(Service_LBL, "called");
119 119
120 IPC::ResponseBuilder rb{ctx, 3}; 120 IPC::ResponseBuilder rb{ctx, 3};
@@ -123,7 +123,7 @@ private:
123 : BacklightSwitchStatus::Off); 123 : BacklightSwitchStatus::Off);
124 } 124 }
125 125
126 void EnableDimming(Kernel::HLERequestContext& ctx) { 126 void EnableDimming(HLERequestContext& ctx) {
127 LOG_DEBUG(Service_LBL, "called"); 127 LOG_DEBUG(Service_LBL, "called");
128 128
129 dimming = true; 129 dimming = true;
@@ -132,7 +132,7 @@ private:
132 rb.Push(ResultSuccess); 132 rb.Push(ResultSuccess);
133 } 133 }
134 134
135 void DisableDimming(Kernel::HLERequestContext& ctx) { 135 void DisableDimming(HLERequestContext& ctx) {
136 LOG_DEBUG(Service_LBL, "called"); 136 LOG_DEBUG(Service_LBL, "called");
137 137
138 dimming = false; 138 dimming = false;
@@ -141,7 +141,7 @@ private:
141 rb.Push(ResultSuccess); 141 rb.Push(ResultSuccess);
142 } 142 }
143 143
144 void IsDimmingEnabled(Kernel::HLERequestContext& ctx) { 144 void IsDimmingEnabled(HLERequestContext& ctx) {
145 LOG_DEBUG(Service_LBL, "called"); 145 LOG_DEBUG(Service_LBL, "called");
146 146
147 IPC::ResponseBuilder rb{ctx, 3}; 147 IPC::ResponseBuilder rb{ctx, 3};
@@ -149,7 +149,7 @@ private:
149 rb.Push(dimming); 149 rb.Push(dimming);
150 } 150 }
151 151
152 void EnableAutoBrightnessControl(Kernel::HLERequestContext& ctx) { 152 void EnableAutoBrightnessControl(HLERequestContext& ctx) {
153 LOG_DEBUG(Service_LBL, "called"); 153 LOG_DEBUG(Service_LBL, "called");
154 auto_brightness = true; 154 auto_brightness = true;
155 update_instantly = true; 155 update_instantly = true;
@@ -158,7 +158,7 @@ private:
158 rb.Push(ResultSuccess); 158 rb.Push(ResultSuccess);
159 } 159 }
160 160
161 void DisableAutoBrightnessControl(Kernel::HLERequestContext& ctx) { 161 void DisableAutoBrightnessControl(HLERequestContext& ctx) {
162 LOG_DEBUG(Service_LBL, "called"); 162 LOG_DEBUG(Service_LBL, "called");
163 auto_brightness = false; 163 auto_brightness = false;
164 164
@@ -166,7 +166,7 @@ private:
166 rb.Push(ResultSuccess); 166 rb.Push(ResultSuccess);
167 } 167 }
168 168
169 void IsAutoBrightnessControlEnabled(Kernel::HLERequestContext& ctx) { 169 void IsAutoBrightnessControlEnabled(HLERequestContext& ctx) {
170 LOG_DEBUG(Service_LBL, "called"); 170 LOG_DEBUG(Service_LBL, "called");
171 171
172 IPC::ResponseBuilder rb{ctx, 3}; 172 IPC::ResponseBuilder rb{ctx, 3};
@@ -174,7 +174,7 @@ private:
174 rb.Push(auto_brightness); 174 rb.Push(auto_brightness);
175 } 175 }
176 176
177 void SetAmbientLightSensorValue(Kernel::HLERequestContext& ctx) { 177 void SetAmbientLightSensorValue(HLERequestContext& ctx) {
178 IPC::RequestParser rp{ctx}; 178 IPC::RequestParser rp{ctx};
179 const auto light_value = rp.Pop<float>(); 179 const auto light_value = rp.Pop<float>();
180 180
@@ -186,7 +186,7 @@ private:
186 rb.Push(ResultSuccess); 186 rb.Push(ResultSuccess);
187 } 187 }
188 188
189 void GetAmbientLightSensorValue(Kernel::HLERequestContext& ctx) { 189 void GetAmbientLightSensorValue(HLERequestContext& ctx) {
190 LOG_DEBUG(Service_LBL, "called"); 190 LOG_DEBUG(Service_LBL, "called");
191 191
192 IPC::ResponseBuilder rb{ctx, 3}; 192 IPC::ResponseBuilder rb{ctx, 3};
@@ -194,7 +194,7 @@ private:
194 rb.Push(ambient_light_value); 194 rb.Push(ambient_light_value);
195 } 195 }
196 196
197 void SetBrightnessReflectionDelayLevel(Kernel::HLERequestContext& ctx) { 197 void SetBrightnessReflectionDelayLevel(HLERequestContext& ctx) {
198 // This is Intentional, this function does absolutely nothing 198 // This is Intentional, this function does absolutely nothing
199 LOG_DEBUG(Service_LBL, "called"); 199 LOG_DEBUG(Service_LBL, "called");
200 200
@@ -202,7 +202,7 @@ private:
202 rb.Push(ResultSuccess); 202 rb.Push(ResultSuccess);
203 } 203 }
204 204
205 void GetBrightnessReflectionDelayLevel(Kernel::HLERequestContext& ctx) { 205 void GetBrightnessReflectionDelayLevel(HLERequestContext& ctx) {
206 // This is intentional, the function is hard coded to return 0.0f on hardware 206 // This is intentional, the function is hard coded to return 0.0f on hardware
207 LOG_DEBUG(Service_LBL, "called"); 207 LOG_DEBUG(Service_LBL, "called");
208 208
@@ -211,7 +211,7 @@ private:
211 rb.Push(0.0f); 211 rb.Push(0.0f);
212 } 212 }
213 213
214 void SetCurrentBrightnessMapping(Kernel::HLERequestContext& ctx) { 214 void SetCurrentBrightnessMapping(HLERequestContext& ctx) {
215 // This is Intentional, this function does absolutely nothing 215 // This is Intentional, this function does absolutely nothing
216 LOG_DEBUG(Service_LBL, "called"); 216 LOG_DEBUG(Service_LBL, "called");
217 217
@@ -219,7 +219,7 @@ private:
219 rb.Push(ResultSuccess); 219 rb.Push(ResultSuccess);
220 } 220 }
221 221
222 void GetCurrentBrightnessMapping(Kernel::HLERequestContext& ctx) { 222 void GetCurrentBrightnessMapping(HLERequestContext& ctx) {
223 // This is Intentional, this function does absolutely nothing 223 // This is Intentional, this function does absolutely nothing
224 LOG_DEBUG(Service_LBL, "called"); 224 LOG_DEBUG(Service_LBL, "called");
225 225
@@ -228,7 +228,7 @@ private:
228 // This function is suppose to return something but it seems like it doesn't 228 // This function is suppose to return something but it seems like it doesn't
229 } 229 }
230 230
231 void SetCurrentAmbientLightSensorMapping(Kernel::HLERequestContext& ctx) { 231 void SetCurrentAmbientLightSensorMapping(HLERequestContext& ctx) {
232 // This is Intentional, this function does absolutely nothing 232 // This is Intentional, this function does absolutely nothing
233 LOG_DEBUG(Service_LBL, "called"); 233 LOG_DEBUG(Service_LBL, "called");
234 234
@@ -236,7 +236,7 @@ private:
236 rb.Push(ResultSuccess); 236 rb.Push(ResultSuccess);
237 } 237 }
238 238
239 void GetCurrentAmbientLightSensorMapping(Kernel::HLERequestContext& ctx) { 239 void GetCurrentAmbientLightSensorMapping(HLERequestContext& ctx) {
240 // This is Intentional, this function does absolutely nothing 240 // This is Intentional, this function does absolutely nothing
241 LOG_DEBUG(Service_LBL, "called"); 241 LOG_DEBUG(Service_LBL, "called");
242 242
@@ -245,7 +245,7 @@ private:
245 // This function is suppose to return something but it seems like it doesn't 245 // This function is suppose to return something but it seems like it doesn't
246 } 246 }
247 247
248 void IsAmbientLightSensorAvailable(Kernel::HLERequestContext& ctx) { 248 void IsAmbientLightSensorAvailable(HLERequestContext& ctx) {
249 LOG_WARNING(Service_LBL, "(STUBBED) called"); 249 LOG_WARNING(Service_LBL, "(STUBBED) called");
250 IPC::ResponseBuilder rb{ctx, 3}; 250 IPC::ResponseBuilder rb{ctx, 3};
251 rb.Push(ResultSuccess); 251 rb.Push(ResultSuccess);
@@ -253,7 +253,7 @@ private:
253 rb.Push(true); 253 rb.Push(true);
254 } 254 }
255 255
256 void SetCurrentBrightnessSettingForVrMode(Kernel::HLERequestContext& ctx) { 256 void SetCurrentBrightnessSettingForVrMode(HLERequestContext& ctx) {
257 IPC::RequestParser rp{ctx}; 257 IPC::RequestParser rp{ctx};
258 auto brightness = rp.Pop<float>(); 258 auto brightness = rp.Pop<float>();
259 259
@@ -270,7 +270,7 @@ private:
270 rb.Push(ResultSuccess); 270 rb.Push(ResultSuccess);
271 } 271 }
272 272
273 void GetCurrentBrightnessSettingForVrMode(Kernel::HLERequestContext& ctx) { 273 void GetCurrentBrightnessSettingForVrMode(HLERequestContext& ctx) {
274 auto brightness = current_vr_brightness; 274 auto brightness = current_vr_brightness;
275 if (!std::isfinite(brightness)) { 275 if (!std::isfinite(brightness)) {
276 LOG_ERROR(Service_LBL, "Brightness is infinite!"); 276 LOG_ERROR(Service_LBL, "Brightness is infinite!");
@@ -284,7 +284,7 @@ private:
284 rb.Push(brightness); 284 rb.Push(brightness);
285 } 285 }
286 286
287 void EnableVrMode(Kernel::HLERequestContext& ctx) { 287 void EnableVrMode(HLERequestContext& ctx) {
288 LOG_DEBUG(Service_LBL, "called"); 288 LOG_DEBUG(Service_LBL, "called");
289 289
290 IPC::ResponseBuilder rb{ctx, 2}; 290 IPC::ResponseBuilder rb{ctx, 2};
@@ -293,7 +293,7 @@ private:
293 vr_mode_enabled = true; 293 vr_mode_enabled = true;
294 } 294 }
295 295
296 void DisableVrMode(Kernel::HLERequestContext& ctx) { 296 void DisableVrMode(HLERequestContext& ctx) {
297 LOG_DEBUG(Service_LBL, "called"); 297 LOG_DEBUG(Service_LBL, "called");
298 298
299 IPC::ResponseBuilder rb{ctx, 2}; 299 IPC::ResponseBuilder rb{ctx, 2};
@@ -302,7 +302,7 @@ private:
302 vr_mode_enabled = false; 302 vr_mode_enabled = false;
303 } 303 }
304 304
305 void IsVrModeEnabled(Kernel::HLERequestContext& ctx) { 305 void IsVrModeEnabled(HLERequestContext& ctx) {
306 LOG_DEBUG(Service_LBL, "called"); 306 LOG_DEBUG(Service_LBL, "called");
307 307
308 IPC::ResponseBuilder rb{ctx, 3}; 308 IPC::ResponseBuilder rb{ctx, 3};