diff options
author | Subv <subv2112@gmail.com> | 2018-04-23 18:06:07 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-23 18:21:46 +0200 |
commit | e4bd0bddeaaec31a13484bc791e181052211d9ad (patch) | |
tree | ea573cb40c5fb014c810e8a03d1c0544d99b2ec8 /src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h | |
parent | Merge pull request #377 from adityaruplaha/sdl2-fullscreen (diff) | |
download | yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.tar yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.tar.gz yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.tar.bz2 yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.tar.lz yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.tar.xz yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.tar.zst yuzu-e4bd0bddeaaec31a13484bc791e181052211d9ad.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h index d86c3ebd9..f2dd0c3b3 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h @@ -26,6 +26,7 @@ private: enum class IoctlCommand : u32_le { IocInitalizeExCommand = 0x40284109, IocAllocateSpaceCommand = 0xC0184102, + IocRemapCommand = 0x00000014, IocMapBufferExCommand = 0xC0284106, IocBindChannelCommand = 0x40044101, IocGetVaRegionsCommand = 0xC0404108, @@ -54,6 +55,16 @@ private: }; static_assert(sizeof(IoctlAllocSpace) == 24, "IoctlInitalizeEx is incorrect size"); + struct IoctlRemapEntry { + u16_le flags; + u16_le kind; + u32_le nvmap_handle; + INSERT_PADDING_WORDS(1); + u32_le offset; + u32_le pages; + }; + static_assert(sizeof(IoctlRemapEntry) == 20, "IoctlRemapEntry is incorrect size"); + struct IoctlMapBufferEx { u32_le flags; // bit0: fixed_offset, bit2: cacheable u32_le kind; // -1 is default @@ -91,6 +102,7 @@ private: u32 InitalizeEx(const std::vector<u8>& input, std::vector<u8>& output); u32 AllocateSpace(const std::vector<u8>& input, std::vector<u8>& output); + u32 Remap(const std::vector<u8>& input, std::vector<u8>& output); u32 MapBufferEx(const std::vector<u8>& input, std::vector<u8>& output); u32 BindChannel(const std::vector<u8>& input, std::vector<u8>& output); u32 GetVARegions(const std::vector<u8>& input, std::vector<u8>& output); |