nvfence: expose nvhost-ctrl fd

This commit is contained in:
averne 2025-01-19 18:35:39 +01:00
parent a063ceb19c
commit 601fe1e98b
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ typedef struct {
Result nvFenceInit(void);
void nvFenceExit(void);
u32 nvFenceGetFd(void);
Result nvFenceWait(NvFence* f, s32 timeout_us);

View File

@ -82,6 +82,11 @@ void _nvFenceCleanup(void)
}
}
u32 nvFenceGetFd(void)
{
return g_ctrl_fd;
}
static Result _nvFenceEventWaitCommon(Event* event, u32 event_id, s32 timeout_us)
{
u64 timeout_ns = UINT64_MAX;