mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
30 lines
685 B
C++
30 lines
685 B
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include "core/hle/service/nvdrv/nvdrv.h"
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service {
|
|
namespace Nvidia {
|
|
|
|
class NVDRV final : public ServiceFramework<NVDRV> {
|
|
public:
|
|
NVDRV(std::shared_ptr<Module> nvdrv, const char* name);
|
|
~NVDRV() = default;
|
|
|
|
private:
|
|
void Open(Kernel::HLERequestContext& ctx);
|
|
void Ioctl(Kernel::HLERequestContext& ctx);
|
|
void Initialize(Kernel::HLERequestContext& ctx);
|
|
|
|
std::shared_ptr<Module> nvdrv;
|
|
};
|
|
|
|
} // namespace Nvidia
|
|
} // namespace Service
|