miivar.h (214605) | miivar.h (215297) |
---|---|
1/* $NetBSD: miivar.h,v 1.8 1999/04/23 04:24:32 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* $NetBSD: miivar.h,v 1.8 1999/04/23 04:24:32 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/mii/miivar.h 214605 2010-10-31 22:41:53Z marius $ | 32 * $FreeBSD: head/sys/dev/mii/miivar.h 215297 2010-11-14 13:26:10Z marius $ |
33 */ 34 35#ifndef _DEV_MII_MIIVAR_H_ 36#define _DEV_MII_MIIVAR_H_ 37 38#include <sys/queue.h> 39 40/* --- 79 unchanged lines hidden (view full) --- 120 int mii_media_status; /* last active status */ 121}; 122typedef struct mii_softc mii_softc_t; 123 124/* mii_flags */ 125#define MIIF_INITDONE 0x00000001 /* has been initialized (mii_data) */ 126#define MIIF_NOISOLATE 0x00000002 /* do not isolate the PHY */ 127#define MIIF_NOLOOP 0x00000004 /* no loopback capability */ | 33 */ 34 35#ifndef _DEV_MII_MIIVAR_H_ 36#define _DEV_MII_MIIVAR_H_ 37 38#include <sys/queue.h> 39 40/* --- 79 unchanged lines hidden (view full) --- 120 int mii_media_status; /* last active status */ 121}; 122typedef struct mii_softc mii_softc_t; 123 124/* mii_flags */ 125#define MIIF_INITDONE 0x00000001 /* has been initialized (mii_data) */ 126#define MIIF_NOISOLATE 0x00000002 /* do not isolate the PHY */ 127#define MIIF_NOLOOP 0x00000004 /* no loopback capability */ |
128#define MIIF_DOINGAUTO 0x00000008 /* doing autonegotiation (mii_softc) */ |
|
128#define MIIF_AUTOTSLEEP 0x00000010 /* use tsleep(), not callout() */ 129#define MIIF_HAVEFIBER 0x00000020 /* from parent: has fiber interface */ 130#define MIIF_HAVE_GTCR 0x00000040 /* has 100base-T2/1000base-T CR */ 131#define MIIF_IS_1000X 0x00000080 /* is a 1000BASE-X device */ 132#define MIIF_DOPAUSE 0x00000100 /* advertise PAUSE capability */ 133#define MIIF_IS_HPNA 0x00000200 /* is a HomePNA device */ 134#define MIIF_FORCEANEG 0x00000400 /* force auto-negotiation */ | 129#define MIIF_AUTOTSLEEP 0x00000010 /* use tsleep(), not callout() */ 130#define MIIF_HAVEFIBER 0x00000020 /* from parent: has fiber interface */ 131#define MIIF_HAVE_GTCR 0x00000040 /* has 100base-T2/1000base-T CR */ 132#define MIIF_IS_1000X 0x00000080 /* is a 1000BASE-X device */ 133#define MIIF_DOPAUSE 0x00000100 /* advertise PAUSE capability */ 134#define MIIF_IS_HPNA 0x00000200 /* is a HomePNA device */ 135#define MIIF_FORCEANEG 0x00000400 /* force auto-negotiation */ |
136#define MIIF_NOMANPAUSE 0x00100000 /* no manual PAUSE selection */ 137#define MIIF_FORCEPAUSE 0x00200000 /* force PAUSE advertisment */ |
|
135#define MIIF_MACPRIV0 0x01000000 /* private to the MAC driver */ 136#define MIIF_MACPRIV1 0x02000000 /* private to the MAC driver */ 137#define MIIF_MACPRIV2 0x04000000 /* private to the MAC driver */ 138#define MIIF_PHYPRIV0 0x10000000 /* private to the PHY driver */ 139#define MIIF_PHYPRIV1 0x20000000 /* private to the PHY driver */ 140#define MIIF_PHYPRIV2 0x40000000 /* private to the PHY driver */ 141 142/* Default mii_anegticks values */ --- 88 unchanged lines hidden (view full) --- 231int mii_mediachg(struct mii_data *); 232void mii_tick(struct mii_data *); 233void mii_pollstat(struct mii_data *); 234void mii_phy_add_media(struct mii_softc *); 235 236int mii_phy_auto(struct mii_softc *); 237int mii_phy_detach(device_t dev); 238void mii_phy_down(struct mii_softc *); | 138#define MIIF_MACPRIV0 0x01000000 /* private to the MAC driver */ 139#define MIIF_MACPRIV1 0x02000000 /* private to the MAC driver */ 140#define MIIF_MACPRIV2 0x04000000 /* private to the MAC driver */ 141#define MIIF_PHYPRIV0 0x10000000 /* private to the PHY driver */ 142#define MIIF_PHYPRIV1 0x20000000 /* private to the PHY driver */ 143#define MIIF_PHYPRIV2 0x40000000 /* private to the PHY driver */ 144 145/* Default mii_anegticks values */ --- 88 unchanged lines hidden (view full) --- 234int mii_mediachg(struct mii_data *); 235void mii_tick(struct mii_data *); 236void mii_pollstat(struct mii_data *); 237void mii_phy_add_media(struct mii_softc *); 238 239int mii_phy_auto(struct mii_softc *); 240int mii_phy_detach(device_t dev); 241void mii_phy_down(struct mii_softc *); |
242u_int mii_phy_flowstatus(struct mii_softc *); |
|
239void mii_phy_reset(struct mii_softc *); 240void mii_phy_setmedia(struct mii_softc *sc); 241void mii_phy_update(struct mii_softc *, int); 242int mii_phy_tick(struct mii_softc *); 243 244const struct mii_phydesc * mii_phy_match(const struct mii_attach_args *ma, 245 const struct mii_phydesc *mpd); 246const struct mii_phydesc * mii_phy_match_gen(const struct mii_attach_args *ma, 247 const struct mii_phydesc *mpd, size_t endlen); 248int mii_phy_dev_probe(device_t dev, const struct mii_phydesc *mpd, int mrv); 249 250void ukphy_status(struct mii_softc *); 251#endif /* _KERNEL */ 252 253#endif /* _DEV_MII_MIIVAR_H_ */ | 243void mii_phy_reset(struct mii_softc *); 244void mii_phy_setmedia(struct mii_softc *sc); 245void mii_phy_update(struct mii_softc *, int); 246int mii_phy_tick(struct mii_softc *); 247 248const struct mii_phydesc * mii_phy_match(const struct mii_attach_args *ma, 249 const struct mii_phydesc *mpd); 250const struct mii_phydesc * mii_phy_match_gen(const struct mii_attach_args *ma, 251 const struct mii_phydesc *mpd, size_t endlen); 252int mii_phy_dev_probe(device_t dev, const struct mii_phydesc *mpd, int mrv); 253 254void ukphy_status(struct mii_softc *); 255#endif /* _KERNEL */ 256 257#endif /* _DEV_MII_MIIVAR_H_ */ |