Skip to contentSkip to conversation

atyfb: MTRR support

PATCH New Ville Syrjälä 1 participant 1 message Aug 24, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atyfb: MTRR support

The attached patch adds MTRR support to atyfb.

Write-combining is enabled for the whole PCI resource and an uncachable hole is made for MMIO registers if necessary.

I also changed aty_init() to return 0 on success like the other functions.

Signature · 3 lines
Ville Syrjälä
[email protected]
http://www.sci.fi/~syrjala/
drivers/video/aty/atyfb.h +4 -0
diff -NaurbB linux-irq2/drivers/video/aty/atyfb.h linux-mtrr/drivers/video/aty/atyfb.h
@@ -178,6 +178,10 @@
 	unsigned long irq_flags;
 	unsigned int irq;
 	spinlock_t int_lock;
+#ifdef CONFIG_MTRR
+	int mtrr_aper;
+	int mtrr_reg;
+#endif
 };
 
     /*
drivers/video/aty/atyfb_base.c +46 -5

110 lines not on this page · raw message