mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
16 lines
287 B
C
16 lines
287 B
C
#include <switch.h>
|
|
|
|
#define DEFAULT_FIFO_ENTRIES 0x800
|
|
|
|
Result nvfifoCreate(NvGpfifo* f, NvChannel* parent)
|
|
{
|
|
f->parent = parent;
|
|
|
|
return nvioctlChannel_AllocGpfifoEx2(
|
|
parent->fd, DEFAULT_FIFO_ENTRIES, 1, 0, 0, 0, 0, &f->fifo_fence);
|
|
}
|
|
|
|
void nvfifoClose() {
|
|
/**/
|
|
}
|