\hypertarget{nsgphy_8c_source}{}\doxysection{nsgphy.\+c}
\label{nsgphy_8c_source}\index{dev/mii/nsgphy.c@{dev/mii/nsgphy.c}}
\mbox{\hyperlink{nsgphy_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/4-\/Clause}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2001 Wind River Systems}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00005}00005 \textcolor{comment}{ * Copyright (c) 2001}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00006}00006 \textcolor{comment}{ *      Bill Paul <wpaul@bsdi.com>.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00007}00007 \textcolor{comment}{ * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00008}00008 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00009}00009 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00010}00010 \textcolor{comment}{ * This code is derived from software contributed to The NetBSD Foundation}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00011}00011 \textcolor{comment}{ * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00012}00012 \textcolor{comment}{ * NASA Ames Research Center.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00013}00013 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00014}00014 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00015}00015 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00016}00016 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00017}00017 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00018}00018 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00019}00019 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00020}00020 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00021}00021 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00022}00022 \textcolor{comment}{ * 3. All advertising materials mentioning features or use of this software}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00023}00023 \textcolor{comment}{ *    must display the following acknowledgement:}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00024}00024 \textcolor{comment}{ *      This product includes software developed by Bill Paul.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00025}00025 \textcolor{comment}{ * 4. Neither the name of the author nor the names of any co-\/contributors}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00026}00026 \textcolor{comment}{ *    may be used to endorse or promote products derived from this software}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00027}00027 \textcolor{comment}{ *    without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00028}00028 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00029}00029 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00030}00030 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00031}00031 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00032}00032 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00033}00033 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00034}00034 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00035}00035 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00036}00036 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00037}00037 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00038}00038 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00039}00039 \textcolor{comment}{ * THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00040}00040 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00041}00041 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00042}00042 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00043}\mbox{\hyperlink{nsgphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00043}} \mbox{\hyperlink{nsgphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00045}00045 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00046}00046 \textcolor{comment}{ * Driver for the National Semiconductor DP83861, DP83865 and DP83891}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00047}00047 \textcolor{comment}{ * 10/100/1000 PHYs.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00048}00048 \textcolor{comment}{ * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00049}00049 \textcolor{comment}{ * and at: http://www.national.com/ds/DP/DP83865.pdf}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00050}00050 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00051}00051 \textcolor{comment}{ * The DP83891 is the older NS GigE PHY which isn't being sold}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00052}00052 \textcolor{comment}{ * anymore.  The DP83861 is its replacement, which is an 'enhanced'}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00053}00053 \textcolor{comment}{ * firmware driven component.  The major difference between the}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00054}00054 \textcolor{comment}{ * two is that the DP83891 can't generate interrupts, while the}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00055}00055 \textcolor{comment}{ * 83861 can (probably it wasn't originally designed to do this, but}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00056}00056 \textcolor{comment}{ * it can now thanks to firmware updates).  The DP83861 also allows}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00057}00057 \textcolor{comment}{ * access to its internal RAM via indirect register access.  The}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00058}00058 \textcolor{comment}{ * DP83865 is an ultra low power version of the DP83861 and DP83891.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00059}00059 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00060}00060 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00061}00061 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00062}00062 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00063}00063 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00064}00064 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00065}00065 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00066}00066 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00067}00067 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00068}00068 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00069}00069 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00070}00070 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00071}00071 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{mii_8h}{dev/mii/mii.h}}>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00072}00072 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{miivar_8h}{dev/mii/miivar.h}}>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00073}00073 \textcolor{preprocessor}{\#include "{}miidevs.h"{}}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00074}00074 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00075}00075 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{nsgphyreg_8h}{dev/mii/nsgphyreg.h}}>}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00076}00076 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00077}00077 \textcolor{preprocessor}{\#include "{}miibus\_if.h"{}}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00078}00078 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00079}00079 \textcolor{keyword}{static} \textcolor{keywordtype}{int} \mbox{\hyperlink{nsgphy_8c_a2a6d57bd92cbfa4593411ff6603e24ad}{nsgphy\_probe}}(device\_t);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00080}00080 \textcolor{keyword}{static} \textcolor{keywordtype}{int} \mbox{\hyperlink{nsgphy_8c_af8b6c4aefc9510f24d2be6124d9fe1af}{nsgphy\_attach}}(device\_t);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00081}00081 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00082}\mbox{\hyperlink{nsgphy_8c_a9faff5ac2f539e8f0914d1745c6bca5a}{00082}} \textcolor{keyword}{static} device\_method\_t \mbox{\hyperlink{nsgphy_8c_a9faff5ac2f539e8f0914d1745c6bca5a}{nsgphy\_methods}}[] = \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00083}00083         \textcolor{comment}{/* device interface */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00084}00084         DEVMETHOD(device\_probe,         \mbox{\hyperlink{nsgphy_8c_a2a6d57bd92cbfa4593411ff6603e24ad}{nsgphy\_probe}}),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00085}00085         DEVMETHOD(device\_attach,        \mbox{\hyperlink{nsgphy_8c_af8b6c4aefc9510f24d2be6124d9fe1af}{nsgphy\_attach}}),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00086}00086         DEVMETHOD(device\_detach,        \mbox{\hyperlink{mii__physubr_8c_af08a34e3932c19824be61fc41ee1083f}{mii\_phy\_detach}}),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00087}00087         DEVMETHOD(device\_shutdown,      bus\_generic\_shutdown),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00088}00088         DEVMETHOD\_END}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00089}00089 \};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00090}00090 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00091}\mbox{\hyperlink{nsgphy_8c_ad1c7dbf768c69f887ceb3dbe46f449c8}{00091}} \textcolor{keyword}{static} devclass\_t \mbox{\hyperlink{nsgphy_8c_ad1c7dbf768c69f887ceb3dbe46f449c8}{nsgphy\_devclass}};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00092}00092 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00093}\mbox{\hyperlink{nsgphy_8c_aa601a974afc0eb319ba380f1e26456b7}{00093}} \textcolor{keyword}{static} driver\_t \mbox{\hyperlink{nsgphy_8c_aa601a974afc0eb319ba380f1e26456b7}{nsgphy\_driver}} = \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00094}00094         \textcolor{stringliteral}{"{}nsgphy"{}},}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00095}00095         \mbox{\hyperlink{nsgphy_8c_a9faff5ac2f539e8f0914d1745c6bca5a}{nsgphy\_methods}},}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00096}00096         \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}})}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00097}00097 \};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00098}00098 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00099}\mbox{\hyperlink{nsgphy_8c_ad9e5b23e1bf6dfc759d96feafc478722}{00099}} \mbox{\hyperlink{nsgphy_8c_ad9e5b23e1bf6dfc759d96feafc478722}{DRIVER\_MODULE}}(nsgphy, \mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{miibus}}, \mbox{\hyperlink{nsgphy_8c_aa601a974afc0eb319ba380f1e26456b7}{nsgphy\_driver}}, \mbox{\hyperlink{nsgphy_8c_ad1c7dbf768c69f887ceb3dbe46f449c8}{nsgphy\_devclass}}, 0, 0);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00100}00100 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00101}00101 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{nsgphy_8c_aa37336bbf056d7dcac6b0a551df3c472}{nsgphy\_service}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *, \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *,\textcolor{keywordtype}{int});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00102}00102 \textcolor{keyword}{static} \textcolor{keywordtype}{void}     \mbox{\hyperlink{nsgphy_8c_aedb65ac919378c69b86df00ce117a30c}{nsgphy\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00103}00103 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00104}\mbox{\hyperlink{nsgphy_8c_a0f57a72afb8b22c47f48b816a7fbd667}{00104}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} \mbox{\hyperlink{nsgphy_8c_a0f57a72afb8b22c47f48b816a7fbd667}{nsgphys}}[] = \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00105}00105         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxNATSEMI, DP83861),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00106}00106         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxNATSEMI, DP83865),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00107}00107         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxNATSEMI, DP83891),}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00108}00108         \mbox{\hyperlink{miivar_8h_a4cc657798701d214afbeff2b27c5083d}{MII\_PHY\_END}}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00109}00109 \};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00110}00110 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00111}\mbox{\hyperlink{nsgphy_8c_a1a44ada7aa15c26543bc1d454cf8430a}{00111}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phy__funcs}{mii\_phy\_funcs}} \mbox{\hyperlink{nsgphy_8c_a1a44ada7aa15c26543bc1d454cf8430a}{nsgphy\_funcs}} = \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00112}00112         \mbox{\hyperlink{nsgphy_8c_aa37336bbf056d7dcac6b0a551df3c472}{nsgphy\_service}},}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00113}00113         \mbox{\hyperlink{nsgphy_8c_aedb65ac919378c69b86df00ce117a30c}{nsgphy\_status}},}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00114}00114         \mbox{\hyperlink{mii__physubr_8c_ac21db38f2acb040663be6eac5468eaa2}{mii\_phy\_reset}}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00115}00115 \};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00116}00116 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00117}00117 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00118}\mbox{\hyperlink{nsgphy_8c_a2a6d57bd92cbfa4593411ff6603e24ad}{00118}} \mbox{\hyperlink{nsgphy_8c_a2a6d57bd92cbfa4593411ff6603e24ad}{nsgphy\_probe}}(device\_t dev)}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00119}00119 \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00120}00120 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00121}00121         \textcolor{keywordflow}{return} (\mbox{\hyperlink{mii__physubr_8c_a6eae4dd21de85ca536b06467bf0a5f88}{mii\_phy\_dev\_probe}}(dev, \mbox{\hyperlink{nsgphy_8c_a0f57a72afb8b22c47f48b816a7fbd667}{nsgphys}}, BUS\_PROBE\_DEFAULT));}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00122}00122 \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00123}00123 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00124}00124 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00125}\mbox{\hyperlink{nsgphy_8c_af8b6c4aefc9510f24d2be6124d9fe1af}{00125}} \mbox{\hyperlink{nsgphy_8c_af8b6c4aefc9510f24d2be6124d9fe1af}{nsgphy\_attach}}(device\_t dev)}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00126}00126 \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00127}00127         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00128}00128 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00129}00129         sc = device\_get\_softc(dev);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00130}00130 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00131}00131         \mbox{\hyperlink{mii__physubr_8c_a50acf7ba3fab73b23c13fe7da8c93f1d}{mii\_phy\_dev\_attach}}(dev, \mbox{\hyperlink{miivar_8h_a8d2d38c2ee2b3eb2ccd1f0a3da5fed03}{MIIF\_NOMANPAUSE}}, \&\mbox{\hyperlink{nsgphy_8c_a1a44ada7aa15c26543bc1d454cf8430a}{nsgphy\_funcs}}, 0);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00132}00132 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00133}00133         \mbox{\hyperlink{miivar_8h_aa355e0359542ffc84e9060ab4556f4d8}{PHY\_RESET}}(sc);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00134}00134 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00135}00135         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00136}00136 \textcolor{comment}{         * NB: the PHY has the 10BASE-\/T BMSR bits hard-\/wired to 0,}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00137}00137 \textcolor{comment}{         * even though it supports 10BASE-\/T.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00138}00138 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00139}00139         sc-\/>\mbox{\hyperlink{structmii__softc_ac3b545baf912e9bd14af8df8bb388050}{mii\_capabilities}} = (\mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_aa2f632686d6298a7c898b1c805586aab}{MII\_BMSR}}) |}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00140}00140             \mbox{\hyperlink{mii_8h_a2107023850de2125d9f4e2a80d2ea0ea}{BMSR\_10TFDX}} | \mbox{\hyperlink{mii_8h_ad5f1eab10df476c73a276366a36c6717}{BMSR\_10THDX}}) \& sc-\/>\mbox{\hyperlink{structmii__softc_a157af3d80c80b4529458f07886f72a38}{mii\_capmask}};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00141}00141         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00142}00142 \textcolor{comment}{         * Note that as documented manual 1000BASE-\/T modes of DP83865 only}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00143}00143 \textcolor{comment}{         * work together with other National Semiconductor PHYs.}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00144}00144 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00145}00145         if (sc-\/>\mbox{\hyperlink{structmii__softc_ac3b545baf912e9bd14af8df8bb388050}{mii\_capabilities}} \& \mbox{\hyperlink{mii_8h_ab4f6d84420322e12fccdd4647cdcce3e}{BMSR\_EXTSTAT}})}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00146}00146                 sc-\/>\mbox{\hyperlink{structmii__softc_a9e880a089e764bf319ae80abfa6e2daa}{mii\_extcapabilities}} = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_a615063b2b7e3d314ccf5a8adeb86ffb7}{MII\_EXTSR}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00147}00147 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00148}00148         \mbox{\hyperlink{mii__physubr_8c_ac6dc37c9b11e82962dbe7800afdda4cd}{mii\_phy\_add\_media}}(sc);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00149}00149         printf(\textcolor{stringliteral}{"{}\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00150}00150 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00151}00151         MIIBUS\_MEDIAINIT(sc-\/>\mbox{\hyperlink{structmii__softc_a621f3e4b95682f9f64ffeacf496e9a22}{mii\_dev}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00152}00152         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00153}00153 \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00154}00154 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00155}00155 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00156}\mbox{\hyperlink{nsgphy_8c_aa37336bbf056d7dcac6b0a551df3c472}{00156}} \mbox{\hyperlink{nsgphy_8c_aa37336bbf056d7dcac6b0a551df3c472}{nsgphy\_service}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *mii, \textcolor{keywordtype}{int} cmd)}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00157}00157 \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00158}00158 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00159}00159         \textcolor{keywordflow}{switch} (cmd) \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00160}00160         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a5ee687df11441661206e4d2922ab5a52}{MII\_POLLSTAT}}:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00161}00161                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00162}00162 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00163}00163         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a6c5cb4a5233e6b1e8a8542636e8ba4c8}{MII\_MEDIACHG}}:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00164}00164                 \mbox{\hyperlink{mii__physubr_8c_afac2ea5f0d036a16125e01fc48a41457}{mii\_phy\_setmedia}}(sc);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00165}00165                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00166}00166 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00167}00167         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a7aba758235b2d688fc41842a167187e5}{MII\_TICK}}:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00168}00168                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{mii__physubr_8c_aee0c2c158db70e66816d5c1269e83290}{mii\_phy\_tick}}(sc) == EJUSTRETURN)}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00169}00169                         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00170}00170                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00171}00171         \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00172}00172 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00173}00173         \textcolor{comment}{/* Update the media status. */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00174}00174         \mbox{\hyperlink{miivar_8h_a1c1cdb714bf40ba701256727dd6a73c5}{PHY\_STATUS}}(sc);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00175}00175 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00176}00176         \textcolor{comment}{/* Callback if something changed. */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00177}00177         \mbox{\hyperlink{mii__physubr_8c_ac5a93e41e086c93143a04d9d4548b251}{mii\_phy\_update}}(sc, cmd);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00178}00178         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00179}00179 \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00180}00180 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00181}00181 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00182}\mbox{\hyperlink{nsgphy_8c_aedb65ac919378c69b86df00ce117a30c}{00182}} \mbox{\hyperlink{nsgphy_8c_aedb65ac919378c69b86df00ce117a30c}{nsgphy\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00183}00183 \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00184}00184         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} *mii = sc-\/>\mbox{\hyperlink{structmii__softc_a12011aec864a92fb63b711b43e6b4356}{mii\_pdata}};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00185}00185         \textcolor{keyword}{struct }ifmedia\_entry *ife = mii-\/>\mbox{\hyperlink{structmii__data_ac0e7ceb0ad8cc3eb2e55a6947d4c6fd0}{mii\_media}}.ifm\_cur;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00186}00186         \textcolor{keywordtype}{int} bmsr, bmcr, physup, gtsr;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00187}00187 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00188}00188         mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = IFM\_AVALID;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00189}00189         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} = IFM\_ETHER;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00190}00190 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00191}00191         bmsr = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_aa2f632686d6298a7c898b1c805586aab}{MII\_BMSR}}) | \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_aa2f632686d6298a7c898b1c805586aab}{MII\_BMSR}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00192}00192 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00193}00193         physup = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{nsgphyreg_8h_a7d42a0ad56e8291898f4e6e4e26eb98b}{NSGPHY\_MII\_PHYSUP}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00194}00194 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00195}00195         \textcolor{keywordflow}{if} (physup \& \mbox{\hyperlink{nsgphyreg_8h_a61ad68959307df89ceab27aeee17d625}{PHY\_SUP\_LINK}})}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00196}00196                 mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} |= IFM\_ACTIVE;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00197}00197 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00198}00198         bmcr = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_a9137acedc42ff140f244da7473cff29e}{MII\_BMCR}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00199}00199         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_a28b8dcb818bc18a079b39b5517c27e3a}{BMCR\_ISO}}) \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00200}00200                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00201}00201                 mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = 0;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00202}00202                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00203}00203         \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00204}00204 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00205}00205         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_aafd596a9125ddece08d5a9798dce42d6}{BMCR\_LOOP}})}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00206}00206                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_LOOP;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00207}00207 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00208}00208         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_a8d92e7dc8997005e43add732fba16a0d}{BMCR\_AUTOEN}}) \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00209}00209                 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00210}00210 \textcolor{comment}{                 * The media status bits are only valid if autonegotiation}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00211}00211 \textcolor{comment}{                 * has completed (or it's disabled).}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00212}00212 \textcolor{comment}{                 */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00213}00213                 \textcolor{keywordflow}{if} ((bmsr \& \mbox{\hyperlink{mii_8h_aa602b8728f35b021f27e9db3b06a7e55}{BMSR\_ACOMP}}) == 0) \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00214}00214                         \textcolor{comment}{/* Erg, still trying, I guess... */}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00215}00215                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00216}00216                         \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00217}00217                 \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00218}00218 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00219}00219                 \textcolor{keywordflow}{switch} (physup \& (\mbox{\hyperlink{nsgphyreg_8h_ae8e739a6b539305dc1f9fca5d32c50ba}{PHY\_SUP\_SPEED1}} | \mbox{\hyperlink{nsgphyreg_8h_a9ea840867650a78ae3deb7c34f0ce39b}{PHY\_SUP\_SPEED0}})) \{}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00220}00220                 \textcolor{keywordflow}{case} \mbox{\hyperlink{nsgphyreg_8h_ae8e739a6b539305dc1f9fca5d32c50ba}{PHY\_SUP\_SPEED1}}:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00221}00221                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_1000\_T;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00222}00222                         gtsr = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_a91e1cbedb89e3b64f611f568ab843b5a}{MII\_100T2SR}});}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00223}00223                         \textcolor{keywordflow}{if} (gtsr \& \mbox{\hyperlink{mii_8h_a048ba93f00872845d1f32f3807cfef63}{GTSR\_MS\_RES}})}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00224}00224                                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_ETH\_MASTER;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00225}00225                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00226}00226 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00227}00227                 \textcolor{keywordflow}{case} \mbox{\hyperlink{nsgphyreg_8h_a9ea840867650a78ae3deb7c34f0ce39b}{PHY\_SUP\_SPEED0}}:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00228}00228                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_100\_TX;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00229}00229                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00230}00230 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00231}00231                 \textcolor{keywordflow}{case} 0:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00232}00232                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_10\_T;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00233}00233                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00234}00234 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00235}00235                 \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00236}00236                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00237}00237                         mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = 0;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00238}00238                         \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00239}00239                 \}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00240}00240 }
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00241}00241                 \textcolor{keywordflow}{if} (physup \& \mbox{\hyperlink{nsgphyreg_8h_a867ab51f5eb5afb8827036da7811797e}{PHY\_SUP\_DUPLEX}})}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00242}00242                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |=}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00243}00243                             IFM\_FDX | \mbox{\hyperlink{mii__physubr_8c_a02a13013ccece7f7569fce9ab65424d3}{mii\_phy\_flowstatus}}(sc);}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00244}00244                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00245}00245                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_HDX;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00246}00246         \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00247}00247                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} = ife-\/>ifm\_media;}
\DoxyCodeLine{\Hypertarget{nsgphy_8c_source_l00248}00248 \}}

\end{DoxyCode}
