patch-1.3.73 linux/drivers/net/3c503.c

Next file: linux/drivers/net/3c509.c
Previous file: linux/drivers/char/stallion.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.72/linux/drivers/net/3c503.c linux/drivers/net/3c503.c
@@ -456,9 +456,9 @@
  *  Set up then start the internal memory transfer to Tx Start Page
  */
 
-    tmp_rev = htons((unsigned short)start_page);
-    outb(tmp_rev&0xFF, E33G_DMAAH);
-    outb(tmp_rev>>8, E33G_DMAAL);
+    tmp_rev = (unsigned short)start_page;
+    outb(tmp_rev&0xFF, E33G_DMAAL);
+    outb(tmp_rev>>8, E33G_DMAAH);
 
     outb_p((ei_status.interface_num ? ECNTRL_AUI : ECNTRL_THIN ) | ECNTRL_OUTPUT
 	   | ECNTRL_START, E33G_CNTRL);
@@ -519,9 +519,9 @@
  *  No shared memory, use programmed I/O.
  */
 
-    tmp_rev = htons((unsigned short)ring_page);
-    outb(tmp_rev&0xFF, E33G_DMAAH);
-    outb(tmp_rev>>8, E33G_DMAAL);
+    tmp_rev = (unsigned short)ring_page;
+    outb(tmp_rev&0xFF, E33G_DMAAL);
+    outb(tmp_rev>>8, E33G_DMAAH);
 
     outb_p((ei_status.interface_num == 0 ? ECNTRL_THIN : ECNTRL_AUI) | ECNTRL_INPUT
 	   | ECNTRL_START, E33G_CNTRL);
@@ -570,7 +570,7 @@
 /*
  *  No shared memory, use programmed I/O.
  */
-    tmp_rev = htons((unsigned short) ring_offset);
+    tmp_rev = (unsigned short) ring_offset;
     outb(tmp_rev&0xFF, E33G_DMAAL);
     outb(tmp_rev>>8, E33G_DMAAH);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this