From 6306655665c097bc63f7fac7ffcb9907a98abebe Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 29 May 2018 22:39:31 -0400 Subject: nvhost_ctrl: Stub out IocCtrlEventRegister. --- src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | 8 ++++++++ src/core/hle/service/nvdrv/devices/nvhost_ctrl.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'src/core') diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp index a2d3584e5..7872d1e09 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp @@ -19,6 +19,8 @@ u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector& input, std::vector< return IocCtrlEventWait(input, output, false); case IoctlCommand::IocCtrlEventWaitAsyncCommand: return IocCtrlEventWait(input, output, true); + case IoctlCommand::IocCtrlEventRegisterCommand: + return IocCtrlEventRegister(input, output); } UNIMPLEMENTED_MSG("Unimplemented ioctl"); return 0; @@ -61,4 +63,10 @@ u32 nvhost_ctrl::IocCtrlEventWait(const std::vector& input, std::vector& return 0; } +u32 nvhost_ctrl::IocCtrlEventRegister(const std::vector& input, std::vector& output) { + NGLOG_WARNING(Service_NVDRV, "(STUBBED) called"); + // TODO(bunnei): Implement this. + return 0; +} + } // namespace Service::Nvidia::Devices diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h index b2a5de65f..090261a60 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h @@ -135,6 +135,8 @@ private: u32 NvOsGetConfigU32(const std::vector& input, std::vector& output); u32 IocCtrlEventWait(const std::vector& input, std::vector& output, bool is_async); + + u32 IocCtrlEventRegister(const std::vector& input, std::vector& output); }; } // namespace Service::Nvidia::Devices -- cgit v1.2.3