Deleted Added
full compact
miivar.h (60938) miivar.h (69925)
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,

--- 22 unchanged lines hidden (view full) ---

31 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 *
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,

--- 22 unchanged lines hidden (view full) ---

31 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 *
39 * $FreeBSD: head/sys/dev/mii/miivar.h 60938 2000-05-26 02:09:24Z jake $
39 * $FreeBSD: head/sys/dev/mii/miivar.h 69925 2000-12-12 19:31:14Z wpaul $
40 */
41
42#ifndef _DEV_MII_MIIVAR_H_
43#define _DEV_MII_MIIVAR_H_
44
45#include <sys/queue.h>
46
47/*

--- 67 unchanged lines hidden (view full) ---

115
116 LIST_ENTRY(mii_softc) mii_list; /* entry on parent's PHY list */
117
118 int mii_phy; /* our MII address */
119 int mii_inst; /* instance for ifmedia */
120
121 mii_downcall_t mii_service; /* our downcall */
122 struct mii_data *mii_pdata; /* pointer to parent's mii_data */
40 */
41
42#ifndef _DEV_MII_MIIVAR_H_
43#define _DEV_MII_MIIVAR_H_
44
45#include <sys/queue.h>
46
47/*

--- 67 unchanged lines hidden (view full) ---

115
116 LIST_ENTRY(mii_softc) mii_list; /* entry on parent's PHY list */
117
118 int mii_phy; /* our MII address */
119 int mii_inst; /* instance for ifmedia */
120
121 mii_downcall_t mii_service; /* our downcall */
122 struct mii_data *mii_pdata; /* pointer to parent's mii_data */
123 struct callout_handle mii_auto_ch; /* callout handle for phy autoneg */
123
124 int mii_flags; /* misc. flags; see below */
125 int mii_capabilities; /* capabilities from BMSR */
126 int mii_ticks; /* MII_TICK counter */
127 int mii_active; /* last active media */
128};
129typedef struct mii_softc mii_softc_t;
130

--- 34 unchanged lines hidden (view full) ---

165void mii_pollstat __P((struct mii_data *));
166int mii_phy_probe __P((device_t, device_t *,
167 ifm_change_cb_t, ifm_stat_cb_t));
168void mii_add_media __P((struct mii_data *, int, int));
169
170int mii_media_from_bmcr __P((int));
171
172int mii_phy_auto __P((struct mii_softc *, int));
124
125 int mii_flags; /* misc. flags; see below */
126 int mii_capabilities; /* capabilities from BMSR */
127 int mii_ticks; /* MII_TICK counter */
128 int mii_active; /* last active media */
129};
130typedef struct mii_softc mii_softc_t;
131

--- 34 unchanged lines hidden (view full) ---

166void mii_pollstat __P((struct mii_data *));
167int mii_phy_probe __P((device_t, device_t *,
168 ifm_change_cb_t, ifm_stat_cb_t));
169void mii_add_media __P((struct mii_data *, int, int));
170
171int mii_media_from_bmcr __P((int));
172
173int mii_phy_auto __P((struct mii_softc *, int));
174void mii_phy_auto_stop __P((struct mii_softc *));
173void mii_phy_reset __P((struct mii_softc *));
174
175void ukphy_status __P((struct mii_softc *));
176#endif /* _KERNEL */
177
178#endif /* _DEV_MII_MIIVAR_H_ */
175void mii_phy_reset __P((struct mii_softc *));
176
177void ukphy_status __P((struct mii_softc *));
178#endif /* _KERNEL */
179
180#endif /* _DEV_MII_MIIVAR_H_ */