patch-2.3.15 linux/include/video/fbcon.h
Next file: linux/ipc/msg.c
Previous file: linux/include/net/udp.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Aug 25 14:57:47 1999
- Orig file:
v2.3.14/linux/include/video/fbcon.h
- Orig date:
Thu Feb 25 10:02:12 1999
diff -u --recursive --new-file v2.3.14/linux/include/video/fbcon.h linux/include/video/fbcon.h
@@ -510,4 +510,25 @@
#endif
+
+#if defined(__i386__) || defined(__alpha__)
+
+#define fb_readb __raw_readb
+#define fb_readw __raw_readw
+#define fb_readl __raw_readl
+#define fb_writeb __raw_writeb
+#define fb_writew __raw_writew
+#define fb_writel __raw_writel
+
+#else
+
+#define fb_readb(addr) (*(volatile unsigned char *) __io_virt(addr))
+#define fb_readw(addr) (*(volatile unsigned short *) __io_virt(addr))
+#define fb_readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#define fb_writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))
+#define fb_writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
+#define fb_writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+
+#endif
+
#endif /* _VIDEO_FBCON_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)