mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
nvfence: expose nvhost-ctrl fd
This commit is contained in:
parent
218e3f3a04
commit
88de3cbea7
@ -10,6 +10,7 @@ typedef struct {
|
|||||||
|
|
||||||
Result nvFenceInit(void);
|
Result nvFenceInit(void);
|
||||||
void nvFenceExit(void);
|
void nvFenceExit(void);
|
||||||
|
u32 nvFenceGetFd(void);
|
||||||
|
|
||||||
Result nvFenceWait(NvFence* f, s32 timeout_us);
|
Result nvFenceWait(NvFence* f, s32 timeout_us);
|
||||||
|
|
||||||
|
@ -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)
|
static Result _nvFenceEventWaitCommon(Event* event, u32 event_id, s32 timeout_us)
|
||||||
{
|
{
|
||||||
u64 timeout_ns = UINT64_MAX;
|
u64 timeout_ns = UINT64_MAX;
|
||||||
|
Loading…
Reference in New Issue
Block a user