aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/gsp/gsp_lcd.cpp
blob: 4c155990b84faaecf587aab473bc0a5ef923e73a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include "common/archives.h"
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/gsp/gsp_lcd.h"

SERIALIZE_EXPORT_IMPL(Service::GSP::GSP_LCD)

namespace Service::GSP {

GSP_LCD::GSP_LCD() : ServiceFramework("gsp::Lcd") {
    static const FunctionInfo functions[] = {
        // clang-format off
        {0x000A, nullptr, "SetBrightnessRaw"},
        {0x000B, nullptr, "SetBrightness"},
        {0x000F, nullptr, "PowerOnAllBacklights"},
        {0x0010, nullptr, "PowerOffAllBacklights"},
        {0x0011, nullptr, "PowerOnBacklight"},
        {0x0012, nullptr, "PowerOffBacklight"},
        {0x0013, nullptr, "SetLedForceOff"},
        {0x0014, nullptr, "GetVendor"},
        {0x0015, nullptr, "GetBrightness"},
        // clang-format on
    };
    RegisterHandlers(functions);
};

} // namespace Service::GSP