Re: cvs commit: src/sys/dev/age if_age.c if_agereg.h if_agevar.h

From: Andrew Thompson <thompsa_at_FreeBSD.org>
Date: Thu, 17 Jul 2008 16:56:30 -0700
On Mon, May 19, 2008 at 01:39:59AM +0000, Pyun YongHyeon wrote:
> yongari     2008-05-19 01:39:59 UTC
> 
>   FreeBSD src repository
> 
>   Added files:
>     sys/dev/age          if_age.c if_agereg.h if_agevar.h 
>   Log:
>   Add age(4), a driver for Attansic/Atheros L1 gigabit ethernet
>   controller.

+static void
+age_phy_reset(struct age_softc *sc)
+{
+
+        /* Reset PHY. */
+        CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_RST);
+        pause("agephy", hz / 1000);
+        CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_CLR);
+        pause("agephy", hz / 1000);
+}

This will panic if hz < 1000, perhaps a DELAY(1) is better?


Andrew
Received on Thu Jul 17 2008 - 22:13:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC