mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
- NvBuffer replaced with NvMap, which only manages the creation of raw nvmap objects. Users must map these objects manually to address spaces. - nvAddressSpaceBindToChannel removed. - nvChannelSetNvmapFd is now automatic and has been removed. - Nv3DContext, NvCmdList, NvErrorNotifier, NvGpfifo, NvGpu and NvZcullContext have all been removed. - Introduced NvGpuChannel, which provides all functionality that was part of said removed objects. - Other miscellaneous changes and fixes.
15 lines
340 B
C
15 lines
340 B
C
#pragma once
|
|
#include "types.h"
|
|
#include "ioctl.h"
|
|
|
|
typedef struct NvChannel {
|
|
u32 fd;
|
|
bool has_init;
|
|
} NvChannel;
|
|
|
|
Result nvChannelCreate(NvChannel* c, const char* dev);
|
|
void nvChannelClose(NvChannel* c);
|
|
|
|
Result nvChannelSetPriority(NvChannel* c, NvChannelPriority prio);
|
|
Result nvChannelSetTimeout(NvChannel* c, u32 timeout);
|