Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] Get your Matrox PCI cards out of the basement ...
@ 2004-06-02 22:17 Thomas Bogendoerfer
  2004-06-03  3:23 ` M. Grabert
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Bogendoerfer @ 2004-06-02 22:17 UTC (permalink / raw)
  To: parisc-linux

....I got the matroxfb driver working on my B2600 including X on top
of fbdev (the mga driver doesn't work yet). So far I just used
a very old Matrox Millenium I. Below is the necessary patch for
2.6.7-rc1.

Have fun,
Thomas.


Index: matroxfb_base.h
===================================================================
RCS file: /home/cvs/parisc/linux-2.6/drivers/video/matrox/matroxfb_base.h,v
retrieving revision 1.3
diff -u -p -r1.3 matroxfb_base.h
--- matroxfb_base.h	18 Oct 2003 00:23:18 -0000	1.3
+++ matroxfb_base.h	2 Jun 2004 21:18:34 -0000
@@ -99,7 +99,7 @@
 #endif
 #endif
 
-#if defined(__alpha__) || defined(__mc68000__)
+#if defined(__alpha__) || defined(__mc68000__) || defined(__hppa__)
 #define READx_WORKS
 #define MEMCPYTOIO_WORKS
 #else
@@ -165,27 +165,27 @@ typedef struct {
 
 #ifdef READx_WORKS
 static inline unsigned int mga_readb(vaddr_t va, unsigned int offs) {
-	return readb(va.vaddr + offs);
+	return fb_readb(va.vaddr + offs);
 }
 
 static inline unsigned int mga_readw(vaddr_t va, unsigned int offs) {
-	return readw(va.vaddr + offs);
+	return fb_readw(va.vaddr + offs);
 }
 
 static inline u_int32_t mga_readl(vaddr_t va, unsigned int offs) {
-	return readl(va.vaddr + offs);
+	return fb_readl(va.vaddr + offs);
 }
 
 static inline void mga_writeb(vaddr_t va, unsigned int offs, u_int8_t value) {
-	writeb(value, va.vaddr + offs);
+	fb_writeb(value, va.vaddr + offs);
 }
 
 static inline void mga_writew(vaddr_t va, unsigned int offs, u_int16_t value) {
-	writew(value, va.vaddr + offs);
+	fb_writew(value, va.vaddr + offs);
 }
 
 static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) {
-	writel(value, va.vaddr + offs);
+	fb_writel(value, va.vaddr + offs);
 }
 #else
 static inline unsigned int mga_readb(vaddr_t va, unsigned int offs) {


-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                 [ Alexander Viro on linux-kernel ]
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-05  9:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-02 22:17 [parisc-linux] Get your Matrox PCI cards out of the basement Thomas Bogendoerfer
2004-06-03  3:23 ` M. Grabert
2004-06-03 13:35   ` Michael S. Zick
     [not found]     ` <20040603151347.GB23488@sal.ucc.ie>
2004-06-03 16:07       ` Michael S. Zick
2004-06-03 13:38   ` Thomas Bogendoerfer
2004-06-05  9:47     ` Success! was Re: [parisc-linux] Get your Matrox M. Grabert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox