summaryrefslogtreecommitdiffstats
path: root/sys/dev/age/if_agereg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-03-28 07:39:35 +0000
committeryongari <yongari@FreeBSD.org>2009-03-28 07:39:35 +0000
commitb702ca48cf9ed591cbca7759cc2c7f1173de4d40 (patch)
treeb4a9c3d1a1fa1f884fbf82e46315269ee8a04903 /sys/dev/age/if_agereg.h
parent1db7e98746958564da51eee2a32c7c3f1b56e03d (diff)
downloadFreeBSD-src-b702ca48cf9ed591cbca7759cc2c7f1173de4d40.zip
FreeBSD-src-b702ca48cf9ed591cbca7759cc2c7f1173de4d40.tar.gz
o Don't access VPD even if hardware advertised the capability.
It seems that some revision of controller hang while accessing the VPD. Because VPD access routine are unused, nuke it. o Let TWSI reload EEPROM if VPD capability is detected. Reloading EEPROM will also set ethernet address so age(4) now reads AGE_PAR0 and AGE_PAR1 register to get ethernet address. This removes a lot of hack and enhance readability a lot. o Double PHY reset timeout as it takes more time to take PHY out of power-saving state. o Explicitly check power-saving state by checking undocumented PHY registers. If link is not up, poke undocumented registers to take PHY out of power-saving state. This is the same way what Linux does. On resume, make sure to wake up PHY. o Don't rely on auto-clearing feature of master reset bit, just wait 1ms and check idle status of MAC. o Add PCI device revision information in bootverbose mode. This should fix occasional controller hang in device attach phase. Reported by: barbara < barbara.xxx1975 at libero DOT it > Tested by: barbara < barbara.xxx1975 at libero DOT it >
Diffstat (limited to 'sys/dev/age/if_agereg.h')
-rw-r--r--sys/dev/age/if_agereg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/age/if_agereg.h b/sys/dev/age/if_agereg.h
index 091eff1..284e5a4 100644
--- a/sys/dev/age/if_agereg.h
+++ b/sys/dev/age/if_agereg.h
@@ -91,6 +91,9 @@
#define AGE_SPI_OP_READ 0x217 /* 8bits */
#define AGE_TWSI_CTRL 0x218
+#define TWSI_CTRL_SW_LD_START 0x00000800
+#define TWSI_CTRL_HW_LD_START 0x00001000
+#define TWSI_CTRL_LD_EXIST 0x00400000
#define AGE_DEV_MISC_CTRL 0x21C
OpenPOWER on IntegriCloud