Fixup broken SetTimeslice nvdrv ioctl that was missed in conversion

This commit is contained in:
Billy Laws 2021-05-26 20:23:54 +01:00
parent bf2e20565f
commit d4b13c34ee
2 changed files with 4 additions and 2 deletions

View File

@ -119,7 +119,8 @@ namespace skyline::service::nvdrv::device {
return NvStatus::Success;
}
NvStatus NvHostChannel::SetTimeslice(IoctlType type, std::span<u8> buffer, std::span<u8> inlineBuffer) {
NvStatus NvHostChannel::SetTimeslice(IoctlType type, span<u8> buffer, span<u8> inlineBuffer) {
timeslice = buffer.as<u32>();
return NvStatus::Success;
}

View File

@ -80,7 +80,7 @@ namespace skyline::service::nvdrv::device {
* @brief Sets the timeslice of the channel
* @url https://switchbrew.org/wiki/NV_services#NVGPU_IOCTL_CHANNEL_SET_TIMESLICE)
*/
NvStatus SetTimeslice(IoctlType type, std::span<u8> buffer, std::span<u8> inlineBuffer);
NvStatus SetTimeslice(IoctlType type, span<u8> buffer, span<u8> inlineBuffer);
/**
* @brief Sets the user specific data
@ -100,6 +100,7 @@ namespace skyline::service::nvdrv::device {
NVFUNC(0x480D, NvHostChannel, SetPriority),
NVFUNC(0x481A, NvHostChannel, AllocGpfifoEx2),
NVFUNC(0x481B, NvHostChannel, SubmitGpfifo), // Our SubmitGpfifo implementation also handles SubmitGpfifoEx
NVFUNC(0x481D, NvHostChannel, SetTimeslice),
NVFUNC(0x4714, NvHostChannel, SetUserData)
)
};