1 #ifndef __NVIF_IOCTL_H__
2 #define __NVIF_IOCTL_H__
6 #define NVIF_IOCTL_V0_OWNER_NVIF 0x00
7 #define NVIF_IOCTL_V0_OWNER_ANY 0xff
9 #define NVIF_IOCTL_V0_NOP 0x00
10 #define NVIF_IOCTL_V0_SCLASS 0x01
11 #define NVIF_IOCTL_V0_NEW 0x02
12 #define NVIF_IOCTL_V0_DEL 0x03
13 #define NVIF_IOCTL_V0_MTHD 0x04
14 #define NVIF_IOCTL_V0_RD 0x05
15 #define NVIF_IOCTL_V0_WR 0x06
16 #define NVIF_IOCTL_V0_MAP 0x07
17 #define NVIF_IOCTL_V0_UNMAP 0x08
18 #define NVIF_IOCTL_V0_NTFY_NEW 0x09
19 #define NVIF_IOCTL_V0_NTFY_DEL 0x0a
20 #define NVIF_IOCTL_V0_NTFY_GET 0x0b
21 #define NVIF_IOCTL_V0_NTFY_PUT 0x0c
24 #define NVIF_IOCTL_V0_ROUTE_NVIF 0x00
25 #define NVIF_IOCTL_V0_ROUTE_HIDDEN 0xff
29 __u32 path
[8]; /* in reverse */
30 __u8 data
[]; /* ioctl data (below) */
33 struct nvif_ioctl_nop
{
36 struct nvif_ioctl_sclass_v0
{
44 struct nvif_ioctl_new_v0
{
51 /* these class numbers are made up by us, and not nvidia-assigned */
52 #define NVIF_IOCTL_NEW_V0_PERFCTR 0x0000ffff
53 #define NVIF_IOCTL_NEW_V0_CONTROL 0x0000fffe
55 __u8 data
[]; /* class data (class.h) */
58 struct nvif_ioctl_del
{
61 struct nvif_ioctl_rd_v0
{
70 struct nvif_ioctl_wr_v0
{
79 struct nvif_ioctl_map_v0
{
87 struct nvif_ioctl_unmap
{
90 struct nvif_ioctl_ntfy_new_v0
{
96 __u8 data
[]; /* event request data (event.h) */
99 struct nvif_ioctl_ntfy_del_v0
{
106 struct nvif_ioctl_ntfy_get_v0
{
113 struct nvif_ioctl_ntfy_put_v0
{
120 struct nvif_ioctl_mthd_v0
{
125 __u8 data
[]; /* method data (class.h) */