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

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

diff -u --recursive --new-file v1.3.74/linux/drivers/net/3c503.c linux/drivers/net/3c503.c
@@ -436,7 +436,7 @@
 {
     unsigned short int *wrd;
     int boguscount;		/* timeout counter */
-    unsigned short tmp_rev;	/* temporary for reversed values */
+    unsigned short word;	/* temporary for better machine code */
 
     if (ei_status.word16)      /* Tx packets go into bank 0 on EL2/16 card */
 	outb(EGACFR_RSEL|EGACFR_TCM, E33G_GACFR);
@@ -456,9 +456,9 @@
  *  Set up then start the internal memory transfer to Tx Start Page
  */
 
-    tmp_rev = (unsigned short)start_page;
-    outb(tmp_rev&0xFF, E33G_DMAAL);
-    outb(tmp_rev>>8, E33G_DMAAH);
+    word = (unsigned short)start_page;
+    outb(word&0xFF, E33G_DMAAH);
+    outb(word>>8, E33G_DMAAL);
 
     outb_p((ei_status.interface_num ? ECNTRL_AUI : ECNTRL_THIN ) | ECNTRL_OUTPUT
 	   | ECNTRL_START, E33G_CNTRL);
@@ -508,7 +508,7 @@
 {
     int boguscount;
     unsigned long hdr_start = dev->mem_start + ((ring_page - EL2_MB1_START_PG)<<8);
-    unsigned short tmp_rev;
+    unsigned short word;
 
     if (dev->mem_start) {       /* Use the shared memory. */
 	memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
@@ -519,9 +519,9 @@
  *  No shared memory, use programmed I/O.
  */
 
-    tmp_rev = (unsigned short)ring_page;
-    outb(tmp_rev&0xFF, E33G_DMAAL);
-    outb(tmp_rev>>8, E33G_DMAAH);
+    word = (unsigned short)ring_page;
+    outb(word&0xFF, E33G_DMAAH);
+    outb(word>>8, E33G_DMAAL);
 
     outb_p((ei_status.interface_num == 0 ? ECNTRL_THIN : ECNTRL_AUI) | ECNTRL_INPUT
 	   | ECNTRL_START, E33G_CNTRL);
@@ -547,7 +547,7 @@
 {
     int boguscount = 0;
     unsigned short int *buf;
-    unsigned short tmp_rev;
+    unsigned short word;
 
     int end_of_ring = dev->rmem_end;
 
@@ -570,9 +570,9 @@
 /*
  *  No shared memory, use programmed I/O.
  */
-    tmp_rev = (unsigned short) ring_offset;
-    outb(tmp_rev&0xFF, E33G_DMAAL);
-    outb(tmp_rev>>8, E33G_DMAAH);
+    word = (unsigned short) ring_offset;
+    outb(word>>8, E33G_DMAAH);
+    outb(word&0xFF, E33G_DMAAL);
 
     outb_p((ei_status.interface_num == 0 ? ECNTRL_THIN : ECNTRL_AUI) | ECNTRL_INPUT
 	   | ECNTRL_START, E33G_CNTRL);

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