patch-2.4.20 linux-2.4.20/drivers/video/vga.h
Next file: linux-2.4.20/drivers/zorro/proc.c
Previous file: linux-2.4.20/drivers/video/vesafb.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/drivers/video/vga.h
- Orig date:
Mon Dec 11 13:17:24 2000
diff -urN linux-2.4.19/drivers/video/vga.h linux-2.4.20/drivers/video/vga.h
@@ -22,6 +22,19 @@
#include <asm/io.h>
#ifndef CONFIG_AMIGA
#include <asm/vga.h>
+#else
+/*
+ * FIXME
+ * Ugh, we don't have PCI space, so map readb() and friends to use Zorro space
+ * for MMIO accesses. This should make clgenfb work again on Amiga
+ */
+#define inb(port) 0
+#define inw(port) 0
+#define outb(port, val) do { } while (0)
+#define outw(port, val) do { } while (0)
+#define readb z_readb
+#define writeb z_writeb
+#define writew z_writew
#endif
#include <asm/byteorder.h>
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)