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