diff options
author | Thomas Hellstrom <unichrome@shipmail.org> | 2004-09-07 16:48:44 +0000 |
---|---|---|
committer | Thomas Hellstrom <unichrome@shipmail.org> | 2004-09-07 16:48:44 +0000 |
commit | b0c73b7fcb3f2504f2ab747bae75a98112071491 (patch) | |
tree | 6f411d85b4282bb33f3d994fd258b9797520b127 /shared-core/via_drm.h | |
parent | c33f4449fc893d5478d9541bc6a80124c8f96ea5 (diff) |
Added IOCTL for writing 2D DMA command buffers over PCI. Bumped minor
version number.
Diffstat (limited to 'shared-core/via_drm.h')
-rw-r--r-- | shared-core/via_drm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shared-core/via_drm.h b/shared-core/via_drm.h index 5325f62f..ddc89f83 100644 --- a/shared-core/via_drm.h +++ b/shared-core/via_drm.h @@ -38,6 +38,8 @@ #define VIA_NR_XVMC_PORTS 10 #define VIA_NR_XVMC_LOCKS 5 #define VIA_MAX_CACHELINE_SIZE 64 +#define VIA_PREALLOCATED_PCI_SIZE 16384 +#define VIA_MAX_PCI_SIZE 65536 #define XVMCLOCKPTR(saPriv,lockNo) \ ((volatile int *)(((((unsigned long) (saPriv)->XvMCLockArea) + \ (VIA_MAX_CACHELINE_SIZE - 1)) & \ @@ -67,8 +69,10 @@ #define DRM_IOCTL_VIA_MAP_INIT DRM_IOWR(0x44, drm_via_init_t) #define DRM_IOCTL_VIA_DEC_FUTEX DRM_IOW(0x45, drm_via_futex_t) #define DRM_IOCTL_VIA_DMA_INIT DRM_IOWR(0x47, drm_via_dma_init_t) -#define DRM_IOCTL_VIA_CMDBUFFER DRM_IOWR(0x48, drm_via_dma_init_t) +#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) + /* 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, @@ -200,6 +204,7 @@ int via_decoder_futex( DRM_IOCTL_ARGS ); 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 ); #endif #endif /* _VIA_DRM_H_ */ |