summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
diff options
context:
space:
mode:
authorChloe Marcec <dmarcecguzman@gmail.com>2020-11-10 05:56:41 +0100
committerChloe Marcec <dmarcecguzman@gmail.com>2020-11-10 05:57:36 +0100
commitfc4d692c503ca11a9339f0464520caf88d8474de (patch)
tree50702eaa2142d8fc39a2d7fb24d09fbed846e577 /src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
parentcore: Make nvservices more standardized (diff)
downloadyuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar
yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.gz
yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.bz2
yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.lz
yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.xz
yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.zst
yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
index e07d4d280..86ba3a4d1 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
@@ -18,10 +18,35 @@ public:
explicit nvhost_nvdec_common(Core::System& system, std::shared_ptr<nvmap> nvmap_dev);
~nvhost_nvdec_common() override;
+ /**
+ * Handles an ioctl1 request.
+ * @param command The ioctl command id.
+ * @param input A buffer containing the input data for the ioctl.
+ * @param output A buffer where the output data will be written to.
+ * @returns The result code of the ioctl.
+ */
virtual NvResult Ioctl1(Ioctl command, const std::vector<u8>& input,
std::vector<u8>& output) = 0;
+
+ /**
+ * Handles an ioctl2 request.
+ * @param command The ioctl command id.
+ * @param input A buffer containing the input data for the ioctl.
+ * @param inline_input A buffer containing the input data for the ioctl which has been inlined.
+ * @param output A buffer where the output data will be written to.
+ * @returns The result code of the ioctl.
+ */
virtual NvResult Ioctl2(Ioctl command, const std::vector<u8>& input,
const std::vector<u8>& inline_input, std::vector<u8>& output) = 0;
+
+ /**
+ * Handles an ioctl3 request.
+ * @param command The ioctl command id.
+ * @param input A buffer containing the input data for the ioctl.
+ * @param output A buffer where the output data will be written to.
+ * @param inline_output A buffer where the inlined output data will be written to.
+ * @returns The result code of the ioctl.
+ */
virtual NvResult Ioctl3(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output,
std::vector<u8>& inline_output) = 0;