Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / drivers / gpu / drm / nouveau / nouveau_abi16.h
blobe6328b008a8cf268dc1cf0af3e24d44f9ef7d917
1 #ifndef __NOUVEAU_ABI16_H__
2 #define __NOUVEAU_ABI16_H__
4 #define ABI16_IOCTL_ARGS \
5 struct drm_device *dev, void *data, struct drm_file *file_priv
6 int nouveau_abi16_ioctl_getparam(ABI16_IOCTL_ARGS);
7 int nouveau_abi16_ioctl_setparam(ABI16_IOCTL_ARGS);
8 int nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS);
9 int nouveau_abi16_ioctl_channel_free(ABI16_IOCTL_ARGS);
10 int nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS);
11 int nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS);
12 int nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS);
14 struct drm_nouveau_channel_alloc {
15 uint32_t fb_ctxdma_handle;
16 uint32_t tt_ctxdma_handle;
18 int channel;
19 uint32_t pushbuf_domains;
21 /* Notifier memory */
22 uint32_t notifier_handle;
24 /* DRM-enforced subchannel assignments */
25 struct {
26 uint32_t handle;
27 uint32_t grclass;
28 } subchan[8];
29 uint32_t nr_subchan;
32 struct drm_nouveau_channel_free {
33 int channel;
36 struct drm_nouveau_grobj_alloc {
37 int channel;
38 uint32_t handle;
39 int class;
42 struct drm_nouveau_notifierobj_alloc {
43 uint32_t channel;
44 uint32_t handle;
45 uint32_t size;
46 uint32_t offset;
49 struct drm_nouveau_gpuobj_free {
50 int channel;
51 uint32_t handle;
54 #define NOUVEAU_GETPARAM_PCI_VENDOR 3
55 #define NOUVEAU_GETPARAM_PCI_DEVICE 4
56 #define NOUVEAU_GETPARAM_BUS_TYPE 5
57 #define NOUVEAU_GETPARAM_FB_SIZE 8
58 #define NOUVEAU_GETPARAM_AGP_SIZE 9
59 #define NOUVEAU_GETPARAM_CHIPSET_ID 11
60 #define NOUVEAU_GETPARAM_VM_VRAM_BASE 12
61 #define NOUVEAU_GETPARAM_GRAPH_UNITS 13
62 #define NOUVEAU_GETPARAM_PTIMER_TIME 14
63 #define NOUVEAU_GETPARAM_HAS_BO_USAGE 15
64 #define NOUVEAU_GETPARAM_HAS_PAGEFLIP 16
65 struct drm_nouveau_getparam {
66 uint64_t param;
67 uint64_t value;
70 struct drm_nouveau_setparam {
71 uint64_t param;
72 uint64_t value;
75 #define DRM_IOCTL_NOUVEAU_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GETPARAM, struct drm_nouveau_getparam)
76 #define DRM_IOCTL_NOUVEAU_SETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_SETPARAM, struct drm_nouveau_setparam)
77 #define DRM_IOCTL_NOUVEAU_CHANNEL_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_CHANNEL_ALLOC, struct drm_nouveau_channel_alloc)
78 #define DRM_IOCTL_NOUVEAU_CHANNEL_FREE DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_CHANNEL_FREE, struct drm_nouveau_channel_free)
79 #define DRM_IOCTL_NOUVEAU_GROBJ_ALLOC DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GROBJ_ALLOC, struct drm_nouveau_grobj_alloc)
80 #define DRM_IOCTL_NOUVEAU_NOTIFIEROBJ_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_NOTIFIEROBJ_ALLOC, struct drm_nouveau_notifierobj_alloc)
81 #define DRM_IOCTL_NOUVEAU_GPUOBJ_FREE DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GPUOBJ_FREE, struct drm_nouveau_gpuobj_free)
83 #endif