nvhost_nvdec: implement ChannelGetWaitBase
This commit is contained in:
@@ -25,6 +25,8 @@ u32 nvhost_nvdec::ioctl(Ioctl command, const std::vector<u8>& input, const std::
|
||||
switch (static_cast<IoctlCommand>(command.raw)) {
|
||||
case IoctlCommand::IocSetNVMAPfdCommand:
|
||||
return SetNVMAPfd(input, output);
|
||||
case IoctlCommand::IocChannelGetWaitBase:
|
||||
return ChannelGetWaitBase(input, output);
|
||||
}
|
||||
|
||||
if (command.group == NVHOST_IOCTL_MAGIC) {
|
||||
@@ -45,6 +47,17 @@ u32 nvhost_nvdec::SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& outp
|
||||
nvmap_fd = params.nvmap_fd;
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 nvhost_nvdec::ChannelGetWaitBase(const std::vector<u8>& input, std::vector<u8>& output) {
|
||||
IoctChannelWaitBase params{};
|
||||
std::memcpy(¶ms, input.data(), input.size());
|
||||
LOG_DEBUG(Service_NVDRV, "called, module_id: {}", params.module_id);
|
||||
|
||||
params.waitbase_value = 0;
|
||||
|
||||
std::memcpy(output.data(), ¶ms, output.size());
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 nvhost_nvdec::ChannelMapCmdBuffer(const std::vector<u8>& input, std::vector<u8>& output) {
|
||||
IoctlMapCmdBuffer params{};
|
||||
|
||||
Reference in New Issue
Block a user