libnx  v4.2.0
Macros | Enumerations | Functions
nv.h File Reference

NVIDIA low level driver (nvdrv*) service IPC wrapper. More...

#include "../types.h"
#include "../sf/service.h"
#include "../kernel/event.h"

Go to the source code of this file.

Macros

#define NV_EVENT_ID_CTRL__SYNCPT(slot, syncpt)   ((1u<<28) | ((syncpt) << 16) | (slot))
 

Enumerations

enum  NvEventId {
  NvEventId_Gpu_SmException_BptIntReport =1,
  NvEventId_Gpu_SmException_BptPauseReport =2,
  NvEventId_Gpu_ErrorNotifier =3,
  NvEventId_CtrlGpu_ErrorEventHandle =1,
  NvEventId_CtrlGpu_Unknown =2
}
 

Functions

Result nvInitialize (void)
 Initialize nvdrv*.
 
void nvExit (void)
 Exit nvdrv*.
 
ServicenvGetServiceSession (void)
 Gets the Service object for the actual nvdrv* service session.
 
Result nvOpen (u32 *fd, const char *devicepath)
 
Result nvIoctl (u32 fd, u32 request, void *argp)
 
Result nvIoctl2 (u32 fd, u32 request, void *argp, const void *inbuf, size_t inbuf_size)
 
Result nvClose (u32 fd)
 
Result nvQueryEvent (u32 fd, u32 event_id, Event *event_out)
 
Result nvConvertError (int rc)
 

Detailed Description

NVIDIA low level driver (nvdrv*) service IPC wrapper.

Author
yellows8