linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl>
To: alan@lxorguk.ukuu.org.uk (Alan Cox),
	linux-kernel@vger.kernel.org (kernel list)
Subject: [PATCH] double DRM - fixes
Date: Fri, 10 Aug 2001 01:48:31 +0200 (CEST)	[thread overview]
Message-ID: <200108092348.BAA08571@green.mif.pg.gda.pl> (raw)

Hi,
   The following patch shold fix in -ac10
- configuration of DRM with xconfig
- build of ald drm driver

Andrzej
*************************************************
diff -uNr linux-2.4.7-ac10/Makefile linux/Makefile
--- linux-2.4.7-ac10/Makefile	Thu Aug  9 02:50:37 2001
+++ linux/Makefile	Fri Aug 10 00:40:31 2001
@@ -145,7 +145,8 @@
 	drivers/net/net.o \
 	drivers/media/media.o
 DRIVERS-$(CONFIG_AGP) += drivers/char/agp/agp.o
-DRIVERS-$(CONFIG_DRM) += drivers/char/drm/drm.o
+DRIVERS-$(CONFIG_DRM_NEW) += drivers/char/drm/drm.o
+DRIVERS-$(CONFIG_DRM_OLD) += drivers/char/drm-4.0/drm.o
 DRIVERS-$(CONFIG_NUBUS) += drivers/nubus/nubus.a
 DRIVERS-$(CONFIG_ISDN) += drivers/isdn/isdn.a
 DRIVERS-$(CONFIG_NET_FC) += drivers/net/fc/fc.o
diff -uNr linux-2.4.7-ac10/drivers/char/Config.in linux/drivers/char/Config.in
--- linux-2.4.7-ac10/drivers/char/Config.in	Thu Aug  9 02:50:37 2001
+++ linux/drivers/char/Config.in	Fri Aug 10 00:42:24 2001
@@ -203,6 +203,7 @@
    if [ "$CONFIG_DRM_NEW" = "y" ]; then
       source drivers/char/drm/Config.in
    else
+      define_bool CONFIG_DRM_OLD y
       source drivers/char/drm-4.0/Config.in
    fi
 fi
diff -uNr linux-2.4.7-ac10/drivers/char/Makefile linux/drivers/char/Makefile
--- linux-2.4.7-ac10/drivers/char/Makefile	Sun Aug  5 21:15:51 2001
+++ linux/drivers/char/Makefile	Fri Aug 10 00:41:19 2001
@@ -188,7 +188,8 @@
 obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
 
 subdir-$(CONFIG_FTAPE) += ftape
-subdir-$(CONFIG_DRM) += drm
+subdir-$(CONFIG_DRM_NEW) += drm
+subdir-$(CONFIG_DRM_OLD) += drm-4.0
 subdir-$(CONFIG_PCMCIA) += pcmcia
 subdir-$(CONFIG_AGP) += agp
 
diff -uNr linux-2.4.7-ac10/drivers/char/drm-4.0/Config.in linux/drivers/char/drm-4.0/Config.in
--- linux-2.4.7-ac10/drivers/char/drm-4.0/Config.in	Thu Aug  9 02:50:37 2001
+++ linux/drivers/char/drm-4.0/Config.in	Thu Aug  9 22:55:50 2001
@@ -5,9 +5,9 @@
 # Direct Rendering Infrastructure (DRI) in XFree86 4.x.
 #
 
