summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2008-05-31 23:53:32 +0000
committertsutsui <tsutsui@NetBSD.org>2008-05-31 23:53:32 +0000
commit0305395f963ecc7075917a6331cd6ec6fde6d685 (patch)
tree49c2a76f8752ccaae5b8497af2a24f4e282412ca /sys/dev
parent8b03821c475895bdc8bc3bb1f932775df9fa7f46 (diff)
My Compaq Netelligent 10/100 TX has 24C02 (2kbit) serial EEPROM,
so pass 256 (bytes) rather than 512 to seeprom_bootstrap_read().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_tl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c
index 3786937ed58..78548b386c7 100644
--- a/sys/dev/pci/if_tl.c
+++ b/sys/dev/pci/if_tl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tl.c,v 1.87 2008/05/22 01:23:48 dyoung Exp $ */
+/* $NetBSD: if_tl.c,v 1.88 2008/05/31 23:53:32 tsutsui Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer. All rights reserved.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.87 2008/05/22 01:23:48 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.88 2008/05/31 23:53:32 tsutsui Exp $");
#undef TLDEBUG
#define TL_PRIV_STATS
@@ -388,7 +388,7 @@ tl_pci_attach(struct device *parent, struct device *self, void *aux)
#endif
/* read mac addr */
- if (seeprom_bootstrap_read(&sc->sc_i2c, 0x50, 0x83, 512/*?*/,
+ if (seeprom_bootstrap_read(&sc->sc_i2c, 0x50, 0x83, 256 /* 2kbit */,
sc->tl_enaddr, ETHER_ADDR_LEN)) {
aprint_error_dev(&sc->sc_dev, "error reading Ethernet address\n");
return;