Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
0658973a
There was an error fetching the commit references. Please try again later.
Commit
0658973a
authored
6 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand.
parent
0d843eab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+8
-4
8 additions, 4 deletions
src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
+1
-1
1 addition, 1 deletion
src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
with
9 additions
and
5 deletions
src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+
8
−
4
View file @
0658973a
...
...
@@ -16,7 +16,9 @@ u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<
case
IoctlCommand
::
IocGetConfigCommand
:
return
NvOsGetConfigU32
(
input
,
output
);
case
IoctlCommand
::
IocCtrlEventWaitCommand
:
return
IocCtrlEventWait
(
input
,
output
);
return
IocCtrlEventWait
(
input
,
output
,
false
);
case
IoctlCommand
::
IocCtrlEventWaitAsyncCommand
:
return
IocCtrlEventWait
(
input
,
output
,
true
);
}
UNIMPLEMENTED_MSG
(
"Unimplemented ioctl"
);
return
0
;
...
...
@@ -45,11 +47,13 @@ u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>&
return
0
;
}
u32
nvhost_ctrl
::
IocCtrlEventWait
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
)
{
u32
nvhost_ctrl
::
IocCtrlEventWait
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
,
bool
is_async
)
{
IocCtrlEventWaitParams
params
{};
std
::
memcpy
(
&
params
,
input
.
data
(),
sizeof
(
params
));
NGLOG_WARNING
(
Service_NVDRV
,
"(STUBBED) called, syncpt_id={} threshold={} timeout={}"
,
params
.
syncpt_id
,
params
.
threshold
,
params
.
timeout
);
NGLOG_WARNING
(
Service_NVDRV
,
"(STUBBED) called, syncpt_id={}, threshold={}, timeout={}, is_async={}"
,
params
.
syncpt_id
,
params
.
threshold
,
params
.
timeout
,
is_async
);
// TODO(Subv): Implement actual syncpt waiting.
params
.
value
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
+
1
−
1
View file @
0658973a
...
...
@@ -134,7 +134,7 @@ private:
u32
NvOsGetConfigU32
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
);
u32
IocCtrlEventWait
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
);
u32
IocCtrlEventWait
(
const
std
::
vector
<
u8
>&
input
,
std
::
vector
<
u8
>&
output
,
bool
is_async
);
};
}
// namespace Service::Nvidia::Devices
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment