diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2018-02-06 03:19:31 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-06 03:19:31 +0100 |
commit | d129905a665ce329089338b4e468da84b3dab5d6 (patch) | |
tree | 6606df27c05539b67fd5b6e36e4ed671496904ae /src/core/hle/service/nvdrv/devices/nvhost_ctrl.h | |
parent | Merge pull request #164 from ogniK5377/libnx_sm_fix (diff) | |
download | yuzu-d129905a665ce329089338b4e468da84b3dab5d6.tar yuzu-d129905a665ce329089338b4e468da84b3dab5d6.tar.gz yuzu-d129905a665ce329089338b4e468da84b3dab5d6.tar.bz2 yuzu-d129905a665ce329089338b4e468da84b3dab5d6.tar.lz yuzu-d129905a665ce329089338b4e468da84b3dab5d6.tar.xz yuzu-d129905a665ce329089338b4e468da84b3dab5d6.tar.zst yuzu-d129905a665ce329089338b4e468da84b3dab5d6.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvhost_ctrl.h')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h index abce35e17..fd02a5e45 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h @@ -20,10 +20,10 @@ public: nvhost_ctrl() = default; ~nvhost_ctrl() override = default; - u32 ioctl(u32 command, const std::vector<u8>& input, std::vector<u8>& output) override; + u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override; private: - enum IoctlCommands { + enum class IoctlCommand : u32_le { IocSyncptReadCommand = 0xC0080014, IocSyncptIncrCommand = 0x40040015, IocSyncptWaitCommand = 0xC00C0016, @@ -39,6 +39,7 @@ private: std::array<char, 0x41> param_str; std::array<char, 0x101> config_str; }; + static_assert(sizeof(IocGetConfigParams) == 387, "IocGetConfigParams is incorrect size"); u32 NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output); }; |