-tristate '  3dfx Banshee/Voodoo3+' CONFIG_DRM_TDFX
-tristate '  3dlabs GMX 2000' CONFIG_DRM_GAMMA
-dep_tristate '  ATI Rage 128' CONFIG_DRM_R128 $CONFIG_AGP
-dep_tristate '  ATI Radeon' CONFIG_DRM_RADEON $CONFIG_AGP
-dep_tristate '  Intel I810' CONFIG_DRM_I810 $CONFIG_AGP
-dep_tristate '  Matrox g200/g400' CONFIG_DRM_MGA $CONFIG_AGP
+tristate '  3dfx Banshee/Voodoo3+' CONFIG_DRM40_TDFX
+tristate '  3dlabs GMX 2000' CONFIG_DRM40_GAMMA
+dep_tristate '  ATI Rage 128' CONFIG_DRM40_R128 $CONFIG_AGP
+dep_tristate '  ATI Radeon' CONFIG_DRM40_RADEON $CONFIG_AGP
+dep_tristate '  Intel I810' CONFIG_DRM40_I810 $CONFIG_AGP
+dep_tristate '  Matrox g200/g400' CONFIG_DRM40_MGA $CONFIG_AGP
diff -uNr linux-2.4.7-ac10/drivers/char/drm-4.0/Makefile linux/drivers/char/drm-4.0/Makefile
--- linux-2.4.7-ac10/drivers/char/drm-4.0/Makefile	Thu Aug  9 02:50:37 2001
+++ linux/drivers/char/drm-4.0/Makefile	Thu Aug  9 22:55:38 2001
@@ -49,13 +49,13 @@
 i810-objs   := i810_drv.o   i810_dma.o    i810_context.o i810_bufs.o
 radeon-objs := radeon_drv.o radeon_cp.o   radeon_context.o radeon_bufs.o radeon_state.o
 
-obj-$(CONFIG_DRM_GAMMA) += gamma.o
-obj-$(CONFIG_DRM_TDFX)  += tdfx.o
-obj-$(CONFIG_DRM_R128)  += r128.o
-obj-$(CONFIG_DRM_RADEON)+= radeon.o
-obj-$(CONFIG_DRM_FFB)   += ffb.o
-obj-$(CONFIG_DRM_MGA)   += mga.o
-obj-$(CONFIG_DRM_I810)  += i810.o
+obj-$(CONFIG_DRM40_GAMMA) += gamma.o
+obj-$(CONFIG_DRM40_TDFX)  += tdfx.o
+obj-$(CONFIG_DRM40_R128)  += r128.o
+obj-$(CONFIG_DRM40_RADEON)+= radeon.o
+obj-$(CONFIG_DRM40_FFB)   += ffb.o
+obj-$(CONFIG_DRM40_MGA)   += mga.o
+obj-$(CONFIG_DRM40_I810)  += i810.o
 
 
 # When linking into the kernel, link the library just once. 
diff -uNr linux-2.4.7-ac10/drivers/char/drm-4.0/drm.h linux/drivers/char/drm-4.0/drm.h
--- linux-2.4.7-ac10/drivers/char/drm-4.0/drm.h	Thu Aug  9 02:50:37 2001
+++ linux/drivers/char/drm-4.0/drm.h	Thu Aug  9 22:56:43 2001
@@ -84,7 +84,7 @@
 #include "i810_drm.h"
 #include "r128_drm.h"
 #include "radeon_drm.h"
-#ifdef CONFIG_DRM_SIS
+#ifdef CONFIG_DRM40_SIS
 #include "sis_drm.h"
 #endif
 
@@ -399,7 +399,7 @@
 #define DRM_IOCTL_RADEON_STIPPLE	DRM_IOW( 0x4c, drm_radeon_stipple_t)
 #define DRM_IOCTL_RADEON_INDIRECT	DRM_IOWR(0x4d, drm_radeon_indirect_t)
 
-#ifdef CONFIG_DRM_SIS
+#ifdef CONFIG_DRM40_SIS
 /* SiS specific ioctls */
 #define SIS_IOCTL_FB_ALLOC		DRM_IOWR(0x44, drm_sis_mem_t)
 #define SIS_IOCTL_FB_FREE		DRM_IOW( 0x45, drm_sis_mem_t)


-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

             reply	other threads:[~2001-08-09 23:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-09 23:48 Andrzej Krzysztofowicz [this message]
2001-08-10 13:33 [PATCH] double DRM - fixes Andrzej Krzysztofowicz
     [not found] <no.id>
2001-08-10 14:20 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200108092348.BAA08571@green.mif.pg.gda.pl \
    --to=ankry@green.mif.pg.gda.pl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).