diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-03-26 04:40:10 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-03-26 04:40:10 +0000 |
commit | 4383940392fe74c2d2b7fb9bb4bfab1af48e1459 (patch) | |
tree | d25ae963abc328866ffe27d4d2c49a5a92019347 /sys/dev/mii/miivar.h | |
parent | eedef93b45432d311e3a186545b98b7c3634d0b6 (diff) |
Cleanup. Use defines, standard names, consistant comparison operators, etc.
for auto negotiation ticks code. No functional change.
ok brad@
Diffstat (limited to 'sys/dev/mii/miivar.h')
-rw-r--r-- | sys/dev/mii/miivar.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index 3bbe6e25e64..7cda8632145 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: miivar.h,v 1.22 2004/12/16 03:41:58 brad Exp $ */ +/* $OpenBSD: miivar.h,v 1.23 2005/03/26 04:40:09 krw Exp $ */ /* $NetBSD: miivar.h,v 1.17 2000/03/06 20:56:57 thorpej Exp $ */ /*- @@ -142,6 +142,10 @@ struct mii_softc { }; typedef struct mii_softc mii_softc_t; +/* Default mii_anegticks values. */ +#define MII_ANEGTICKS 5 +#define MII_ANEGTICKS_GIGE 10 + /* mii_flags */ #define MIIF_INITDONE 0x0001 /* has been initialized (mii_data) */ #define MIIF_NOISOLATE 0x0002 /* do not isolate the PHY */ @@ -251,6 +255,7 @@ void mii_phy_delete_media(struct mii_softc *); void mii_phy_setmedia(struct mii_softc *); int mii_phy_auto(struct mii_softc *, int); +void mii_phy_auto_timeout(void *); void mii_phy_reset(struct mii_softc *); void mii_phy_down(struct mii_softc *); int mii_phy_tick(struct mii_softc *); |