2018-01-13 21:22:39 +00:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2018-01-08 02:25:57 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2018-01-09 15:41:13 +00:00
|
|
|
#include <string>
|
2018-01-09 02:30:22 +00:00
|
|
|
#include "core/hle/service/nvdrv/nvdrv.h"
|
2018-01-09 15:41:13 +00:00
|
|
|
#include "core/hle/service/service.h"
|
2018-01-08 02:25:57 +00:00
|
|
|
|
|
|
|
namespace Service {
|
2018-01-15 22:39:00 +00:00
|
|
|
namespace Nvidia {
|
2018-01-09 15:41:13 +00:00
|
|
|
|
2018-01-15 23:30:49 +00:00
|
|
|
class NVDRV final : public ServiceFramework<NVDRV> {
|
2018-01-08 02:25:57 +00:00
|
|
|
public:
|
2018-01-15 23:30:49 +00:00
|
|
|
NVDRV(std::shared_ptr<Module> nvdrv, const char* name);
|
|
|
|
~NVDRV() = default;
|
2018-01-08 02:25:57 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Open(Kernel::HLERequestContext& ctx);
|
|
|
|
void Ioctl(Kernel::HLERequestContext& ctx);
|
|
|
|
void Initialize(Kernel::HLERequestContext& ctx);
|
|
|
|
|
2018-01-15 22:39:00 +00:00
|
|
|
std::shared_ptr<Module> nvdrv;
|
2018-01-08 02:25:57 +00:00
|
|
|
};
|
|
|
|
|
2018-01-15 22:39:00 +00:00
|
|
|
} // namespace Nvidia
|
2018-01-08 02:25:57 +00:00
|
|
|
} // namespace Service
|