diff options
author | Thomas Hellstrom <unichrome@shipmail.org> | 2004-12-13 13:53:12 +0000 |
---|---|---|
committer | Thomas Hellstrom <unichrome@shipmail.org> | 2004-12-13 13:53:12 +0000 |
commit | aff0a2548561ecbe3411b57cd31f46cbb1b4f6b8 (patch) | |
tree | ebd305ccc5602cd426046b402dce23e3776a7c42 /shared/via_drm.h | |
parent | b4782ba76b8ee48dca9948abe8ba5cd1f42617e7 (diff) |
VIA drm updates:
1. Improved security check of AGP texture adresses.
2. Hopefully last fix of ring-buffer jump oddities.
3. Added ioctl to check available space and command regulator lag in
ring-buffer. This is needed for 3D application responsiveness.
Diffstat (limited to 'shared/via_drm.h')
-rw-r--r-- | shared/via_drm.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/shared/via_drm.h b/shared/via_drm.h index ee703c79..2327bec5 100644 --- a/shared/via_drm.h +++ b/shared/via_drm.h @@ -70,6 +70,8 @@ #define DRM_IOCTL_VIA_CMDBUFFER DRM_IOW(0x48, drm_via_cmdbuffer_t) #define DRM_IOCTL_VIA_FLUSH DRM_IO(0x49) #define DRM_IOCTL_VIA_PCICMD DRM_IOW(0x4A, drm_via_cmdbuffer_t) +#define DRM_IOCTL_VIA_CMDBUF_SIZE DRM_IOWR(0x4B, drm_via_cmdbuf_size_t) + /* Indices into buf.Setup where various bits of state are mirrored per * context and per buffer. These can be fired at the card as a unit, @@ -189,7 +191,14 @@ typedef struct _drm_via_flush_sys { int discard; /* client is finished with the buffer? */ } drm_via_flush_sys_t; - +typedef struct _drm_via_cmdbuf_size { + enum { + VIA_CMDBUF_SPACE = 0x01, + VIA_CMDBUF_LAG = 0x02 + } func; + int wait; + uint32_t size; +} drm_via_cmdbuf_size_t; #ifdef __KERNEL__ @@ -203,6 +212,7 @@ int via_dma_init(DRM_IOCTL_ARGS); int via_cmdbuffer(DRM_IOCTL_ARGS); int via_flush_ioctl(DRM_IOCTL_ARGS); int via_pci_cmdbuffer(DRM_IOCTL_ARGS); +int via_cmdbuf_size(DRM_IOCTL_ARGS); #endif #endif /* _VIA_DRM_H_ */ |