\hypertarget{miivar_8h_source}{}\doxysection{miivar.\+h}
\label{miivar_8h_source}\index{dev/mii/miivar.h@{dev/mii/miivar.h}}
\mbox{\hyperlink{miivar_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00001}00001 \textcolor{comment}{/*      \$NetBSD: miivar.h,v 1.8 1999/04/23 04:24:32 thorpej Exp \$       */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00003}00003 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00004}00004 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/NetBSD}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00007}00007 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00008}00008 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00009}00009 \textcolor{comment}{ * This code is derived from software contributed to The NetBSD Foundation}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00010}00010 \textcolor{comment}{ * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00011}00011 \textcolor{comment}{ * NASA Ames Research Center.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00012}00012 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00013}00013 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00014}00014 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00015}00015 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00016}00016 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00017}00017 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00018}00018 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00019}00019 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00020}00020 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00021}00021 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00022}00022 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00023}00023 \textcolor{comment}{ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00024}00024 \textcolor{comment}{ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00025}00025 \textcolor{comment}{ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00026}00026 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00027}00027 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00028}00028 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00029}00029 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00030}00030 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00031}00031 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00032}00032 \textcolor{comment}{ * POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00033}00033 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00034}00034 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00035}00035 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00037}00037 \textcolor{preprocessor}{\#ifndef \_DEV\_MII\_MIIVAR\_H\_}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00038}00038 \textcolor{preprocessor}{\#define \_DEV\_MII\_MIIVAR\_H\_}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00040}00040 \textcolor{preprocessor}{\#include <sys/queue.h>}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00041}00041 \textcolor{preprocessor}{\#include <net/if\_var.h>} \textcolor{comment}{/* XXX driver API temporary */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00043}00043 \textcolor{preprocessor}{\#include "{}opt\_platform.h"{}}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00045}00045 \textcolor{preprocessor}{\#ifdef FDT}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00046}00046 \textcolor{preprocessor}{\#include <dev/ofw/openfirm.h>}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00047}00047 \textcolor{preprocessor}{\#include <dev/ofw/ofw\_bus.h>}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00048}00048 \textcolor{preprocessor}{\#include <dev/ofw/ofw\_bus\_subr.h>}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00049}00049 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00051}00051 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00052}00052 \textcolor{comment}{ * Media Independent Interface data structure defintions}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00053}00053 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00054}00054 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00055}00055 \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00057}00057 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00058}00058 \textcolor{comment}{ * A network interface driver has one of these structures in its softc.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00059}00059 \textcolor{comment}{ * It is the interface from the network interface driver to the MII}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00060}00060 \textcolor{comment}{ * layer.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00061}00061 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00062}\mbox{\hyperlink{structmii__data}{00062}} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00063}\mbox{\hyperlink{structmii__data_ac0e7ceb0ad8cc3eb2e55a6947d4c6fd0}{00063}}         \textcolor{keyword}{struct }ifmedia \mbox{\hyperlink{structmii__media}{mii\_media}};      \textcolor{comment}{/* media information */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00064}\mbox{\hyperlink{structmii__data_a89e7b0f6538968080eb8f89d67b23760}{00064}}         if\_t \mbox{\hyperlink{structmii__data_a89e7b0f6538968080eb8f89d67b23760}{mii\_ifp}};            \textcolor{comment}{/* pointer back to network interface */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00065}00065 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00066}00066         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00067}00067 \textcolor{comment}{         * For network interfaces with multiple PHYs, a list of all}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00068}00068 \textcolor{comment}{         * PHYs is required so they can all be notified when a media}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00069}00069 \textcolor{comment}{         * request is made.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00070}00070 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00071}\mbox{\hyperlink{structmii__data_a3b5c701adfe7b65b3cef90a1f260794d}{00071}}         \mbox{\hyperlink{structmii__data_a3b5c701adfe7b65b3cef90a1f260794d}{LIST\_HEAD}}(mii\_listhead, \mbox{\hyperlink{structmii__softc}{mii\_softc}}) mii\_phys;}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00072}\mbox{\hyperlink{structmii__data_a9d58c172187cfbfdba8a65abb4da253e}{00072}}         u\_int \mbox{\hyperlink{structmii__data_a9d58c172187cfbfdba8a65abb4da253e}{mii\_instance}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00073}00073 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00074}00074         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00075}00075 \textcolor{comment}{         * PHY driver fills this in with active media status.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00076}00076 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00077}\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{00077}}         u\_int \mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00078}\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{00078}}         u\_int \mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00079}00079 \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00080}\mbox{\hyperlink{miivar_8h_a8e46dd53281ebed7c8db1a27177ca087}{00080}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} \mbox{\hyperlink{structmii__data}{mii\_data\_t}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00081}00081 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00082}00082 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00083}00083 \textcolor{comment}{ * Functions provided by the PHY to perform various functions.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00084}00084 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00085}\mbox{\hyperlink{structmii__phy__funcs}{00085}} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phy__funcs}{mii\_phy\_funcs}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00086}\mbox{\hyperlink{structmii__phy__funcs_a24675fc4f64927cbb029cdf93880ae14}{00086}}         int (*\mbox{\hyperlink{structmii__phy__funcs_a24675fc4f64927cbb029cdf93880ae14}{pf\_service}})(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} *, \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} *, int);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00087}\mbox{\hyperlink{structmii__phy__funcs_a97affe36c1d41545dd138ceae7681156}{00087}}         void (*\mbox{\hyperlink{structmii__phy__funcs_a97affe36c1d41545dd138ceae7681156}{pf\_status}})(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00088}\mbox{\hyperlink{structmii__phy__funcs_a67107b1221b3e7ed5c9820d585447e69}{00088}}         void (*\mbox{\hyperlink{structmii__phy__funcs_a67107b1221b3e7ed5c9820d585447e69}{pf\_reset}})(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00089}00089 \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00090}00090 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00091}00091 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00092}00092 \textcolor{comment}{ * Requests that can be made to the downcall.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00093}00093 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00094}\mbox{\hyperlink{miivar_8h_a7aba758235b2d688fc41842a167187e5}{00094}} \textcolor{preprocessor}{\#define MII\_TICK        1       }\textcolor{comment}{/* once-\/per-\/second tick */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00095}\mbox{\hyperlink{miivar_8h_a6c5cb4a5233e6b1e8a8542636e8ba4c8}{00095}} \textcolor{preprocessor}{\#define MII\_MEDIACHG    2       }\textcolor{comment}{/* user changed media; perform the switch */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00096}\mbox{\hyperlink{miivar_8h_a5ee687df11441661206e4d2922ab5a52}{00096}} \textcolor{preprocessor}{\#define MII\_POLLSTAT    3       }\textcolor{comment}{/* user requested media status; fill it in */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00097}00097 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00098}00098 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00099}00099 \textcolor{comment}{ * Each PHY driver's softc has one of these as the first member.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00100}00100 \textcolor{comment}{ * XXX This would be better named "{}phy\_softc"{}, but this is the name}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00101}00101 \textcolor{comment}{ * XXX BSDI used, and we would like to have the same interface.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00102}00102 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00103}\mbox{\hyperlink{structmii__softc}{00103}} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00104}\mbox{\hyperlink{structmii__softc_a621f3e4b95682f9f64ffeacf496e9a22}{00104}}         device\_t \mbox{\hyperlink{structmii__softc_a621f3e4b95682f9f64ffeacf496e9a22}{mii\_dev}};                \textcolor{comment}{/* generic device glue */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00105}00105 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00106}\mbox{\hyperlink{structmii__softc_a813c7d41a80be6440c8b5509cf932d5e}{00106}}         \mbox{\hyperlink{structmii__softc_a813c7d41a80be6440c8b5509cf932d5e}{LIST\_ENTRY}}(\mbox{\hyperlink{structmii__softc}{mii\_softc}}) mii\_list;      \textcolor{comment}{/* entry on parent's PHY list */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00107}00107 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00108}\mbox{\hyperlink{structmii__softc_a0df74f23ca6a031c747b56fb8b1d395f}{00108}}         uint32\_t \mbox{\hyperlink{structmii__softc_a0df74f23ca6a031c747b56fb8b1d395f}{mii\_mpd\_oui}};                \textcolor{comment}{/* the PHY's OUI (MII\_OUI())*/}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00109}\mbox{\hyperlink{structmii__softc_a78f933ccf4c00044756002bdd88e4836}{00109}}         uint32\_t \mbox{\hyperlink{structmii__softc_a78f933ccf4c00044756002bdd88e4836}{mii\_mpd\_model}};            \textcolor{comment}{/* the PHY's model (MII\_MODEL())*/}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00110}\mbox{\hyperlink{structmii__softc_af3bfce0d44b1d6170301377cad2588f6}{00110}}         uint32\_t \mbox{\hyperlink{structmii__softc_af3bfce0d44b1d6170301377cad2588f6}{mii\_mpd\_rev}};                \textcolor{comment}{/* the PHY's revision (MII\_REV())*/}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00111}\mbox{\hyperlink{structmii__softc_a157af3d80c80b4529458f07886f72a38}{00111}}         u\_int \mbox{\hyperlink{structmii__softc_a157af3d80c80b4529458f07886f72a38}{mii\_capmask}};           \textcolor{comment}{/* capability mask for BMSR */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00112}\mbox{\hyperlink{structmii__softc_a7cd574d9b8e1385d05307c6043587131}{00112}}         u\_int \mbox{\hyperlink{structmii__softc_a7cd574d9b8e1385d05307c6043587131}{mii\_phy}};                   \textcolor{comment}{/* our MII address */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00113}\mbox{\hyperlink{structmii__softc_a9447be3edc1330879e19a4ff719ec584}{00113}}         u\_int \mbox{\hyperlink{structmii__softc_a9447be3edc1330879e19a4ff719ec584}{mii\_offset}};             \textcolor{comment}{/* first PHY, second PHY, etc. */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00114}\mbox{\hyperlink{structmii__softc_a18ed2a5251a1dd8abf3c2d02f7b13a22}{00114}}         u\_int \mbox{\hyperlink{structmii__softc_a18ed2a5251a1dd8abf3c2d02f7b13a22}{mii\_inst}};                 \textcolor{comment}{/* instance for ifmedia */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00115}00115 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00116}00116         \textcolor{comment}{/* Our PHY functions. */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00117}\mbox{\hyperlink{structmii__softc_ac65a28bd6117c18e6dd45dde143e3f0f}{00117}}         \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phy__funcs}{mii\_phy\_funcs}} *\mbox{\hyperlink{structmii__softc_ac65a28bd6117c18e6dd45dde143e3f0f}{mii\_funcs}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00118}00118 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00119}\mbox{\hyperlink{structmii__softc_a12011aec864a92fb63b711b43e6b4356}{00119}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} *\mbox{\hyperlink{structmii__softc_a12011aec864a92fb63b711b43e6b4356}{mii\_pdata}};    \textcolor{comment}{/* pointer to parent's mii\_data */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00120}00120 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00121}\mbox{\hyperlink{structmii__softc_a99b489a558d699d0a69ffd5405db81aa}{00121}}         u\_int \mbox{\hyperlink{structmii__softc_a99b489a558d699d0a69ffd5405db81aa}{mii\_flags}};               \textcolor{comment}{/* misc. flags; see below */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00122}\mbox{\hyperlink{structmii__softc_ac3b545baf912e9bd14af8df8bb388050}{00122}}         u\_int \mbox{\hyperlink{structmii__softc_ac3b545baf912e9bd14af8df8bb388050}{mii\_capabilities}};         \textcolor{comment}{/* capabilities from BMSR */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00123}\mbox{\hyperlink{structmii__softc_a9e880a089e764bf319ae80abfa6e2daa}{00123}}         u\_int \mbox{\hyperlink{structmii__softc_a9e880a089e764bf319ae80abfa6e2daa}{mii\_extcapabilities}};   \textcolor{comment}{/* extended capabilities */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00124}\mbox{\hyperlink{structmii__softc_a4be7f594fccaa2de7950161135edb3eb}{00124}}         u\_int \mbox{\hyperlink{structmii__softc_a4be7f594fccaa2de7950161135edb3eb}{mii\_ticks}};               \textcolor{comment}{/* MII\_TICK counter */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00125}\mbox{\hyperlink{structmii__softc_a360601e70b34832b08ce0b1db3b39113}{00125}}         u\_int \mbox{\hyperlink{structmii__softc_a360601e70b34832b08ce0b1db3b39113}{mii\_anegticks}};               \textcolor{comment}{/* ticks before retrying aneg */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00126}\mbox{\hyperlink{structmii__softc_a4abee36b90149a841b5fab48bc918f5f}{00126}}         u\_int \mbox{\hyperlink{structmii__softc_a4abee36b90149a841b5fab48bc918f5f}{mii\_media\_active}};         \textcolor{comment}{/* last active media */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00127}\mbox{\hyperlink{structmii__softc_a8596338c95ed0534343b4c7122745399}{00127}}         u\_int \mbox{\hyperlink{structmii__softc_a8596338c95ed0534343b4c7122745399}{mii\_media\_status}};         \textcolor{comment}{/* last active status */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00128}\mbox{\hyperlink{structmii__softc_a62d6b45733153b536e1a48ef97b7cc49}{00128}}         u\_int \mbox{\hyperlink{structmii__softc_a62d6b45733153b536e1a48ef97b7cc49}{mii\_maxspeed}};         \textcolor{comment}{/* Max speed supported by this PHY */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00129}00129 \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00130}\mbox{\hyperlink{miivar_8h_a69a59906c2bac3844482c527813ce8d9}{00130}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} \mbox{\hyperlink{structmii__softc}{mii\_softc\_t}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00131}00131 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00132}00132 \textcolor{comment}{/* mii\_flags */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00133}\mbox{\hyperlink{miivar_8h_a4c601e2b87fd86ad662016b3a790101b}{00133}} \textcolor{preprocessor}{\#define MIIF\_INITDONE   0x00000001      }\textcolor{comment}{/* has been initialized (mii\_data) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00134}\mbox{\hyperlink{miivar_8h_ab5201dd2953a06a0ea2cd36a4332d82a}{00134}} \textcolor{preprocessor}{\#define MIIF\_NOISOLATE  0x00000002      }\textcolor{comment}{/* do not isolate the PHY */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00135}00135 \textcolor{preprocessor}{\#if 0}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00136}00136 \textcolor{preprocessor}{\#define MIIF\_NOLOOP     0x00000004      }\textcolor{comment}{/* no loopback capability */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00137}00137 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00138}\mbox{\hyperlink{miivar_8h_ab4ffdeb9023b18b5d9e09c63597d1498}{00138}} \textcolor{preprocessor}{\#define MIIF\_DOINGAUTO  0x00000008      }\textcolor{comment}{/* doing autonegotiation (mii\_softc) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00139}\mbox{\hyperlink{miivar_8h_a470425c55fba56fcb79cfe311c119acc}{00139}} \textcolor{preprocessor}{\#define MIIF\_AUTOTSLEEP 0x00000010      }\textcolor{comment}{/* use tsleep(), not callout() */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00140}\mbox{\hyperlink{miivar_8h_a3861125448d6d4e140fc3dffd7d8e89e}{00140}} \textcolor{preprocessor}{\#define MIIF\_HAVEFIBER  0x00000020      }\textcolor{comment}{/* from parent: has fiber interface */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00141}\mbox{\hyperlink{miivar_8h_a376a284eabf873a1d35c3d52c93e8502}{00141}} \textcolor{preprocessor}{\#define MIIF\_HAVE\_GTCR  0x00000040      }\textcolor{comment}{/* has 100base-\/T2/1000base-\/T CR */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00142}\mbox{\hyperlink{miivar_8h_a6a002884e9ef8960e630d1a16cd2c067}{00142}} \textcolor{preprocessor}{\#define MIIF\_IS\_1000X   0x00000080      }\textcolor{comment}{/* is a 1000BASE-\/X device */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00143}\mbox{\hyperlink{miivar_8h_a14bf33c6e55e70acdbf98ebecde8997f}{00143}} \textcolor{preprocessor}{\#define MIIF\_DOPAUSE    0x00000100      }\textcolor{comment}{/* advertise PAUSE capability */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00144}\mbox{\hyperlink{miivar_8h_a3d8cb1fbfbadf58f4d147f4450c2dce3}{00144}} \textcolor{preprocessor}{\#define MIIF\_IS\_HPNA    0x00000200      }\textcolor{comment}{/* is a HomePNA device */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00145}\mbox{\hyperlink{miivar_8h_a474c09fc3e5b6259afdafd938e73b987}{00145}} \textcolor{preprocessor}{\#define MIIF\_FORCEANEG  0x00000400      }\textcolor{comment}{/* force auto-\/negotiation */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00146}\mbox{\hyperlink{miivar_8h_a93e273c6fdf03fbce63df6a03cb6c297}{00146}} \textcolor{preprocessor}{\#define MIIF\_RX\_DELAY   0x00000800      }\textcolor{comment}{/* add RX delay */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00147}\mbox{\hyperlink{miivar_8h_a41b979272b88fd31c5317e0ab6e417e4}{00147}} \textcolor{preprocessor}{\#define MIIF\_TX\_DELAY   0x00001000      }\textcolor{comment}{/* add TX delay */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00148}\mbox{\hyperlink{miivar_8h_a8d2d38c2ee2b3eb2ccd1f0a3da5fed03}{00148}} \textcolor{preprocessor}{\#define MIIF\_NOMANPAUSE 0x00100000      }\textcolor{comment}{/* no manual PAUSE selection */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00149}\mbox{\hyperlink{miivar_8h_a16048a4e2a1da2f657f54b516df4b1fe}{00149}} \textcolor{preprocessor}{\#define MIIF\_FORCEPAUSE 0x00200000      }\textcolor{comment}{/* force PAUSE advertisement */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00150}\mbox{\hyperlink{miivar_8h_a0314c7a6cff6515cb3c5871216b4ee79}{00150}} \textcolor{preprocessor}{\#define MIIF\_MACPRIV0   0x01000000      }\textcolor{comment}{/* private to the MAC driver */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00151}\mbox{\hyperlink{miivar_8h_a9e4bcc7b5432cb34feb92364cdce52fa}{00151}} \textcolor{preprocessor}{\#define MIIF\_MACPRIV1   0x02000000      }\textcolor{comment}{/* private to the MAC driver */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00152}\mbox{\hyperlink{miivar_8h_a23d9c60fcd33ee4924a6affc1ffa46e8}{00152}} \textcolor{preprocessor}{\#define MIIF\_MACPRIV2   0x04000000      }\textcolor{comment}{/* private to the MAC driver */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00153}\mbox{\hyperlink{miivar_8h_aeff9132795910ffcb66a26503a6bd09b}{00153}} \textcolor{preprocessor}{\#define MIIF\_PHYPRIV0   0x10000000      }\textcolor{comment}{/* private to the PHY driver */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00154}\mbox{\hyperlink{miivar_8h_a38f3b832137b0157c59881f3f30b0c98}{00154}} \textcolor{preprocessor}{\#define MIIF\_PHYPRIV1   0x20000000      }\textcolor{comment}{/* private to the PHY driver */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00155}\mbox{\hyperlink{miivar_8h_a3492d0ca2595d4b2054658287e280b30}{00155}} \textcolor{preprocessor}{\#define MIIF\_PHYPRIV2   0x40000000      }\textcolor{comment}{/* private to the PHY driver */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00156}00156 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00157}00157 \textcolor{comment}{/* Default mii\_anegticks values */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00158}\mbox{\hyperlink{miivar_8h_a42a72427970e47f6981f3725ad177d43}{00158}} \textcolor{preprocessor}{\#define MII\_ANEGTICKS           5}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00159}\mbox{\hyperlink{miivar_8h_a6bd00bb7fe1f163e00cc324b104a6bb6}{00159}} \textcolor{preprocessor}{\#define MII\_ANEGTICKS\_GIGE      17}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00160}00160 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00161}\mbox{\hyperlink{miivar_8h_aa00e0cc38723501afeebc8798a57b1cc}{00161}} \textcolor{preprocessor}{\#define MIIF\_INHERIT\_MASK       (MIIF\_NOISOLATE|MIIF\_NOLOOP|MIIF\_AUTOTSLEEP)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00162}00162 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00163}00163 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00164}00164 \textcolor{comment}{ * Special `locators' passed to mii\_attach().  If one of these is not}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00165}00165 \textcolor{comment}{ * an `any' value, we look for *that* PHY and configure it.  If both}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00166}00166 \textcolor{comment}{ * are not `any', that is an error, and mii\_attach() will fail.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00167}00167 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00168}\mbox{\hyperlink{miivar_8h_a424214bc8096c193c09b9412128012ed}{00168}} \textcolor{preprocessor}{\#define MII\_OFFSET\_ANY          -\/1}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00169}\mbox{\hyperlink{miivar_8h_a8575da397ecc3f3de4aaeba11e6d7801}{00169}} \textcolor{preprocessor}{\#define MII\_PHY\_ANY             -\/1}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00170}00170 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00171}00171 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00172}00172 \textcolor{comment}{ * Constants used to describe the type of attachment between MAC and PHY.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00173}00173 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00174}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994}{00174}} \textcolor{keyword}{enum} \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994}{mii\_contype}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00175}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a776514561342e4653ad6f8a713cf63c9}{00175}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a776514561342e4653ad6f8a713cf63c9}{MII\_CONTYPE\_UNKNOWN}}, \textcolor{comment}{/* Must be have value 0. */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00176}00176 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00177}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a40c567a5d0abba368ae188ae39f36bee}{00177}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a40c567a5d0abba368ae188ae39f36bee}{MII\_CONTYPE\_MII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00178}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994abb921ce5f31be90e209f8352416f26c5}{00178}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994abb921ce5f31be90e209f8352416f26c5}{MII\_CONTYPE\_GMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00179}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a14e28da40997f067fae438b62638478e}{00179}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a14e28da40997f067fae438b62638478e}{MII\_CONTYPE\_SGMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00180}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a6683d8151f44ca16ac016cc1a511b432}{00180}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a6683d8151f44ca16ac016cc1a511b432}{MII\_CONTYPE\_QSGMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00181}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994af3f2943860bdb09cd14168293c210e20}{00181}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994af3f2943860bdb09cd14168293c210e20}{MII\_CONTYPE\_TBI}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00182}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ac1af4c4aec6a8663fa57613b539b0ce3}{00182}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ac1af4c4aec6a8663fa57613b539b0ce3}{MII\_CONTYPE\_REVMII}},   \textcolor{comment}{/* Reverse MII */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00183}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994abff80a5cb150f75159bfa22532c2593b}{00183}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994abff80a5cb150f75159bfa22532c2593b}{MII\_CONTYPE\_RMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00184}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a0cefdef8a2bca1c8f6f2f323942a99c5}{00184}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a0cefdef8a2bca1c8f6f2f323942a99c5}{MII\_CONTYPE\_RGMII}},     \textcolor{comment}{/* Delays provided by MAC or PCB */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00185}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a0dfa11579e2eeb4c703354babd691db8}{00185}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a0dfa11579e2eeb4c703354babd691db8}{MII\_CONTYPE\_RGMII\_ID}},       \textcolor{comment}{/* Rx and tx delays provided by PHY */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00186}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a7167a24aa24d9aa3c71c28fcbf070524}{00186}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a7167a24aa24d9aa3c71c28fcbf070524}{MII\_CONTYPE\_RGMII\_RXID}},   \textcolor{comment}{/* Only rx delay provided by PHY */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00187}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994aa83c73872aeb5ec7eea1c15257c5a4ff}{00187}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994aa83c73872aeb5ec7eea1c15257c5a4ff}{MII\_CONTYPE\_RGMII\_TXID}},   \textcolor{comment}{/* Only tx delay provided by PHY */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00188}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a13e88ed3756f35c63d39270ce22c1864}{00188}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a13e88ed3756f35c63d39270ce22c1864}{MII\_CONTYPE\_RTBI}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00189}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994abca36b5f1180e8397ef06d1daec9520c}{00189}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994abca36b5f1180e8397ef06d1daec9520c}{MII\_CONTYPE\_SMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00190}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ae6c38541866030de400ac07ed0a4462c}{00190}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ae6c38541866030de400ac07ed0a4462c}{MII\_CONTYPE\_XGMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00191}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ad41cfdad8954206b6fb88e45ff11e61f}{00191}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ad41cfdad8954206b6fb88e45ff11e61f}{MII\_CONTYPE\_TRGMII}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00192}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994adb17d252258dab2eec506e8ed5ba3760}{00192}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994adb17d252258dab2eec506e8ed5ba3760}{MII\_CONTYPE\_2000BX}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00193}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994aeb48babac0ef9b7ee2735b15e76da76c}{00193}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994aeb48babac0ef9b7ee2735b15e76da76c}{MII\_CONTYPE\_2500BX}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00194}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ae58778de1c28e7676429daf517be2be0}{00194}}         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ae58778de1c28e7676429daf517be2be0}{MII\_CONTYPE\_RXAUI}},}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00195}00195 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00196}00196         \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ac7a9392360804ea1348fc007b37912ef}{MII\_CONTYPE\_COUNT}}      \textcolor{comment}{/* Add new types before this line. */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00197}\mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994ac7a9392360804ea1348fc007b37912ef}{00197}} \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00198}\mbox{\hyperlink{miivar_8h_a37fa9ed450b982dc7d87f2197e4a7667}{00198}} \textcolor{keyword}{typedef} \textcolor{keyword}{enum} \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994}{mii\_contype}} \mbox{\hyperlink{miivar_8h_a37fa9ed450b982dc7d87f2197e4a7667}{mii\_contype\_t}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00199}00199 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00200}00200 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keywordtype}{bool}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00201}\mbox{\hyperlink{miivar_8h_a6f49a41fccc5fd614c027c94297e18e5}{00201}} \mbox{\hyperlink{miivar_8h_a6f49a41fccc5fd614c027c94297e18e5}{mii\_contype\_is\_rgmii}}(\mbox{\hyperlink{miivar_8h_a37fa9ed450b982dc7d87f2197e4a7667}{mii\_contype\_t}} con)}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00202}00202 \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00203}00203 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00204}00204         \textcolor{keywordflow}{return} (con >= \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994a0cefdef8a2bca1c8f6f2f323942a99c5}{MII\_CONTYPE\_RGMII}} \&\& con <= \mbox{\hyperlink{miivar_8h_a53aa0c12d3aea2138990dd18aee37994aa83c73872aeb5ec7eea1c15257c5a4ff}{MII\_CONTYPE\_RGMII\_TXID}});}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00205}00205 \}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00206}00206 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00207}00207 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00208}00208 \textcolor{comment}{ * Used to attach a PHY to a parent.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00209}00209 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00210}\mbox{\hyperlink{structmii__attach__args}{00210}} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__attach__args}{mii\_attach\_args}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00211}\mbox{\hyperlink{structmii__attach__args_ad9e25452b2818a102da8810390b4afc6}{00211}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} *\mbox{\hyperlink{structmii__attach__args_ad9e25452b2818a102da8810390b4afc6}{mii\_data}};      \textcolor{comment}{/* pointer to parent data */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00212}\mbox{\hyperlink{structmii__attach__args_a57e558179b97de1ab63686e7b1cf6ee0}{00212}}         u\_int \mbox{\hyperlink{structmii__attach__args_a57e558179b97de1ab63686e7b1cf6ee0}{mii\_phyno}};               \textcolor{comment}{/* MII address */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00213}\mbox{\hyperlink{structmii__attach__args_a76771d0cd75a01a8a88b450b708e043f}{00213}}         u\_int \mbox{\hyperlink{structmii__attach__args_a76771d0cd75a01a8a88b450b708e043f}{mii\_offset}};             \textcolor{comment}{/* first PHY, second PHY, etc. */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00214}\mbox{\hyperlink{structmii__attach__args_af08d2234fa1febcc42a7c72911cd8e78}{00214}}         uint32\_t \mbox{\hyperlink{structmii__attach__args_af08d2234fa1febcc42a7c72911cd8e78}{mii\_id1}};                \textcolor{comment}{/* PHY ID register 1 */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00215}\mbox{\hyperlink{structmii__attach__args_ae1ec7d7312127efe3ce421788a5f69ee}{00215}}         uint32\_t \mbox{\hyperlink{structmii__attach__args_ae1ec7d7312127efe3ce421788a5f69ee}{mii\_id2}};                \textcolor{comment}{/* PHY ID register 2 */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00216}\mbox{\hyperlink{structmii__attach__args_a1831213a86cc3311a185512af75c9c24}{00216}}         u\_int \mbox{\hyperlink{structmii__attach__args_a1831213a86cc3311a185512af75c9c24}{mii\_capmask}};           \textcolor{comment}{/* capability mask for BMSR */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00217}00217 \textcolor{preprocessor}{\#ifdef FDT}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00218}00218         \textcolor{keyword}{struct }ofw\_bus\_devinfo obd;}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00219}00219         \textcolor{keyword}{struct }resource\_list rl;}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00220}00220 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00221}00221 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00222}00222 \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00223}\mbox{\hyperlink{miivar_8h_ae8076ad9e9cb4539afc1b26e008c374c}{00223}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__attach__args}{mii\_attach\_args}} \mbox{\hyperlink{structmii__attach__args}{mii\_attach\_args\_t}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00224}00224 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00225}00225 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00226}00226 \textcolor{comment}{ * Used to match a PHY.}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00227}00227 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00228}\mbox{\hyperlink{structmii__phydesc}{00228}} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00229}\mbox{\hyperlink{structmii__phydesc_a53e8930c288ed78cf8862a75965c9a1b}{00229}}         uint32\_t \mbox{\hyperlink{structmii__phydesc_a53e8930c288ed78cf8862a75965c9a1b}{mpd\_oui}};                \textcolor{comment}{/* the PHY's OUI */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00230}\mbox{\hyperlink{structmii__phydesc_a029a24f0cc6a07aa8893786f517a0cdf}{00230}}         uint32\_t \mbox{\hyperlink{structmii__phydesc_a029a24f0cc6a07aa8893786f517a0cdf}{mpd\_model}};            \textcolor{comment}{/* the PHY's model */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00231}\mbox{\hyperlink{structmii__phydesc_a4dfec8da87088f844bd67f7026ec0c20}{00231}}         \textcolor{keyword}{const} \textcolor{keywordtype}{char} *\mbox{\hyperlink{structmii__phydesc_a4dfec8da87088f844bd67f7026ec0c20}{mpd\_name}};           \textcolor{comment}{/* the PHY's name */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00232}00232 \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00233}\mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{00233}} \textcolor{preprocessor}{\#define MII\_PHY\_DESC(a, b) \{ MII\_OUI\_ \#\# a, MII\_MODEL\_ \#\# a \#\# \_ \#\# b, \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00234}00234 \textcolor{preprocessor}{        MII\_STR\_ \#\# a \#\# \_ \#\# b \}}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00235}\mbox{\hyperlink{miivar_8h_a4cc657798701d214afbeff2b27c5083d}{00235}} \textcolor{preprocessor}{\#define MII\_PHY\_END     \{ 0, 0, NULL \}}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00236}00236 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00237}00237 \textcolor{preprocessor}{\#ifdef \_KERNEL}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00238}00238 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00239}\mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{00239}} \textcolor{preprocessor}{\#define PHY\_READ(p, r) \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00240}00240 \textcolor{preprocessor}{        MIIBUS\_READREG((p)-\/>mii\_dev, (p)-\/>mii\_phy, (r))}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00241}00241 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00242}\mbox{\hyperlink{miivar_8h_af302bd91f8177e3ca317b822f00680b5}{00242}} \textcolor{preprocessor}{\#define PHY\_WRITE(p, r, v) \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00243}00243 \textcolor{preprocessor}{        MIIBUS\_WRITEREG((p)-\/>mii\_dev, (p)-\/>mii\_phy, (r), (v))}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00244}00244 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00245}\mbox{\hyperlink{miivar_8h_a3c38a2cb54bdd04e775faf530260ebf1}{00245}} \textcolor{preprocessor}{\#define PHY\_SERVICE(p, d, o) \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00246}00246 \textcolor{preprocessor}{        (*(p)-\/>mii\_funcs-\/>pf\_service)((p), (d), (o))}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00247}00247 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00248}\mbox{\hyperlink{miivar_8h_a1c1cdb714bf40ba701256727dd6a73c5}{00248}} \textcolor{preprocessor}{\#define PHY\_STATUS(p) \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00249}00249 \textcolor{preprocessor}{        (*(p)-\/>mii\_funcs-\/>pf\_status)(p)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00250}00250 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00251}\mbox{\hyperlink{miivar_8h_aa355e0359542ffc84e9060ab4556f4d8}{00251}} \textcolor{preprocessor}{\#define PHY\_RESET(p) \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00252}00252 \textcolor{preprocessor}{        (*(p)-\/>mii\_funcs-\/>pf\_reset)(p)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00253}00253 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00254}\mbox{\hyperlink{miivar_8h_ae4d63865b289ff845a905f4420db600b}{00254}} \textcolor{keyword}{enum} \mbox{\hyperlink{miivar_8h_ae4d63865b289ff845a905f4420db600b}{miibus\_device\_ivars}} \{}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00255}00255         \mbox{\hyperlink{miivar_8h_ae4d63865b289ff845a905f4420db600bae65516ead8895b6ea1fc20b49b10c271}{MIIBUS\_IVAR\_FLAGS}}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00256}\mbox{\hyperlink{miivar_8h_ae4d63865b289ff845a905f4420db600bae65516ead8895b6ea1fc20b49b10c271}{00256}} \};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00257}00257 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00258}00258 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00259}00259 \textcolor{comment}{ * Simplified accessors for miibus}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00260}00260 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00261}\mbox{\hyperlink{miivar_8h_a99055a28ea675120e871e4e24ac5b462}{00261}} \textcolor{preprocessor}{\#define MIIBUS\_ACCESSOR(var, ivar, type)                                \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00262}00262 \textcolor{preprocessor}{        \_\_BUS\_ACCESSOR(miibus, var, MIIBUS, ivar, type)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00263}00263 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00264}00264 \mbox{\hyperlink{miivar_8h_a99055a28ea675120e871e4e24ac5b462}{MIIBUS\_ACCESSOR}}(flags,           FLAGS,          u\_int)}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00265}00265 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00266}00266 \textcolor{keyword}{extern} devclass\_t       \mbox{\hyperlink{miivar_8h_af181db0feb78dcfb1985ce68036224b1}{miibus\_devclass}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00267}\mbox{\hyperlink{miivar_8h_a1446c59ce085c263658c6756d7e48eb9}{00267}} \mbox{\hyperlink{miivar_8h_a1446c59ce085c263658c6756d7e48eb9}{DECLARE\_CLASS}}(miibus\_driver);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00268}00268 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00269}00269 \textcolor{preprocessor}{\#ifdef FDT}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00270}00270 \textcolor{keyword}{extern} devclass\_t       \mbox{\hyperlink{mii__fdt_8c_a05dd706be7ea0bfab2cba3ddfa08d0ca}{miibus\_fdt\_devclass}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00271}00271 \mbox{\hyperlink{miivar_8h_a1446c59ce085c263658c6756d7e48eb9}{DECLARE\_CLASS}}(miibus\_fdt\_driver);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00272}00272 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00273}00273 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00274}00274 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00275}00275 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_a7d5851ea117e85c03cfcf9aac5c89e12}{mii\_attach}}(device\_t, device\_t *, if\_t, ifm\_change\_cb\_t,}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00276}00276             ifm\_stat\_cb\_t, \textcolor{keywordtype}{int}, \textcolor{keywordtype}{int}, \textcolor{keywordtype}{int}, \textcolor{keywordtype}{int});}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00277}00277 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_aa1bbd78155ea7d03b758e710428a1bea}{mii\_mediachg}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00278}00278 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_a21195d566f3baeb0077cc1a0b5670244}{mii\_tick}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00279}00279 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_a69d0182b4355d777bcc0e9b5333455a2}{mii\_pollstat}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00280}00280 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_af475d095ca6670c63234867ebd003c52}{mii\_phy\_add\_media}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00281}00281 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00282}00282 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_aaa2d8f7a6c96998ef5f6543664be247f}{mii\_phy\_auto}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00283}00283 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_af08a34e3932c19824be61fc41ee1083f}{mii\_phy\_detach}}(device\_t dev);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00284}00284 u\_int   \mbox{\hyperlink{miivar_8h_a6f945b53605d922b718f733206dc7741}{mii\_phy\_flowstatus}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00285}00285 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_a6ead7469ed80ea39368d4f11ffc8d717}{mii\_phy\_reset}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00286}00286 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_afac2ea5f0d036a16125e01fc48a41457}{mii\_phy\_setmedia}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00287}00287 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_a2d5849f2243ded06e1c96b16276a08ac}{mii\_phy\_update}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *, \textcolor{keywordtype}{int});}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00288}00288 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_a5a13580ddf20683153e409d9d3adfdf6}{mii\_phy\_tick}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00289}00289 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_aa3f6b952143540011e3050032999319f}{mii\_phy\_mac\_match}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00290}00290 \textcolor{keywordtype}{int}     \mbox{\hyperlink{miivar_8h_a2452dbd121c8f11bfc417fe00efbdfd7}{mii\_dev\_mac\_match}}(device\_t, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00291}00291 \textcolor{keywordtype}{void}    *\mbox{\hyperlink{miivar_8h_a2be724a9f630fbd54a77c7372c7fd69d}{mii\_phy\_mac\_softc}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00292}00292 \textcolor{keywordtype}{void}    *\mbox{\hyperlink{miivar_8h_a654a0b8fcd7e3ca110f23589301fefb3}{mii\_dev\_mac\_softc}}(device\_t);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00293}00293 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00294}00294 \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} * \mbox{\hyperlink{miivar_8h_acfc83d22ec9816dc363e4c25af5bff95}{mii\_phy\_match}}(\textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__attach__args}{mii\_attach\_args}} *ma,}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00295}00295     \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} *mpd);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00296}00296 \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} * \mbox{\hyperlink{miivar_8h_a8f29a7c707299e08c6f73a3912ea4a3f}{mii\_phy\_match\_gen}}(\textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__attach__args}{mii\_attach\_args}} *ma,}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00297}00297     \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} *mpd, \textcolor{keywordtype}{size\_t} endlen);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00298}00298 \textcolor{keywordtype}{int} \mbox{\hyperlink{miivar_8h_a6eae4dd21de85ca536b06467bf0a5f88}{mii\_phy\_dev\_probe}}(device\_t dev, \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} *mpd, \textcolor{keywordtype}{int} mrv);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00299}00299 \textcolor{keywordtype}{void} \mbox{\hyperlink{miivar_8h_a50acf7ba3fab73b23c13fe7da8c93f1d}{mii\_phy\_dev\_attach}}(device\_t dev, u\_int flags,}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00300}00300     \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__phy__funcs}{mii\_phy\_funcs}} *mpf, \textcolor{keywordtype}{int} add\_media);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00301}00301 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00302}\mbox{\hyperlink{miivar_8h_aadba372ccfe5d7d94a1273eaea985a6a}{00302}} device\_attach\_t \mbox{\hyperlink{miivar_8h_aadba372ccfe5d7d94a1273eaea985a6a}{miibus\_attach}};}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00303}00303 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00304}00304 \textcolor{keywordtype}{void}    \mbox{\hyperlink{miivar_8h_af0fe8ba84ff2d8de4b480836f1cd7bbc}{ukphy\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00305}00305 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00306}00306 u\_int   \mbox{\hyperlink{miivar_8h_ae0c257c6c6de6e4d901d44db35d82aad}{mii\_oui}}(u\_int, u\_int);}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00307}\mbox{\hyperlink{miivar_8h_a5498c0b81bb923a3a609e1a7ab4dd0a6}{00307}} \textcolor{preprocessor}{\#define MII\_OUI(id1, id2)       mii\_oui(id1, id2)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00308}\mbox{\hyperlink{miivar_8h_af86103abe9e9a3aa82a603d9326a0a0b}{00308}} \textcolor{preprocessor}{\#define MII\_MODEL(id2)          (((id2) \& IDR2\_MODEL) >> 4)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00309}\mbox{\hyperlink{miivar_8h_a6a560383c86d4ad602121c71644c3aac}{00309}} \textcolor{preprocessor}{\#define MII\_REV(id2)            ((id2) \& IDR2\_REV)}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00310}00310 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00311}00311 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_KERNEL */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00312}00312 }
\DoxyCodeLine{\Hypertarget{miivar_8h_source_l00313}00313 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_DEV\_MII\_MIIVAR\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
