nouveau_drm.h (f26e8817b235d8764363bffcc9cbfc61867371f2) nouveau_drm.h (eeaf06ac1a5584e41cf289f8351e446bb131374b)
1/*
2 * Copyright 2005 Stephane Marchesin.
3 * All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,

--- 119 unchanged lines hidden (view full) ---

128#define DRM_NOUVEAU_GETPARAM 0x00 /* deprecated */
129#define DRM_NOUVEAU_SETPARAM 0x01 /* deprecated */
130#define DRM_NOUVEAU_CHANNEL_ALLOC 0x02 /* deprecated */
131#define DRM_NOUVEAU_CHANNEL_FREE 0x03 /* deprecated */
132#define DRM_NOUVEAU_GROBJ_ALLOC 0x04 /* deprecated */
133#define DRM_NOUVEAU_NOTIFIEROBJ_ALLOC 0x05 /* deprecated */
134#define DRM_NOUVEAU_GPUOBJ_FREE 0x06 /* deprecated */
135#define DRM_NOUVEAU_NVIF 0x07
1/*
2 * Copyright 2005 Stephane Marchesin.
3 * All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,

--- 119 unchanged lines hidden (view full) ---

128#define DRM_NOUVEAU_GETPARAM 0x00 /* deprecated */
129#define DRM_NOUVEAU_SETPARAM 0x01 /* deprecated */
130#define DRM_NOUVEAU_CHANNEL_ALLOC 0x02 /* deprecated */
131#define DRM_NOUVEAU_CHANNEL_FREE 0x03 /* deprecated */
132#define DRM_NOUVEAU_GROBJ_ALLOC 0x04 /* deprecated */
133#define DRM_NOUVEAU_NOTIFIEROBJ_ALLOC 0x05 /* deprecated */
134#define DRM_NOUVEAU_GPUOBJ_FREE 0x06 /* deprecated */
135#define DRM_NOUVEAU_NVIF 0x07
136#define DRM_NOUVEAU_SVM_INIT 0x08
136#define DRM_NOUVEAU_GEM_NEW 0x40
137#define DRM_NOUVEAU_GEM_PUSHBUF 0x41
138#define DRM_NOUVEAU_GEM_CPU_PREP 0x42
139#define DRM_NOUVEAU_GEM_CPU_FINI 0x43
140#define DRM_NOUVEAU_GEM_INFO 0x44
141
137#define DRM_NOUVEAU_GEM_NEW 0x40
138#define DRM_NOUVEAU_GEM_PUSHBUF 0x41
139#define DRM_NOUVEAU_GEM_CPU_PREP 0x42
140#define DRM_NOUVEAU_GEM_CPU_FINI 0x43
141#define DRM_NOUVEAU_GEM_INFO 0x44
142
143struct drm_nouveau_svm_init {
144 __u64 unmanaged_addr;
145 __u64 unmanaged_size;
146};
147
148#define DRM_IOCTL_NOUVEAU_SVM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_SVM_INIT, struct drm_nouveau_svm_init)
149
142#define DRM_IOCTL_NOUVEAU_GEM_NEW DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_NEW, struct drm_nouveau_gem_new)
143#define DRM_IOCTL_NOUVEAU_GEM_PUSHBUF DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_PUSHBUF, struct drm_nouveau_gem_pushbuf)
144#define DRM_IOCTL_NOUVEAU_GEM_CPU_PREP DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_PREP, struct drm_nouveau_gem_cpu_prep)
145#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)
146#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info)
147
148#if defined(__cplusplus)
149}
150#endif
151
152#endif /* __NOUVEAU_DRM_H__ */
150#define DRM_IOCTL_NOUVEAU_GEM_NEW DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_NEW, struct drm_nouveau_gem_new)
151#define DRM_IOCTL_NOUVEAU_GEM_PUSHBUF DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_PUSHBUF, struct drm_nouveau_gem_pushbuf)
152#define DRM_IOCTL_NOUVEAU_GEM_CPU_PREP DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_PREP, struct drm_nouveau_gem_cpu_prep)
153#define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)
154#define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info)
155
156#if defined(__cplusplus)
157}
158#endif
159
160#endif /* __NOUVEAU_DRM_H__ */