summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-11 17:01:25 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-11 17:01:25 +0000
commit19c630d9adf31eee29c11263597ff43c718aff72 (patch)
treeac04fcf3e1e8219b83b39752311d7c2a42bb160e /sys
parent983ca89be12ad12a343e456970ca1d36e5123d60 (diff)
For some reason, with the eeprom width detection code mickey added awhile ago,
special care for the ADMtek AN983 (Centaur-P) chip is no longer needed. This fixes Ethernet address reading for these cards. Thanks to todd@ for testing.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/dc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index dcf11873e29..d27a2895f54 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.13 2000/09/28 18:32:59 aaron Exp $ */
+/* $OpenBSD: dc.c,v 1.14 2000/10/11 17:01:24 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -327,15 +327,7 @@ void dc_eeprom_putbyte(sc, addr)
{
register int d, i;
- /*
- * The AN983 has a 93C66 EEPROM on it instead of
- * a 93C46. It uses a different bit sequence for
- * specifying the "read" opcode.
- */
- if (DC_IS_CENTAUR(sc))
- d = DC_EECMD_READ >> 4;
- else
- d = DC_EECMD_READ >> 6;
+ d = DC_EECMD_READ >> 6;
for (i = 3; i--; ) {
if (d & (1 << i))