diff options
Diffstat (limited to 'drivers/video/fbdev/matrox/matroxfb_base.h')
-rw-r--r-- | drivers/video/fbdev/matrox/matroxfb_base.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/drivers/video/fbdev/matrox/matroxfb_base.h b/drivers/video/fbdev/matrox/matroxfb_base.h index 89a8a89a5eb2..09b02cd1eb0e 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.h +++ b/drivers/video/fbdev/matrox/matroxfb_base.h | |||
@@ -44,9 +44,6 @@ | |||
44 | 44 | ||
45 | #include <asm/io.h> | 45 | #include <asm/io.h> |
46 | #include <asm/unaligned.h> | 46 | #include <asm/unaligned.h> |
47 | #ifdef CONFIG_MTRR | ||
48 | #include <asm/mtrr.h> | ||
49 | #endif | ||
50 | 47 | ||
51 | #if defined(CONFIG_PPC_PMAC) | 48 | #if defined(CONFIG_PPC_PMAC) |
52 | #include <asm/prom.h> | 49 | #include <asm/prom.h> |
@@ -187,23 +184,6 @@ static inline void __iomem* vaddr_va(vaddr_t va) { | |||
187 | return va.vaddr; | 184 | return va.vaddr; |
188 | } | 185 | } |
189 | 186 | ||
190 | #define MGA_IOREMAP_NORMAL 0 | ||
191 | #define MGA_IOREMAP_NOCACHE 1 | ||
192 | |||
193 | #define MGA_IOREMAP_FB MGA_IOREMAP_NOCACHE | ||
194 | #define MGA_IOREMAP_MMIO MGA_IOREMAP_NOCACHE | ||
195 | static inline int mga_ioremap(unsigned long phys, unsigned long size, int flags, vaddr_t* virt) { | ||
196 | if (flags & MGA_IOREMAP_NOCACHE) | ||
197 | virt->vaddr = ioremap_nocache(phys, size); | ||
198 | else | ||
199 | virt->vaddr = ioremap(phys, size); | ||
200 | return (virt->vaddr == NULL); /* 0, !0... 0, error_code in future */ | ||
201 | } | ||
202 | |||
203 | static inline void mga_iounmap(vaddr_t va) { | ||
204 | iounmap(va.vaddr); | ||
205 | } | ||
206 | |||
207 | struct my_timming { | 187 | struct my_timming { |
208 | unsigned int pixclock; | 188 | unsigned int pixclock; |
209 | int mnp; | 189 | int mnp; |
@@ -449,12 +429,7 @@ struct matrox_fb_info { | |||
449 | int plnwt; | 429 | int plnwt; |
450 | int srcorg; | 430 | int srcorg; |
451 | } capable; | 431 | } capable; |
452 | #ifdef CONFIG_MTRR | 432 | int wc_cookie; |
453 | struct { | ||
454 | int vram; | ||
455 | int vram_valid; | ||
456 | } mtrr; | ||
457 | #endif | ||
458 | struct { | 433 | struct { |
459 | int precise_width; | 434 | int precise_width; |
460 | int mga_24bpp_fix; | 435 | int mga_24bpp_fix; |