some patches

Maurice Hilarius maurice@harddata.com
Thu Feb 11 01:19:48 1999


We had a problem running tulip-diag v1.07 as was recently posted.

We are trying to use it on an Alpha.

Following is the patch needed to fix it:

--- ./tulip-diag.c~	Wed Feb 10 01:56:19 1999
+++ ./tulip-diag.c	Wed Feb 10
20:07:48 1999
@@ -865,7 +865,9 @@
 	printf("EEPROM transceiver/media
description for the %s chip.\n",
 		   pcidev_tbl[part_idx].part_name);
 	p
= (void *)ee_data + ee_data[27];
-	media = *((short *)p)++;
+	/* media =
*((short *)p)++; */
+ 	media = *p++;
+	media += (*p++ * 0x100);

printf("\nLeaf node at offset %d, default media type %4.4x (%s).\n",

ee_data[27], media,
 		   media & 0x0800 ? "Autosense" : medianame[media &
15]);


Best regards,

  Maurice W. Hilarius             NEW!  Telephone: 01-780-456-9771
  Hard Data Ltd.                  NEW!  FAX:       01-780-456-9772
  11060 - 166 Avenue                    email:maurice@harddata.com
  Edmonton, AB, Canada  - T5X 1Y3       http://www.harddata.com