? xc/exports ? xc/xmakefile ? xc/config/Makefile ? xc/config/cf/Makefile ? xc/config/imake/Makefile ? xc/config/imake/bootstrap ? xc/config/imake/ccimake ? xc/config/imake/imake ? xc/config/imake/imake.1x.html ? xc/config/imake/imake._man ? xc/config/imake/imakemdep_cpp.h ? xc/config/makedepend/Makefile ? xc/config/makedepend/Makefile.proto ? xc/config/makedepend/makedepend ? xc/config/makedepend/makedepend.1x.html ? xc/config/makedepend/mkdepend._man ? xc/config/util/Makefile ? xc/config/util/ccmakedep ? xc/config/util/ccmakedep.1x.html ? xc/config/util/ccmakedep._man ? xc/config/util/cleanlinks.1x.html ? xc/config/util/cleanlinks._man ? xc/config/util/gccmakedep ? xc/config/util/gccmakedep.1x.html ? xc/config/util/gccmakedep._man ? xc/config/util/lndir ? xc/config/util/lndir.1x.html ? xc/config/util/lndir._man ? xc/config/util/makeg.1x.html ? xc/config/util/makeg._man ? xc/config/util/makestrs ? xc/config/util/makestrs.1x.html ? xc/config/util/makestrs._man ? xc/config/util/mergelib ? xc/config/util/mergelib.1x.html ? xc/config/util/mergelib._man ? xc/config/util/mkdirhier.1x.html ? xc/config/util/mkdirhier._man ? xc/config/util/mkhtmlindex.1x.html ? xc/config/util/mkhtmlindex._man ? xc/config/util/revpath ? xc/config/util/revpath.1x.html ? xc/config/util/revpath._man ? xc/config/util/rman ? xc/config/util/rman.1x.html ? xc/config/util/rman._man ? xc/config/util/xmkmf ? xc/config/util/xmkmf.1x.html ? xc/config/util/xmkmf._man ? xc/include/Makefile ? xc/include/GL/Makefile ? xc/include/bitmaps/Makefile ? xc/include/extensions/Makefile ? xc/include/fonts/Makefile ? xc/lib/Makefile ? xc/lib/GL/Makefile ? xc/lib/GL/GL/Makefile ? xc/lib/GL/GL/libGL.so.1.2 ? xc/lib/GL/dri/DONE ? xc/lib/GL/dri/Makefile ? xc/lib/GL/dri/drm/DONE ? xc/lib/GL/dri/drm/Makefile ? xc/lib/GL/glx/DONE ? xc/lib/GL/glx/Makefile ? xc/lib/GL/mesa/Makefile ? xc/lib/GL/mesa/array_cache/DONE ? xc/lib/GL/mesa/array_cache/Makefile ? xc/lib/GL/mesa/drivers/dri/Makefile ? xc/lib/GL/mesa/drivers/dri/common/DONE ? xc/lib/GL/mesa/drivers/dri/common/Makefile ? xc/lib/GL/mesa/drivers/dri/ffb/Makefile ? xc/lib/GL/mesa/drivers/dri/gamma/Makefile ? xc/lib/GL/mesa/drivers/dri/i810/Makefile ? xc/lib/GL/mesa/drivers/dri/i830/Makefile ? xc/lib/GL/mesa/drivers/dri/mga/Makefile ? xc/lib/GL/mesa/drivers/dri/r128/Makefile ? xc/lib/GL/mesa/drivers/dri/r200/Makefile ? xc/lib/GL/mesa/drivers/dri/radeon/Makefile ? xc/lib/GL/mesa/drivers/dri/sis/Makefile ? xc/lib/GL/mesa/drivers/dri/tdfx/Makefile ? xc/lib/GL/mesa/drivers/osmesa/DONE ? xc/lib/GL/mesa/drivers/osmesa/Makefile ? xc/lib/GL/mesa/drivers/osmesa/libOSMesa.so.4.0 ? xc/lib/GL/mesa/main/DONE ? xc/lib/GL/mesa/main/Makefile ? xc/lib/GL/mesa/math/DONE ? xc/lib/GL/mesa/math/Makefile ? xc/lib/GL/mesa/swrast/DONE ? xc/lib/GL/mesa/swrast/Makefile ? xc/lib/GL/mesa/swrast_setup/DONE ? xc/lib/GL/mesa/swrast_setup/Makefile ? xc/lib/GL/mesa/tnl/DONE ? xc/lib/GL/mesa/tnl/Makefile ? xc/lib/GL/mesa/tnl_dd/Makefile ? xc/lib/GL/mesa/x86/DONE ? xc/lib/GL/mesa/x86/Makefile ? xc/lib/GL/mesa/x86/matypes.h ? xc/lib/Xdmcp/Makefile ? xc/lib/Xv/Makefile ? xc/lib/Xv/libXv.so.1.0 ? xc/lib/Xv/unshared ? xc/lib/XvMC/Makefile ? xc/lib/XvMC/hw/i810/Makefile ? xc/lib/expat/Makefile ? xc/lib/expat/unshared ? xc/lib/font/Makefile ? xc/lib/font/FreeType/Makefile ? xc/lib/font/FreeType/module/Makefile ? xc/lib/font/Speedo/Makefile ? xc/lib/font/Speedo/module/Makefile ? xc/lib/font/Type1/Makefile ? xc/lib/font/Type1/module/Makefile ? xc/lib/font/X-TrueType/Makefile ? xc/lib/font/X-TrueType/ARABIC/Makefile ? xc/lib/font/X-TrueType/ARABIC/module/Makefile ? xc/lib/font/X-TrueType/ARMSCII8/Makefile ? xc/lib/font/X-TrueType/ARMSCII8/module/Makefile ? xc/lib/font/X-TrueType/BIG5/Makefile ? xc/lib/font/X-TrueType/BIG5/module/Makefile ? xc/lib/font/X-TrueType/BIG5HKSCS/Makefile ? xc/lib/font/X-TrueType/BIG5HKSCS/module/Makefile ? xc/lib/font/X-TrueType/DOSENCODING/Makefile ? xc/lib/font/X-TrueType/DOSENCODING/module/Makefile ? xc/lib/font/X-TrueType/GB18030/Makefile ? xc/lib/font/X-TrueType/GB18030/module/Makefile ? xc/lib/font/X-TrueType/GB2312/Makefile ? xc/lib/font/X-TrueType/GB2312/module/Makefile ? xc/lib/font/X-TrueType/GBK/Makefile ? xc/lib/font/X-TrueType/GBK/module/Makefile ? xc/lib/font/X-TrueType/GEORGIAN/Makefile ? xc/lib/font/X-TrueType/GEORGIAN/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.1/Makefile ? xc/lib/font/X-TrueType/ISO8859.1/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.10/Makefile ? xc/lib/font/X-TrueType/ISO8859.10/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.11/Makefile ? xc/lib/font/X-TrueType/ISO8859.11/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.13/Makefile ? xc/lib/font/X-TrueType/ISO8859.13/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.14/Makefile ? xc/lib/font/X-TrueType/ISO8859.14/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.15/Makefile ? xc/lib/font/X-TrueType/ISO8859.15/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.2/Makefile ? xc/lib/font/X-TrueType/ISO8859.2/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.3/Makefile ? xc/lib/font/X-TrueType/ISO8859.3/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.4/Makefile ? xc/lib/font/X-TrueType/ISO8859.4/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.5/Makefile ? xc/lib/font/X-TrueType/ISO8859.5/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.6/Makefile ? xc/lib/font/X-TrueType/ISO8859.6/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.7/Makefile ? xc/lib/font/X-TrueType/ISO8859.7/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.8/Makefile ? xc/lib/font/X-TrueType/ISO8859.8/module/Makefile ? xc/lib/font/X-TrueType/ISO8859.9/Makefile ? xc/lib/font/X-TrueType/ISO8859.9/module/Makefile ? xc/lib/font/X-TrueType/JISX0201/Makefile ? xc/lib/font/X-TrueType/JISX0201/module/Makefile ? xc/lib/font/X-TrueType/JISX0208/Makefile ? xc/lib/font/X-TrueType/JISX0208/module/Makefile ? xc/lib/font/X-TrueType/JISX0212/Makefile ? xc/lib/font/X-TrueType/JISX0212/module/Makefile ? xc/lib/font/X-TrueType/KOI8/Makefile ? xc/lib/font/X-TrueType/KOI8/module/Makefile ? xc/lib/font/X-TrueType/KSC5601/Makefile ? xc/lib/font/X-TrueType/KSC5601/module/Makefile ? xc/lib/font/X-TrueType/KSCJOHAB/Makefile ? xc/lib/font/X-TrueType/KSCJOHAB/module/Makefile ? xc/lib/font/X-TrueType/MULEENCODING/Makefile ? xc/lib/font/X-TrueType/MULEENCODING/module/Makefile ? xc/lib/font/X-TrueType/TCVN/Makefile ? xc/lib/font/X-TrueType/TCVN/module/Makefile ? xc/lib/font/X-TrueType/VISCII/Makefile ? xc/lib/font/X-TrueType/VISCII/module/Makefile ? xc/lib/font/X-TrueType/module/Makefile ? xc/lib/font/bitmap/Makefile ? xc/lib/font/bitmap/module/Makefile ? xc/lib/font/fc/Makefile ? xc/lib/font/fontcache/Makefile ? xc/lib/font/fontfile/Makefile ? xc/lib/font/fontfile/module/Makefile ? xc/lib/font/util/Makefile ? xc/lib/freetype2/Makefile ? xc/lib/freetype2/freetype/Makefile ? xc/lib/freetype2/freetype/cache/Makefile ? xc/lib/freetype2/freetype/config/Makefile ? xc/lib/freetype2/freetype/config/freetype-config ? xc/lib/freetype2/freetype/internal/Makefile ? xc/lib/lbxutil/Makefile ? xc/lib/lbxutil/delta/DONE ? xc/lib/lbxutil/delta/Makefile ? xc/lib/lbxutil/image/DONE ? xc/lib/lbxutil/image/Makefile ? xc/lib/lbxutil/image/g3states.h ? xc/lib/lbxutil/lbx_zlib/DONE ? xc/lib/lbxutil/lbx_zlib/Makefile ? xc/lib/xkbfile/Makefile ? xc/lib/xtrans/Makefile ? xc/programs/Makefile ? xc/programs/Xserver/Makefile ? xc/programs/Xserver/GL/Makefile ? xc/programs/Xserver/GL/dri/Makefile ? xc/programs/Xserver/GL/glx/Makefile ? xc/programs/Xserver/GL/mesa/Makefile ? xc/programs/Xserver/GL/mesa/GLcore/Makefile ? xc/programs/Xserver/GL/mesa/X/Makefile ? xc/programs/Xserver/GL/mesa/array_cache/Makefile ? xc/programs/Xserver/GL/mesa/main/Makefile ? xc/programs/Xserver/GL/mesa/math/Makefile ? xc/programs/Xserver/GL/mesa/swrast/Makefile ? xc/programs/Xserver/GL/mesa/swrast_setup/Makefile ? xc/programs/Xserver/GL/mesa/tnl/Makefile ? xc/programs/Xserver/XTrap/Makefile ? xc/programs/Xserver/XTrap/module/Makefile ? xc/programs/Xserver/Xext/Makefile ? xc/programs/Xserver/Xext/extmod/Makefile ? xc/programs/Xserver/Xi/Makefile ? xc/programs/Xserver/cfb/Makefile ? xc/programs/Xserver/cfb16/Makefile ? xc/programs/Xserver/cfb24/Makefile ? xc/programs/Xserver/cfb32/Makefile ? xc/programs/Xserver/dbe/Makefile ? xc/programs/Xserver/dbe/module/Makefile ? xc/programs/Xserver/dix/Makefile ? xc/programs/Xserver/fb/Makefile ? xc/programs/Xserver/hw/xfree86/Makefile ? xc/programs/Xserver/hw/xfree86/xf86Build.h ? xc/programs/Xserver/hw/xfree86/common/Makefile ? xc/programs/Xserver/hw/xfree86/common/modedefs ? xc/programs/Xserver/hw/xfree86/common/xf86DefModeSet.c ? xc/programs/Xserver/hw/xfree86/ddc/Makefile ? xc/programs/Xserver/hw/xfree86/doc/Makefile ? xc/programs/Xserver/hw/xfree86/doc/man/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/ati/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/glint/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/i810/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/mga/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/sis/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/tdfx/Makefile ? xc/programs/Xserver/hw/xfree86/drivers/vga/Makefile ? xc/programs/Xserver/hw/xfree86/dummylib/Makefile ? xc/programs/Xserver/hw/xfree86/etc/Makefile ? xc/programs/Xserver/hw/xfree86/fbdevhw/Makefile ? xc/programs/Xserver/hw/xfree86/i2c/Makefile ? xc/programs/Xserver/hw/xfree86/input/Makefile ? xc/programs/Xserver/hw/xfree86/input/mouse/Makefile ? xc/programs/Xserver/hw/xfree86/int10/Makefile ? xc/programs/Xserver/hw/xfree86/loader/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/bus/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/linux/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/linux/drm/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/linux/int10/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/linux/int10/vm86/Makefile ? xc/programs/Xserver/hw/xfree86/os-support/misc/Makefile ? xc/programs/Xserver/hw/xfree86/parser/Makefile ? xc/programs/Xserver/hw/xfree86/rac/Makefile ? xc/programs/Xserver/hw/xfree86/ramdac/Makefile ? xc/programs/Xserver/hw/xfree86/scanpci/Makefile ? xc/programs/Xserver/hw/xfree86/scanpci/pci.ids ? xc/programs/Xserver/hw/xfree86/scanpci/xf86PciIds.h ? xc/programs/Xserver/hw/xfree86/scanpci/module/Makefile ? xc/programs/Xserver/hw/xfree86/sdk/Makefile ? xc/programs/Xserver/hw/xfree86/shadowfb/Makefile ? xc/programs/Xserver/hw/xfree86/vbe/Makefile ? xc/programs/Xserver/hw/xfree86/vgahw/Makefile ? xc/programs/Xserver/hw/xfree86/xaa/Makefile ? xc/programs/Xserver/hw/xfree86/xaa/lsb_first/Makefile ? xc/programs/Xserver/hw/xfree86/xaa/lsb_fixed/Makefile ? xc/programs/Xserver/hw/xfree86/xaa/msb_first/Makefile ? xc/programs/Xserver/hw/xfree86/xaa/msb_fixed/Makefile ? xc/programs/Xserver/hw/xfree86/xf24_32bpp/Makefile ? xc/programs/Xserver/hw/xfree86/xf86cfg/Makefile ? xc/programs/Xserver/hw/xfree86/xf86config/Makefile ? xc/programs/Xserver/hw/xfree86/xf8_16bpp/Makefile ? xc/programs/Xserver/hw/xfree86/xf8_32bpp/Makefile ? xc/programs/Xserver/include/Makefile ? xc/programs/Xserver/lbx/Makefile ? xc/programs/Xserver/mfb/Makefile ? xc/programs/Xserver/mi/Makefile ? xc/programs/Xserver/miext/layer/Makefile ? xc/programs/Xserver/miext/shadow/Makefile ? xc/programs/Xserver/os/Makefile ? xc/programs/Xserver/randr/Makefile ? xc/programs/Xserver/record/Makefile ? xc/programs/Xserver/record/module/Makefile ? xc/programs/Xserver/render/Makefile ? xc/programs/Xserver/xkb/Makefile ? xc/programs/xdriinfo/Makefile Index: xc/config/cf/host.def =================================================================== RCS file: /cvs/dri/xc/xc/config/cf/host.def,v retrieving revision 1.65 diff -u -u -r1.65 host.def --- a/xc/config/cf/host.def 12 Feb 2004 16:35:32 -0000 1.65 +++ b/xc/config/cf/host.def 12 Mar 2004 19:10:47 -0000 @@ -5,7 +5,7 @@ #define XFree86CustomVersion "DRI trunk" /* You need this now */ -#define MesaSrcDir /X11R6/SourceForge/Mesanew/Mesa-newtree +#define MesaSrcDir /home/mesa/Mesa /* Don't use any special flags by default, but leave this here commented out Index: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux =================================================================== RCS file: /cvs/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux,v retrieving revision 1.61 diff -u -u -r1.61 Makefile.linux --- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux 22 Feb 2004 16:20:16 -0000 1.61 +++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux 12 Mar 2004 19:10:55 -0000 @@ -209,7 +209,7 @@ # Make sure that the shared source files are linked into this directory. -SHAREDDIR := ../../../shared/drm/kernel +SHAREDDIR := ../shared HASSHARED := $(shell if [ -d $(SHAREDDIR) ]; then echo y; fi) Index: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h =================================================================== RCS file: /cvs/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h,v retrieving revision 1.89 diff -u -u -r1.89 drmP.h --- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h 28 Feb 2004 14:29:44 -0000 1.89 +++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h 12 Mar 2004 19:10:55 -0000 @@ -505,18 +505,6 @@ drm_freelist_t freelist; } drm_buf_entry_t; -/** - * Hardware lock. - * - * The lock structure is a simple cache-line aligned integer. To avoid - * processor bus contention on a multiprocessor system, there should not be any - * other data stored in the same cache line. - */ -typedef struct drm_hw_lock { - __volatile__ unsigned int lock; /**< lock variable */ - char padding[60]; /**< Pad to cache line */ -} drm_hw_lock_t; - /** File private data */ typedef struct drm_file { int authenticated; Index: xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm.h =================================================================== RCS file: /cvs/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm.h,v retrieving revision 1.48 diff -u -u -r1.48 drm.h --- a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm.h 5 Nov 2003 02:08:31 -0000 1.48 +++ b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm.h 12 Mar 2004 19:11:01 -0000 @@ -135,6 +135,18 @@ unsigned int age; } drm_tex_region_t; +/** + * Hardware lock. + * + * The lock structure is a simple cache-line aligned integer. To avoid + * processor bus contention on a multiprocessor system, there should not be any + * other data stored in the same cache line. + */ +typedef struct drm_hw_lock { + __volatile__ unsigned int lock; /**< lock variable */ + char padding[60]; /**< Pad to cache line */ +} drm_hw_lock_t; + /** * DRM_IOCTL_VERSION ioctl argument type. Index: xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm_sarea.h =================================================================== RCS file: /cvs/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm_sarea.h,v retrieving revision 1.2 diff -u -u -r1.2 drm_sarea.h --- a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm_sarea.h 27 May 2003 00:37:33 -0000 1.2 +++ b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/drm_sarea.h 12 Mar 2004 19:11:01 -0000 @@ -2,7 +2,7 @@ * \file drm_sarea.h * \brief SAREA definitions * - * \author Michel Dänzer + * \author Michel D�zer */ /* @@ -32,9 +32,23 @@ #ifndef _DRM_SAREA_H_ #define _DRM_SAREA_H_ +#include "drm.h" + +/* SAREA area needs to be at least a page */ +#if defined(__alpha__) +#define SAREA_MAX 0x2000 +#elif defined(__ia64__) +#define SAREA_MAX 0x10000 /* 64kB */ +#else +/* Intel 830M driver needs at least 8k SAREA */ +#define SAREA_MAX 0x2000 +#endif + /** Maximum number of drawables in the SAREA */ #define SAREA_MAX_DRAWABLES 256 +#define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000 + /** SAREA drawable */ typedef struct drm_sarea_drawable { unsigned int stamp; Index: xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/r128_drm.h =================================================================== RCS file: /cvs/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/r128_drm.h,v retrieving revision 1.6 diff -u -u -r1.6 r128_drm.h --- a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/r128_drm.h 12 Aug 2003 21:48:16 -0000 1.6 +++ b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/r128_drm.h 12 Mar 2004 19:11:04 -0000 @@ -176,43 +176,66 @@ /* Rage 128 specific ioctls * The device specific ioctl range is 0x40 to 0x79. */ -#define DRM_IOCTL_R128_INIT DRM_IOW( 0x40, drm_r128_init_t) -#define DRM_IOCTL_R128_CCE_START DRM_IO( 0x41) -#define DRM_IOCTL_R128_CCE_STOP DRM_IOW( 0x42, drm_r128_cce_stop_t) -#define DRM_IOCTL_R128_CCE_RESET DRM_IO( 0x43) -#define DRM_IOCTL_R128_CCE_IDLE DRM_IO( 0x44) -#define DRM_IOCTL_R128_RESET DRM_IO( 0x46) -#define DRM_IOCTL_R128_SWAP DRM_IO( 0x47) -#define DRM_IOCTL_R128_CLEAR DRM_IOW( 0x48, drm_r128_clear_t) -#define DRM_IOCTL_R128_VERTEX DRM_IOW( 0x49, drm_r128_vertex_t) -#define DRM_IOCTL_R128_INDICES DRM_IOW( 0x4a, drm_r128_indices_t) -#define DRM_IOCTL_R128_BLIT DRM_IOW( 0x4b, drm_r128_blit_t) -#define DRM_IOCTL_R128_DEPTH DRM_IOW( 0x4c, drm_r128_depth_t) -#define DRM_IOCTL_R128_STIPPLE DRM_IOW( 0x4d, drm_r128_stipple_t) -#define DRM_IOCTL_R128_INDIRECT DRM_IOWR(0x4f, drm_r128_indirect_t) -#define DRM_IOCTL_R128_FULLSCREEN DRM_IOW( 0x50, drm_r128_fullscreen_t) -#define DRM_IOCTL_R128_CLEAR2 DRM_IOW( 0x51, drm_r128_clear2_t) -#define DRM_IOCTL_R128_GETPARAM DRM_IOW( 0x52, drm_r128_getparam_t) -#define DRM_IOCTL_R128_FLIP DRM_IO( 0x53) - -typedef struct drm_r128_init { - enum { - R128_INIT_CCE = 0x01, - R128_CLEANUP_CCE = 0x02 - } func; +#define DRM_R128_INIT 0x00 +#define DRM_R128_CCE_START 0x01 +#define DRM_R128_CCE_STOP 0x02 +#define DRM_R128_CCE_RESET 0x03 +#define DRM_R128_CCE_IDLE 0x04 +/* 0x05 not used */ +#define DRM_R128_RESET 0x06 +#define DRM_R128_SWAP 0x07 +#define DRM_R128_CLEAR 0x08 +#define DRM_R128_VERTEX 0x09 +#define DRM_R128_INDICES 0x0a +#define DRM_R128_BLIT 0x0b +#define DRM_R128_DEPTH 0x0c +#define DRM_R128_STIPPLE 0x0d +/* 0x0e not used */ +#define DRM_R128_INDIRECT 0x0f +#define DRM_R128_FULLSCREEN 0x10 +#define DRM_R128_CLEAR2 0x11 +#define DRM_R128_GETPARAM 0x12 +#define DRM_R128_FLIP 0x13 + +#define DRM_IOCTL_R128_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_R128_INIT, drm_r128_init_t) +#define DRM_IOCTL_R128_CCE_START DRM_IO( DRM_COMMAND_BASE + DRM_R128_CCE_START) +#define DRM_IOCTL_R128_CCE_STOP DRM_IOW( DRM_COMMAND_BASE + DRM_R128_CCE_STOP, drm_r128_cce_stop_t) +#define DRM_IOCTL_R128_CCE_RESET DRM_IO( DRM_COMMAND_BASE + DRM_R128_CCE_RESET) +#define DRM_IOCTL_R128_CCE_IDLE DRM_IO( DRM_COMMAND_BASE + DRM_R128_CCE_IDLE) +/* 0x05 not used */ +#define DRM_IOCTL_R128_RESET DRM_IO( DRM_COMMAND_BASE + DRM_R128_RESET) +#define DRM_IOCTL_R128_SWAP DRM_IO( DRM_COMMAND_BASE + DRM_R128_SWAP) +#define DRM_IOCTL_R128_CLEAR DRM_IOW( DRM_COMMAND_BASE + DRM_R128_CLEAR, drm_r128_clear_t) +#define DRM_IOCTL_R128_VERTEX DRM_IOW( DRM_COMMAND_BASE + DRM_R128_VERTEX, drm_r128_vertex_t) +#define DRM_IOCTL_R128_INDICES DRM_IOW( DRM_COMMAND_BASE + DRM_R128_INDICES, drm_r128_indices_t) +#define DRM_IOCTL_R128_BLIT DRM_IOW( DRM_COMMAND_BASE + DRM_R128_BLIT, drm_r128_blit_t) +#define DRM_IOCTL_R128_DEPTH DRM_IOW( DRM_COMMAND_BASE + DRM_R128_DEPTH, drm_r128_depth_t) +#define DRM_IOCTL_R128_STIPPLE DRM_IOW( DRM_COMMAND_BASE + DRM_R128_STIPPLE, drm_r128_stipple_t) +/* 0x0e not used */ +#define DRM_IOCTL_R128_INDIRECT DRM_IOWR(DRM_COMMAND_BASE + DRM_R128_INDIRECT, drm_r128_indirect_t) +#define DRM_IOCTL_R128_FULLSCREEN DRM_IOW( DRM_COMMAND_BASE + DRM_R128_FULLSCREEN, drm_r128_fullscreen_t) +#define DRM_IOCTL_R128_CLEAR2 DRM_IOW( DRM_COMMAND_BASE + DRM_R128_CLEAR2, drm_r128_clear2_t) +#define DRM_IOCTL_R128_GETPARAM DRM_IOW( DRM_COMMAND_BASE + DRM_R128_GETPARAM, drm_r128_getparam_t) +#define DRM_IOCTL_R128_FLIP DRM_IO( DRM_COMMAND_BASE + DRM_R128_FLIP) + +typedef struct drm_r128_init { + enum { + R128_INIT_CCE = 0x01, + R128_CLEANUP_CCE = 0x02 + } func; #if CONFIG_XFREE86_VERSION < XFREE86_VERSION(4,1,0,0) - int sarea_priv_offset; -#else - unsigned long sarea_priv_offset; -#endif - int is_pci; - int cce_mode; - int cce_secure; - int ring_size; - int usec_timeout; - - unsigned int fb_bpp; - unsigned int front_offset, front_pitch; + int sarea_priv_offset; +#else + unsigned long sarea_priv_offset; +#endif + int is_pci; + int cce_mode; + int cce_secure; + int ring_size; + int usec_timeout; + + unsigned int fb_bpp; + unsigned int front_offset, front_pitch; unsigned int back_offset, back_pitch; unsigned int depth_bpp; unsigned int depth_offset, depth_pitch; @@ -316,7 +339,7 @@ typedef struct drm_r128_getparam { int param; - int *value; + void *value; } drm_r128_getparam_t; #endif Index: xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/radeon_drm.h =================================================================== RCS file: /cvs/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/radeon_drm.h,v retrieving revision 1.18 diff -u -u -r1.18 radeon_drm.h --- a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/radeon_drm.h 4 Nov 2003 00:46:05 -0000 1.18 +++ b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/radeon_drm.h 12 Mar 2004 19:11:06 -0000 @@ -226,6 +226,13 @@ #define RADEON_MAX_TEXTURE_LEVELS 12 #define RADEON_MAX_TEXTURE_UNITS 3 +/* Blits have strict offset rules. All blit offset must be aligned on + * a 1K-byte boundary. + */ +#define RADEON_OFFSET_SHIFT 10 +#define RADEON_OFFSET_ALIGN (1 << RADEON_OFFSET_SHIFT) +#define RADEON_OFFSET_MASK (RADEON_OFFSET_ALIGN - 1) + #endif /* __RADEON_SAREA_DEFINES__ */ typedef struct { @@ -365,33 +372,59 @@ /* Radeon specific ioctls * The device specific ioctl range is 0x40 to 0x79. */ -#define DRM_IOCTL_RADEON_CP_INIT DRM_IOW( 0x40, drm_radeon_init_t) -#define DRM_IOCTL_RADEON_CP_START DRM_IO( 0x41) -#define DRM_IOCTL_RADEON_CP_STOP DRM_IOW( 0x42, drm_radeon_cp_stop_t) -#define DRM_IOCTL_RADEON_CP_RESET DRM_IO( 0x43) -#define DRM_IOCTL_RADEON_CP_IDLE DRM_IO( 0x44) -#define DRM_IOCTL_RADEON_RESET DRM_IO( 0x45) -#define DRM_IOCTL_RADEON_FULLSCREEN DRM_IOW( 0x46, drm_radeon_fullscreen_t) -#define DRM_IOCTL_RADEON_SWAP DRM_IO( 0x47) -#define DRM_IOCTL_RADEON_CLEAR DRM_IOW( 0x48, drm_radeon_clear_t) -#define DRM_IOCTL_RADEON_VERTEX DRM_IOW( 0x49, drm_radeon_vertex_t) -#define DRM_IOCTL_RADEON_INDICES DRM_IOW( 0x4a, drm_radeon_indices_t) -#define DRM_IOCTL_RADEON_STIPPLE DRM_IOW( 0x4c, drm_radeon_stipple_t) -#define DRM_IOCTL_RADEON_INDIRECT DRM_IOWR(0x4d, drm_radeon_indirect_t) -#define DRM_IOCTL_RADEON_TEXTURE DRM_IOWR(0x4e, drm_radeon_texture_t) -#define DRM_IOCTL_RADEON_VERTEX2 DRM_IOW( 0x4f, drm_radeon_vertex2_t) -#define DRM_IOCTL_RADEON_CMDBUF DRM_IOW( 0x50, drm_radeon_cmd_buffer_t) -#define DRM_IOCTL_RADEON_GETPARAM DRM_IOWR(0x51, drm_radeon_getparam_t) -#define DRM_IOCTL_RADEON_FLIP DRM_IO( 0x52) -#define DRM_IOCTL_RADEON_ALLOC DRM_IOWR( 0x53, drm_radeon_mem_alloc_t) -#define DRM_IOCTL_RADEON_FREE DRM_IOW( 0x54, drm_radeon_mem_free_t) -#define DRM_IOCTL_RADEON_INIT_HEAP DRM_IOW( 0x55, drm_radeon_mem_init_heap_t) -#define DRM_IOCTL_RADEON_IRQ_EMIT DRM_IOWR( 0x56, drm_radeon_irq_emit_t) -#define DRM_IOCTL_RADEON_IRQ_WAIT DRM_IOW( 0x57, drm_radeon_irq_wait_t) -/* added by Charl P. Botha - see radeon_cp.c for details */ -#define DRM_IOCTL_RADEON_CP_RESUME DRM_IO(0x58) -#define DRM_IOCTL_RADEON_SETPARAM DRM_IOW(0x59, drm_radeon_setparam_t) - +#define DRM_RADEON_CP_INIT 0x00 +#define DRM_RADEON_CP_START 0x01 +#define DRM_RADEON_CP_STOP 0x02 +#define DRM_RADEON_CP_RESET 0x03 +#define DRM_RADEON_CP_IDLE 0x04 +#define DRM_RADEON_RESET 0x05 +#define DRM_RADEON_FULLSCREEN 0x06 +#define DRM_RADEON_SWAP 0x07 +#define DRM_RADEON_CLEAR 0x08 +#define DRM_RADEON_VERTEX 0x09 +#define DRM_RADEON_INDICES 0x0A +#define DRM_RADEON_NOT_USED +#define DRM_RADEON_STIPPLE 0x0C +#define DRM_RADEON_INDIRECT 0x0D +#define DRM_RADEON_TEXTURE 0x0E +#define DRM_RADEON_VERTEX2 0x0F +#define DRM_RADEON_CMDBUF 0x10 +#define DRM_RADEON_GETPARAM 0x11 +#define DRM_RADEON_FLIP 0x12 +#define DRM_RADEON_ALLOC 0x13 +#define DRM_RADEON_FREE 0x14 +#define DRM_RADEON_INIT_HEAP 0x15 +#define DRM_RADEON_IRQ_EMIT 0x16 +#define DRM_RADEON_IRQ_WAIT 0x17 +#define DRM_RADEON_CP_RESUME 0x18 +#define DRM_RADEON_SETPARAM 0x19 + +#define DRM_IOCTL_RADEON_CP_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CP_INIT, drm_radeon_init_t) +#define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) +#define DRM_IOCTL_RADEON_CP_STOP DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CP_STOP, drm_radeon_cp_stop_t) +#define DRM_IOCTL_RADEON_CP_RESET DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_RESET) +#define DRM_IOCTL_RADEON_CP_IDLE DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_IDLE) +#define DRM_IOCTL_RADEON_RESET DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_RESET) +#define DRM_IOCTL_RADEON_FULLSCREEN DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_FULLSCREEN, drm_radeon_fullscreen_t) +#define DRM_IOCTL_RADEON_SWAP DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_SWAP) +#define DRM_IOCTL_RADEON_CLEAR DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CLEAR, drm_radeon_clear_t) +#define DRM_IOCTL_RADEON_VERTEX DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_VERTEX, drm_radeon_vertex_t) +#define DRM_IOCTL_RADEON_INDICES DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_INDICES, drm_radeon_indices_t) +#define DRM_IOCTL_RADEON_STIPPLE DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_STIPPLE, drm_radeon_stipple_t) +#define DRM_IOCTL_RADEON_INDIRECT DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_INDIRECT, drm_radeon_indirect_t) +#define DRM_IOCTL_RADEON_TEXTURE DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_TEXTURE, drm_radeon_texture_t) +#define DRM_IOCTL_RADEON_VERTEX2 DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_VERTEX2, drm_radeon_vertex2_t) +#define DRM_IOCTL_RADEON_CMDBUF DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CMDBUF, drm_radeon_cmd_buffer_t) +#define DRM_IOCTL_RADEON_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GETPARAM, drm_radeon_getparam_t) +#define DRM_IOCTL_RADEON_FLIP DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_FLIP) +#define DRM_IOCTL_RADEON_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_ALLOC, drm_radeon_mem_alloc_t) +#define DRM_IOCTL_RADEON_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_FREE, drm_radeon_mem_free_t) +#define DRM_IOCTL_RADEON_INIT_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_INIT_HEAP, drm_radeon_mem_init_heap_t) +#define DRM_IOCTL_RADEON_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_IRQ_EMIT, drm_radeon_irq_emit_t) +#define DRM_IOCTL_RADEON_IRQ_WAIT DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_IRQ_WAIT, drm_radeon_irq_wait_t) +#define DRM_IOCTL_RADEON_CP_RESUME DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_RESUME) +#define DRM_IOCTL_RADEON_SETPARAM DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_SETPARAM, drm_radeon_setparam_t) + typedef struct drm_radeon_init { enum { RADEON_INIT_CP = 0x01, @@ -542,7 +575,7 @@ typedef struct drm_radeon_getparam { int param; - int *value; + void *value; } drm_radeon_getparam_t; /* 1.6: Set up a memory manager for regions of shared memory: