-/* $OpenBSD: acphy.c,v 1.6 2006/12/27 19:11:08 kettenis Exp $ */
+/* $OpenBSD: acphy.c,v 1.7 2013/12/28 03:30:40 deraadt Exp $ */
/* $NetBSD: acphy.c,v 1.13 2003/04/29 01:49:33 thorpej Exp $ */
/*
void acphyattach(struct device *, struct device *, void *);
struct cfattach acphy_ca = {
- sizeof(struct mii_softc), acphymatch, acphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), acphymatch, acphyattach, mii_phy_detach
};
struct cfdriver acphy_cd = {
-/* $OpenBSD: amphy.c,v 1.18 2008/09/08 07:38:33 brad Exp $ */
+/* $OpenBSD: amphy.c,v 1.19 2013/12/28 03:30:40 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
void amphyattach(struct device *, struct device *, void *);
struct cfattach amphy_ca = {
- sizeof(struct mii_softc), amphymatch, amphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), amphymatch, amphyattach, mii_phy_detach
};
struct cfdriver amphy_cd = {
-/* $OpenBSD: atphy.c,v 1.6 2011/06/17 09:59:52 kevlo Exp $ */
+/* $OpenBSD: atphy.c,v 1.7 2013/12/28 03:30:40 deraadt Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
struct cfattach atphy_ca = {
sizeof (struct mii_softc), atphy_match, atphy_attach,
- mii_phy_detach, mii_phy_activate
+ mii_phy_detach
};
struct cfdriver atphy_cd = {
-/* $OpenBSD: bmtphy.c,v 1.17 2009/07/25 09:56:24 sthen Exp $ */
+/* $OpenBSD: bmtphy.c,v 1.18 2013/12/28 03:30:40 deraadt Exp $ */
/* $NetBSD: bmtphy.c,v 1.17 2005/01/17 13:17:45 scw Exp $ */
/*-
void bmtphyattach(struct device *, struct device *, void *);
struct cfattach bmtphy_ca = {
- sizeof(struct mii_softc), bmtphymatch, bmtphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), bmtphymatch, bmtphyattach, mii_phy_detach
};
struct cfdriver bmtphy_cd = {
-/* $OpenBSD: brgphy.c,v 1.102 2013/05/28 09:46:06 mikeb Exp $ */
+/* $OpenBSD: brgphy.c,v 1.103 2013/12/28 03:30:40 deraadt Exp $ */
/*
* Copyright (c) 2000
void brgphy_attach(struct device *, struct device *, void *);
struct cfattach brgphy_ca = {
- sizeof(struct mii_softc), brgphy_probe, brgphy_attach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), brgphy_probe, brgphy_attach, mii_phy_detach
};
struct cfdriver brgphy_cd = {
-/* $OpenBSD: ciphy.c,v 1.23 2012/10/22 09:14:36 brad Exp $ */
+/* $OpenBSD: ciphy.c,v 1.24 2013/12/28 03:30:41 deraadt Exp $ */
/* $FreeBSD: ciphy.c,v 1.1 2004/09/10 20:57:45 wpaul Exp $ */
/*
* Copyright (c) 2004
void ciphyattach(struct device *, struct device *, void *);
struct cfattach ciphy_ca = {
- sizeof(struct mii_softc),
- ciphymatch,
- ciphyattach,
- mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), ciphymatch, ciphyattach, mii_phy_detach
};
struct cfdriver ciphy_cd = {
-/* $OpenBSD: dcphy.c,v 1.24 2013/05/28 09:46:06 mikeb Exp $ */
+/* $OpenBSD: dcphy.c,v 1.25 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
void dcphy_attach(struct device *, struct device *, void *);
struct cfattach dcphy_ca = {
- sizeof(struct mii_softc), dcphy_match, dcphy_attach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), dcphy_match, dcphy_attach, mii_phy_detach
};
struct cfdriver dcphy_cd = {
-/* $OpenBSD: etphy.c,v 1.4 2008/04/02 20:12:58 brad Exp $ */
+/* $OpenBSD: etphy.c,v 1.5 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
struct cfattach etphy_ca = {
sizeof (struct mii_softc), etphy_match, etphy_attach,
- mii_phy_detach, mii_phy_activate
+ mii_phy_detach
};
struct cfdriver etphy_cd = {
-/* $OpenBSD: exphy.c,v 1.20 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: exphy.c,v 1.21 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: exphy.c,v 1.23 2000/02/02 23:34:56 thorpej Exp $ */
/*-
void exphyattach(struct device *, struct device *, void *);
struct cfattach exphy_ca = {
- sizeof(struct mii_softc), exphymatch, exphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), exphymatch, exphyattach, mii_phy_detach
};
struct cfdriver exphy_cd = {
-/* $OpenBSD: gentbi.c,v 1.8 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: gentbi.c,v 1.9 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: gentbi.c,v 1.12 2004/04/11 15:40:56 thorpej Exp $ */
/*-
struct cfattach gentbi_ca = {
sizeof(struct mii_softc), gentbimatch, gentbiattach,
- mii_phy_detach, mii_phy_activate
+ mii_phy_detach
};
struct cfdriver gentbi_cd = {
-/* $OpenBSD: icsphy.c,v 1.20 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: icsphy.c,v 1.21 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: icsphy.c,v 1.17 2000/02/02 23:34:56 thorpej Exp $ */
/*-
void icsphyattach(struct device *, struct device *, void *);
struct cfattach icsphy_ca = {
- sizeof(struct mii_softc), icsphymatch, icsphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), icsphymatch, icsphyattach, mii_phy_detach
};
struct cfdriver icsphy_cd = {
-/* $OpenBSD: inphy.c,v 1.18 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: inphy.c,v 1.19 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: inphy.c,v 1.18 2000/02/02 23:34:56 thorpej Exp $ */
/*-
void inphyattach(struct device *, struct device *, void *);
struct cfattach inphy_ca = {
- sizeof(struct mii_softc), inphymatch, inphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), inphymatch, inphyattach, mii_phy_detach
};
struct cfdriver inphy_cd = {
-/* $OpenBSD: iophy.c,v 1.17 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: iophy.c,v 1.18 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: iophy.c,v 1.8 2000/02/02 23:34:56 thorpej Exp $ */
/*
void iophyattach(struct device *, struct device *, void *);
struct cfattach iophy_ca = {
- sizeof(struct mii_softc), iophymatch, iophyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), iophymatch, iophyattach, mii_phy_detach
};
struct cfdriver iophy_cd = {
-/* $OpenBSD: ipgphy.c,v 1.15 2013/03/14 17:02:15 brad Exp $ */
+/* $OpenBSD: ipgphy.c,v 1.16 2013/12/28 03:30:41 deraadt Exp $ */
/*-
* Copyright (c) 2006, Pyun YongHyeon <yongari@FreeBSD.org>
void ipgphy_attach(struct device *, struct device *, void *);
struct cfattach ipgphy_ca = {
- sizeof(struct mii_softc), ipgphy_probe, ipgphy_attach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), ipgphy_probe, ipgphy_attach, mii_phy_detach
};
struct cfdriver ipgphy_cd = {
sc->mii_flags |= MIIF_NOISOLATE;
+ PHY_RESET(sc);
+
sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
if (sc->mii_capabilities & BMSR_EXTSTAT)
sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR);
mii_phy_add_media(sc);
- PHY_RESET(sc);
}
int
-/* $OpenBSD: jmphy.c,v 1.3 2012/10/22 11:01:59 brad Exp $ */
+/* $OpenBSD: jmphy.c,v 1.4 2013/12/28 03:30:41 deraadt Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
struct cfattach jmphy_ca = {
sizeof (struct mii_softc), jmphy_match, jmphy_attach,
- mii_phy_detach, mii_phy_activate
+ mii_phy_detach
};
struct cfdriver jmphy_cd = {
sc->mii_flags |= MIIF_NOISOLATE | MIIF_NOLOOP;
- jmphy_reset(sc);
+ PHY_RESET(sc);
sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
if (sc->mii_capabilities & BMSR_EXTSTAT)
-/* $OpenBSD: luphy.c,v 1.3 2005/04/15 00:44:39 brad Exp $ */
+/* $OpenBSD: luphy.c,v 1.4 2013/12/28 03:30:41 deraadt Exp $ */
/*-
* Copyright (c) 2004 Marius Strobl
void luphyattach(struct device *, struct device *, void *);
struct cfattach luphy_ca = {
- sizeof(struct mii_softc), luphymatch, luphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), luphymatch, luphyattach, mii_phy_detach
};
struct cfdriver luphy_cd = {
-/* $OpenBSD: lxtphy.c,v 1.17 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: lxtphy.c,v 1.18 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: lxtphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp $ */
/*-
void lxtphyattach(struct device *, struct device *, void *);
struct cfattach lxtphy_ca = {
- sizeof(struct mii_softc), lxtphymatch, lxtphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), lxtphymatch, lxtphyattach, mii_phy_detach
};
struct cfdriver lxtphy_cd = {
-/* $OpenBSD: mii_physubr.c,v 1.41 2013/06/25 02:27:44 brad Exp $ */
+/* $OpenBSD: mii_physubr.c,v 1.42 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: mii_physubr.c,v 1.20 2001/04/13 23:30:09 thorpej Exp $ */
/*-
ifmedia_delete_instance(&mii->mii_media, sc->mii_inst);
}
-int
-mii_phy_activate(struct device *self, int act)
-{
- int rv = 0;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- /* Nothing special to do. */
- break;
- }
-
- return (rv);
-}
-
int
mii_phy_detach(struct device *self, int flags)
{
-/* $OpenBSD: miivar.h,v 1.31 2010/04/20 20:42:16 deraadt Exp $ */
+/* $OpenBSD: miivar.h,v 1.32 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: miivar.h,v 1.17 2000/03/06 20:56:57 thorpej Exp $ */
/*-
void mii_down(struct mii_data *);
int mii_anar(int);
-int mii_phy_activate(struct device *, int);
int mii_phy_detach(struct device *, int);
const struct mii_phydesc *mii_phy_match(const struct mii_attach_args *,
-/* $OpenBSD: mlphy.c,v 1.3 2013/05/28 09:46:06 mikeb Exp $ */
+/* $OpenBSD: mlphy.c,v 1.4 2013/12/28 03:30:41 deraadt Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999
void mlphy_attach(struct device *, struct device *, void *);
struct cfattach mlphy_ca = {
- sizeof(struct mii_softc), mlphy_probe, mlphy_attach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), mlphy_probe, mlphy_attach, mii_phy_detach
};
struct cfdriver mlphy_cd = {
sc->mii_flags = ma->mii_flags;
msc->ml_dev = parent;
- mii_phy_reset(sc);
+ PHY_RESET(sc);
sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
#define ADD(m, c) ifmedia_add(&mii->mii_media, (m), (c), NULL)
-/* $OpenBSD: mtdphy.c,v 1.12 2005/02/19 06:00:04 brad Exp $ */
+/* $OpenBSD: mtdphy.c,v 1.13 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 1998, 1999 Jason L. Wright (jason@thought.net)
void mtdphyattach(struct device *, struct device *, void *);
struct cfattach mtdphy_ca = {
- sizeof(struct mii_softc), mtdphymatch, mtdphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), mtdphymatch, mtdphyattach, mii_phy_detach
};
struct cfdriver mtdphy_cd = {
-/* $OpenBSD: nsgphy.c,v 1.22 2009/07/22 10:39:51 sthen Exp $ */
+/* $OpenBSD: nsgphy.c,v 1.23 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 2001
void nsgphyattach(struct device *, struct device *, void *);
struct cfattach nsgphy_ca = {
- sizeof(struct mii_softc), nsgphymatch, nsgphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), nsgphymatch, nsgphyattach, mii_phy_detach
};
struct cfdriver nsgphy_cd = {
-/* $OpenBSD: nsphy.c,v 1.25 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: nsphy.c,v 1.26 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: nsphy.c,v 1.25 2000/02/02 23:34:57 thorpej Exp $ */
/*-
void nsphyattach(struct device *, struct device *, void *);
struct cfattach nsphy_ca = {
- sizeof(struct mii_softc), nsphymatch, nsphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), nsphymatch, nsphyattach, mii_phy_detach
};
struct cfdriver nsphy_cd = {
-/* $OpenBSD: nsphyter.c,v 1.16 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: nsphyter.c,v 1.17 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: nsphyter.c,v 1.5 2000/02/02 23:34:57 thorpej Exp $ */
/*-
struct cfattach nsphyter_ca = {
sizeof(struct mii_softc), nsphytermatch, nsphyterattach,
- mii_phy_detach, mii_phy_activate
+ mii_phy_detach
};
struct cfdriver nsphyter_cd = {
-/* $OpenBSD: qsphy.c,v 1.18 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: qsphy.c,v 1.19 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: qsphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp $ */
/*-
void qsphyattach(struct device *, struct device *, void *);
struct cfattach qsphy_ca = {
- sizeof(struct mii_softc), qsphymatch, qsphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), qsphymatch, qsphyattach, mii_phy_detach
};
struct cfdriver qsphy_cd = {
-/* $OpenBSD: rdcphy.c,v 1.1 2011/01/15 04:35:34 kevlo Exp $ */
+/* $OpenBSD: rdcphy.c,v 1.2 2013/12/28 03:30:41 deraadt Exp $ */
/*-
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
struct cfattach rdcphy_ca = {
sizeof(struct rdcphy_softc), rdcphy_match, rdcphy_attach,
- mii_phy_detach, mii_phy_activate
+ mii_phy_detach
};
struct cfdriver rdcphy_cd = {
-/* $OpenBSD: rgephy.c,v 1.30 2013/05/28 09:46:06 mikeb Exp $ */
+/* $OpenBSD: rgephy.c,v 1.31 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 2003
* Bill Paul <wpaul@windriver.com>. All rights reserved.
int rgephymatch(struct device *, void *, void *);
void rgephyattach(struct device *, struct device *, void *);
-struct cfattach rgephy_ca = {
- sizeof(struct mii_softc),
- rgephymatch,
- rgephyattach,
- mii_phy_detach,
- mii_phy_activate
+struct cfattach rgephy_ca = { sizeof(struct mii_softc),
+ rgephymatch, rgephyattach, mii_phy_detach,
};
struct cfdriver rgephy_cd = {
-/* $OpenBSD: rlphy.c,v 1.31 2013/06/15 20:31:05 kettenis Exp $ */
+/* $OpenBSD: rlphy.c,v 1.32 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 1998, 1999 Jason L. Wright (jason@thought.net)
void rlphyattach(struct device *, struct device *, void *);
struct cfattach rlphy_ca = {
- sizeof(struct mii_softc), rlphymatch, rlphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), rlphymatch, rlphyattach, mii_phy_detach
};
struct cfdriver rlphy_cd = {
-/* $OpenBSD: sqphy.c,v 1.18 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: sqphy.c,v 1.19 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: sqphy.c,v 1.17 2000/02/02 23:34:57 thorpej Exp $ */
/*-
void sqphyattach(struct device *, struct device *, void *);
struct cfattach sqphy_ca = {
- sizeof(struct mii_softc), sqphymatch, sqphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), sqphymatch, sqphyattach, mii_phy_detach
};
struct cfdriver sqphy_cd = {
-/* $OpenBSD: tlphy.c,v 1.20 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: tlphy.c,v 1.21 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: tlphy.c,v 1.26 2000/07/04 03:29:00 thorpej Exp $ */
/*-
void tlphyattach(struct device *, struct device *, void *);
struct cfattach tlphy_ca = {
- sizeof(struct tlphy_softc), tlphymatch, tlphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct tlphy_softc), tlphymatch, tlphyattach, mii_phy_detach
};
int tlphy_service(struct mii_softc *, struct mii_data *, int);
-/* $OpenBSD: tqphy.c,v 1.15 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: tqphy.c,v 1.16 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: tqphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */
/*
int tqphydetach(struct device *, int);
struct cfattach tqphy_ca = {
- sizeof(struct mii_softc), tqphymatch, tqphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), tqphymatch, tqphyattach, mii_phy_detach
};
struct cfdriver tqphy_cd = {
-/* $OpenBSD: txphy.c,v 1.10 2005/02/19 06:00:04 brad Exp $ */
+/* $OpenBSD: txphy.c,v 1.11 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
void txphyattach(struct device *, struct device *, void *);
struct cfattach txphy_ca = {
- sizeof(struct mii_softc), txphymatch, txphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), txphymatch, txphyattach, mii_phy_detach
};
struct cfdriver txphy_cd = {
-/* $OpenBSD: ukphy.c,v 1.20 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: ukphy.c,v 1.21 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: ukphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */
/*-
void ukphyattach(struct device *, struct device *, void *);
struct cfattach ukphy_ca = {
- sizeof(struct mii_softc), ukphymatch, ukphyattach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), ukphymatch, ukphyattach, mii_phy_detach
};
struct cfdriver ukphy_cd = {
-/* $OpenBSD: urlphy.c,v 1.14 2013/05/28 09:46:06 mikeb Exp $ */
+/* $OpenBSD: urlphy.c,v 1.15 2013/12/28 03:30:41 deraadt Exp $ */
/* $NetBSD: urlphy.c,v 1.1 2002/03/28 21:07:53 ichiro Exp $ */
/*
* Copyright (c) 2001, 2002
void urlphy_attach(struct device *, struct device *, void *);
struct cfattach urlphy_ca = {
- sizeof(struct mii_softc), urlphy_match, urlphy_attach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), urlphy_match, urlphy_attach, mii_phy_detach
};
struct cfdriver urlphy_cd = {
-/* $OpenBSD: xmphy.c,v 1.19 2013/05/28 09:46:06 mikeb Exp $ */
+/* $OpenBSD: xmphy.c,v 1.20 2013/12/28 03:30:41 deraadt Exp $ */
/*
* Copyright (c) 2000
void xmphy_attach(struct device *, struct device *, void *);
struct cfattach xmphy_ca = {
- sizeof(struct mii_softc), xmphy_probe, xmphy_attach, mii_phy_detach,
- mii_phy_activate
+ sizeof(struct mii_softc), xmphy_probe, xmphy_attach, mii_phy_detach
};
struct cfdriver xmphy_cd = {