patch-2.3.27 linux/drivers/char/pms.c
Next file: linux/drivers/char/ppdev.c
Previous file: linux/drivers/char/pcmcia/serial_cs.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Nov 10 13:39:06 1999
- Orig file:
v2.3.26/linux/drivers/char/pms.c
- Orig date:
Sat Oct 9 11:47:50 1999
diff -u --recursive --new-file v2.3.26/linux/drivers/char/pms.c linux/drivers/char/pms.c
@@ -624,7 +624,7 @@
{
int y;
int dw = 2*dev->width;
- char *src = (char *)bus_to_virt(mem_base);
+ u32 src = mem_base;
char tmp[dw+32]; /* using a temp buffer is faster than direct */
int cnt = 0;
@@ -639,8 +639,14 @@
for (y = 0; y < dev->height; y++ )
{
- *src = 0; /* synchronisiert neue Zeile */
- memcpy(tmp, src, dw+32); /* discard 16 word */
+ isa_writeb(0, src); /* synchronisiert neue Zeile */
+
+ /*
+ * This is in truth a fifo, be very careful as if you
+ * forgot this odd things will occur 8)
+ */
+
+ isa_memcpy_fromio(tmp, src, dw+32); /* discard 16 word */
cnt -= dev->height;
while (cnt <= 0)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)