patch-2.2.8 linux/drivers/video/matroxfb.c
Next file: linux/drivers/video/offb.c
Previous file: linux/drivers/usb/usb.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Thu Apr 29 12:53:48 1999
- Orig file:
v2.2.7/linux/drivers/video/matroxfb.c
- Orig date:
Wed Apr 28 11:37:30 1999
diff -u --recursive --new-file v2.2.7/linux/drivers/video/matroxfb.c linux/drivers/video/matroxfb.c
@@ -57,6 +57,9 @@
* "H. Peter Arvin" <hpa@transmeta.com>
* Ideas
*
+ * "Cort Dougan" <cort@cs.nmt.edu>
+ * CHRP fixes and PReP cleanup
+ *
* (following author is not in any relation with this code, but his code
* is included in this driver)
*
@@ -187,14 +190,8 @@
#if defined(__m68k__)
#define MAP_BUSTOVIRT
#else
-#if defined(CONFIG_PPC) && defined(CONFIG_PREP) && defined(_ISA_MEM_BASE)
-/* do not tell me that PPC is not broken... if ioremap() oops with
- invalid value written to msr... */
-#define MAP_ISAMEMBASE
-#else
#define MAP_IOREMAP
#endif
-#endif
#ifdef DEBUG
#define dprintk(X...) printk(X)
@@ -354,11 +351,7 @@
#ifdef MAP_BUSTOVIRT
virt->vaddr = bus_to_virt(phys);
#else
-#ifdef MAP_ISAMEMBASE
- virt->vaddr = (void*)(phys + _ISA_MEM_BASE);
-#else
#error "Your architecture does not have neither ioremap nor bus_to_virt... Giving up"
-#endif
#endif
#endif
return (virt->vaddr == 0); /* 0, !0... 0, error_code in future */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)