diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-08 09:11:34 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-10 05:57:35 +0100 |
commit | 31c12de0fecec5889020191ca6de0b7fbf8c51ba (patch) | |
tree | 530f9569b0e145f83b6e876886698403a73b02f7 /src/core/hle/service/nvdrv/devices/nvdevice.h | |
parent | Merge pull request #4909 from lioncash/interrupt (diff) | |
download | yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.tar yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.tar.gz yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.tar.bz2 yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.tar.lz yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.tar.xz yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.tar.zst yuzu-31c12de0fecec5889020191ca6de0b7fbf8c51ba.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvdevice.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.h index 0240d6643..b86805d26 100644 --- a/src/core/hle/service/nvdrv/devices/nvdevice.h +++ b/src/core/hle/service/nvdrv/devices/nvdevice.h @@ -24,25 +24,12 @@ public: explicit nvdevice(Core::System& system) : system{system} {} virtual ~nvdevice() = default; - union Ioctl { - u32_le raw; - BitField<0, 8, u32> cmd; - BitField<8, 8, u32> group; - BitField<16, 14, u32> length; - BitField<30, 1, u32> is_in; - BitField<31, 1, u32> is_out; - }; - - /** - * Handles an ioctl 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 u32 ioctl(Ioctl command, const std::vector<u8>& input, const std::vector<u8>& input2, - std::vector<u8>& output, std::vector<u8>& output2, IoctlCtrl& ctrl, - IoctlVersion version) = 0; + virtual NvResult Ioctl1(Ioctl command, const std::vector<u8>& input, + std::vector<u8>& output) = 0; + virtual NvResult Ioctl2(Ioctl command, const std::vector<u8>& input, + const std::vector<u8>& inline_input, std::vector<u8>& output) = 0; + virtual NvResult Ioctl3(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output, + std::vector<u8>& inline_output) = 0; protected: Core::System& system; |