diff options
| author | 2018-05-29 22:39:31 -0400 | |
|---|---|---|
| committer | 2018-05-29 22:39:31 -0400 | |
| commit | 6306655665c097bc63f7fac7ffcb9907a98abebe (patch) | |
| tree | 4ce33b360e1625775254574fe278c8a075a2bf62 /src | |
| parent | nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand. (diff) | |
| download | yuzu-6306655665c097bc63f7fac7ffcb9907a98abebe.tar.gz yuzu-6306655665c097bc63f7fac7ffcb9907a98abebe.tar.xz yuzu-6306655665c097bc63f7fac7ffcb9907a98abebe.zip | |
nvhost_ctrl: Stub out IocCtrlEventRegister.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl.h | 2 |
2 files changed, 10 insertions, 0 deletions
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<u8>& input, std::vector< | |||
| 19 | return IocCtrlEventWait(input, output, false); | 19 | return IocCtrlEventWait(input, output, false); |
| 20 | case IoctlCommand::IocCtrlEventWaitAsyncCommand: | 20 | case IoctlCommand::IocCtrlEventWaitAsyncCommand: |
| 21 | return IocCtrlEventWait(input, output, true); | 21 | return IocCtrlEventWait(input, output, true); |
| 22 | case IoctlCommand::IocCtrlEventRegisterCommand: | ||
| 23 | return IocCtrlEventRegister(input, output); | ||
| 22 | } | 24 | } |
| 23 | UNIMPLEMENTED_MSG("Unimplemented ioctl"); | 25 | UNIMPLEMENTED_MSG("Unimplemented ioctl"); |
| 24 | return 0; | 26 | return 0; |
| @@ -61,4 +63,10 @@ u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& | |||
| 61 | return 0; | 63 | return 0; |
| 62 | } | 64 | } |
| 63 | 65 | ||
| 66 | u32 nvhost_ctrl::IocCtrlEventRegister(const std::vector<u8>& input, std::vector<u8>& output) { | ||
| 67 | NGLOG_WARNING(Service_NVDRV, "(STUBBED) called"); | ||
| 68 | // TODO(bunnei): Implement this. | ||
| 69 | return 0; | ||
| 70 | } | ||
| 71 | |||
| 64 | } // namespace Service::Nvidia::Devices | 72 | } // 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: | |||
| 135 | u32 NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output); | 135 | u32 NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output); |
| 136 | 136 | ||
| 137 | u32 IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output, bool is_async); | 137 | u32 IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output, bool is_async); |
| 138 | |||
| 139 | u32 IocCtrlEventRegister(const std::vector<u8>& input, std::vector<u8>& output); | ||
| 138 | }; | 140 | }; |
| 139 | 141 | ||
| 140 | } // namespace Service::Nvidia::Devices | 142 | } // namespace Service::Nvidia::Devices |