patch-2.4.0-test2 linux/drivers/net/stnic.c

Next file: linux/drivers/net/strip.c
Previous file: linux/drivers/net/sonic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/stnic.c linux/drivers/net/stnic.c
@@ -175,7 +175,7 @@
   *(vhalf *) PA_83902_RST = 0;
   udelay (5);
   if (ei_debug > 1)
-    printk("8390 reset done (%ld).", jiffies);
+    printk("8390 reset done (%ld).\n", jiffies);
   *(vhalf *) PA_83902_RST = ~0;
   udelay (5);
 }
@@ -253,9 +253,17 @@
 stnic_block_output (struct net_device *dev, int length,
 		    const unsigned char *buf, int output_page)
 {
-
+#if 0
   STNIC_WRITE (PG0_RBCR0, 1);
   STNIC_WRITE (STNIC_CR, CR_RRD | CR_PG0 | CR_STA);
+#else  /* XXX: I don't know why but this works.  -- gniibe  */
+  STNIC_WRITE (PG0_RBCR0, 0x42);
+  STNIC_WRITE (PG0_RBCR1, 0x00);
+  STNIC_WRITE (PG0_RBCR0, 0x42);
+  STNIC_WRITE (PG0_RBCR1, 0x00);
+  STNIC_WRITE (STNIC_CR, CR_RRD | CR_PG0 | CR_STA);
+  STNIC_DELAY ();
+#endif
 
   STNIC_WRITE (PG0_RSAR0, 0);
   STNIC_WRITE (PG0_RSAR1, output_page);
@@ -300,3 +308,6 @@
 }
 
 module_init(stnic_probe);
+/* No cleanup routine - if there were one, it should do a:
+   unload_8390_module()
+*/

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)