9#include "../sf/service.h" 
   10#include "../kernel/event.h" 
   31    NvEventId_Gpu_SmException_BptIntReport=1,
 
   32    NvEventId_Gpu_SmException_BptPauseReport=2,
 
   33    NvEventId_Gpu_ErrorNotifier=3,
 
   35    NvEventId_CtrlGpu_ErrorEventHandle=1,
 
   36    NvEventId_CtrlGpu_Unknown=2,
 
   39#define NV_EVENT_ID_CTRL__SYNCPT(slot, syncpt) \ 
   40    ((1u<<28) | ((syncpt) << 16) | (slot)) 
   42Result nvOpen(
u32 *fd, 
const char *devicepath);
 
   49Result nvConvertError(
int rc);
 
Result nvIoctl3(u32 fd, u32 request, void *argp, void *outbuf, size_t outbuf_size)
[3.0.0+]
Result nvInitialize(void)
Initialize nvdrv*.
Service * nvGetServiceSession(void)
Gets the Service object for the actual nvdrv* service session.
NvServiceType
NvServiceType, for __nx_nv_service_type.
Definition nv.h:13
@ NvServiceType_System
Initializes nvdrv:s.
Definition nv.h:17
@ NvServiceType_Applet
Initializes nvdrv:a.
Definition nv.h:16
@ NvServiceType_Application
Initializes nvdrv.
Definition nv.h:15
@ NvServiceType_Auto
This is the default. Automatically select the type using appletGetAppletType.
Definition nv.h:14
@ NvServiceType_Factory
Initializes nvdrv:t.
Definition nv.h:18
Result nvIoctl2(u32 fd, u32 request, void *argp, const void *inbuf, size_t inbuf_size)
[3.0.0+]
void nvExit(void)
Exit nvdrv*.
Kernel-mode event structure.
Definition event.h:13
Service object structure.
Definition service.h:14
u32 Result
Function error code result type.
Definition types.h:44
uint32_t u32
32-bit unsigned integer.
Definition types.h:21