\hypertarget{ukphy_8c}{}\doxysection{dev/mii/ukphy.c File Reference}
\label{ukphy_8c}\index{dev/mii/ukphy.c@{dev/mii/ukphy.c}}
{\ttfamily \#include $<$sys/cdefs.\+h$>$}\newline
{\ttfamily \#include $<$sys/param.\+h$>$}\newline
{\ttfamily \#include $<$sys/systm.\+h$>$}\newline
{\ttfamily \#include $<$sys/kernel.\+h$>$}\newline
{\ttfamily \#include $<$sys/socket.\+h$>$}\newline
{\ttfamily \#include $<$sys/errno.\+h$>$}\newline
{\ttfamily \#include $<$sys/module.\+h$>$}\newline
{\ttfamily \#include $<$sys/bus.\+h$>$}\newline
{\ttfamily \#include $<$net/if.\+h$>$}\newline
{\ttfamily \#include $<$net/if\+\_\+media.\+h$>$}\newline
{\ttfamily \#include $<$dev/mii/mii.\+h$>$}\newline
{\ttfamily \#include $<$dev/mii/miivar.\+h$>$}\newline
{\ttfamily \#include \char`\"{}miibus\+\_\+if.\+h\char`\"{}}\newline
Include dependency graph for ukphy.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d4/dea/ukphy_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{ukphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
static int \mbox{\hyperlink{ukphy_8c_abf370f2cfce125e12e977fec5db3ea3e}{ukphy\+\_\+probe}} (device\+\_\+t)
\item 
static int \mbox{\hyperlink{ukphy_8c_a716a520db550d4fc93de951c561fcaf7}{ukphy\+\_\+attach}} (device\+\_\+t)
\item 
\mbox{\hyperlink{ukphy_8c_ad4321b954f4389283cda79aeb74dce84}{DRIVER\+\_\+\+MODULE}} (ukphy, \mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{miibus}}, \mbox{\hyperlink{ukphy_8c_a6357cec9dcd538aaa114ff56a95f79af}{ukphy\+\_\+driver}}, \mbox{\hyperlink{ukphy_8c_a9e318a94f4304ba51166c5509f7f63ce}{ukphy\+\_\+devclass}}, 0, 0)
\item 
static int \mbox{\hyperlink{ukphy_8c_a2b9be6164b2e9ffb37c0061e76d9412e}{ukphy\+\_\+service}} (struct \mbox{\hyperlink{structmii__softc}{mii\+\_\+softc}} $\ast$, struct \mbox{\hyperlink{structmii__data}{mii\+\_\+data}} $\ast$, int)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static device\+\_\+method\+\_\+t \mbox{\hyperlink{ukphy_8c_a30bc80d4c2227f3736a93c9d8ba57ac4}{ukphy\+\_\+methods}} \mbox{[}$\,$\mbox{]}
\item 
static devclass\+\_\+t \mbox{\hyperlink{ukphy_8c_a9e318a94f4304ba51166c5509f7f63ce}{ukphy\+\_\+devclass}}
\item 
static driver\+\_\+t \mbox{\hyperlink{ukphy_8c_a6357cec9dcd538aaa114ff56a95f79af}{ukphy\+\_\+driver}}
\item 
static const struct \mbox{\hyperlink{structmii__phy__funcs}{mii\+\_\+phy\+\_\+funcs}} \mbox{\hyperlink{ukphy_8c_a60c47ac94ee4808bd0454e76eb9bae48}{ukphy\+\_\+funcs}}
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{ukphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}\label{ukphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}} 
\index{ukphy.c@{ukphy.c}!\_\_FBSDID@{\_\_FBSDID}}
\index{\_\_FBSDID@{\_\_FBSDID}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{\_\_FBSDID()}{\_\_FBSDID()}}
{\footnotesize\ttfamily \+\_\+\+\_\+\+FBSDID (\begin{DoxyParamCaption}\item[{\char`\"{}\$Free\+BSD\$\char`\"{}}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{ukphy_8c_ad4321b954f4389283cda79aeb74dce84}\label{ukphy_8c_ad4321b954f4389283cda79aeb74dce84}} 
\index{ukphy.c@{ukphy.c}!DRIVER\_MODULE@{DRIVER\_MODULE}}
\index{DRIVER\_MODULE@{DRIVER\_MODULE}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{DRIVER\_MODULE()}{DRIVER\_MODULE()}}
{\footnotesize\ttfamily DRIVER\+\_\+\+MODULE (\begin{DoxyParamCaption}\item[{ukphy}]{,  }\item[{\mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{miibus}}}]{,  }\item[{\mbox{\hyperlink{ukphy_8c_a6357cec9dcd538aaa114ff56a95f79af}{ukphy\+\_\+driver}}}]{,  }\item[{\mbox{\hyperlink{ukphy_8c_a9e318a94f4304ba51166c5509f7f63ce}{ukphy\+\_\+devclass}}}]{,  }\item[{0}]{,  }\item[{0}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{ukphy_8c_a716a520db550d4fc93de951c561fcaf7}\label{ukphy_8c_a716a520db550d4fc93de951c561fcaf7}} 
\index{ukphy.c@{ukphy.c}!ukphy\_attach@{ukphy\_attach}}
\index{ukphy\_attach@{ukphy\_attach}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_attach()}{ukphy\_attach()}}
{\footnotesize\ttfamily static int ukphy\+\_\+attach (\begin{DoxyParamCaption}\item[{device\+\_\+t}]{dev }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ukphy_8c_source_l00124}{124}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.



References \mbox{\hyperlink{mii__physubr_8c_source_l00585}{mii\+\_\+phy\+\_\+dev\+\_\+attach()}}, \mbox{\hyperlink{mii__physubr_8c_source_l00123}{mii\+\_\+phy\+\_\+setmedia()}}, \mbox{\hyperlink{miivar_8h_source_l00148}{MIIF\+\_\+\+NOMANPAUSE}}, and \mbox{\hyperlink{ukphy_8c_source_l00106}{ukphy\+\_\+funcs}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{da/dd9/ukphy_8c_a716a520db550d4fc93de951c561fcaf7_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ukphy_8c_abf370f2cfce125e12e977fec5db3ea3e}\label{ukphy_8c_abf370f2cfce125e12e977fec5db3ea3e}} 
\index{ukphy.c@{ukphy.c}!ukphy\_probe@{ukphy\_probe}}
\index{ukphy\_probe@{ukphy\_probe}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_probe()}{ukphy\_probe()}}
{\footnotesize\ttfamily static int ukphy\+\_\+probe (\begin{DoxyParamCaption}\item[{device\+\_\+t}]{dev }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ukphy_8c_source_l00113}{113}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.

\mbox{\Hypertarget{ukphy_8c_a2b9be6164b2e9ffb37c0061e76d9412e}\label{ukphy_8c_a2b9be6164b2e9ffb37c0061e76d9412e}} 
\index{ukphy.c@{ukphy.c}!ukphy\_service@{ukphy\_service}}
\index{ukphy\_service@{ukphy\_service}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_service()}{ukphy\_service()}}
{\footnotesize\ttfamily static int ukphy\+\_\+service (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structmii__softc}{mii\+\_\+softc}} $\ast$}]{sc,  }\item[{struct \mbox{\hyperlink{structmii__data}{mii\+\_\+data}} $\ast$}]{mii,  }\item[{int}]{cmd }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ukphy_8c_source_l00137}{137}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.



References \mbox{\hyperlink{miivar_8h_source_l00095}{MII\+\_\+\+MEDIACHG}}, \mbox{\hyperlink{mii__physubr_8c_source_l00123}{mii\+\_\+phy\+\_\+setmedia()}}, \mbox{\hyperlink{mii__physubr_8c_source_l00291}{mii\+\_\+phy\+\_\+tick()}}, \mbox{\hyperlink{mii__physubr_8c_source_l00364}{mii\+\_\+phy\+\_\+update()}}, \mbox{\hyperlink{miivar_8h_source_l00096}{MII\+\_\+\+POLLSTAT}}, \mbox{\hyperlink{miivar_8h_source_l00094}{MII\+\_\+\+TICK}}, and \mbox{\hyperlink{miivar_8h_source_l00248}{PHY\+\_\+\+STATUS}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{da/dd9/ukphy_8c_a2b9be6164b2e9ffb37c0061e76d9412e_cgraph}
\end{center}
\end{figure}


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{ukphy_8c_a9e318a94f4304ba51166c5509f7f63ce}\label{ukphy_8c_a9e318a94f4304ba51166c5509f7f63ce}} 
\index{ukphy.c@{ukphy.c}!ukphy\_devclass@{ukphy\_devclass}}
\index{ukphy\_devclass@{ukphy\_devclass}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_devclass}{ukphy\_devclass}}
{\footnotesize\ttfamily devclass\+\_\+t ukphy\+\_\+devclass\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ukphy_8c_source_l00094}{94}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.

\mbox{\Hypertarget{ukphy_8c_a6357cec9dcd538aaa114ff56a95f79af}\label{ukphy_8c_a6357cec9dcd538aaa114ff56a95f79af}} 
\index{ukphy.c@{ukphy.c}!ukphy\_driver@{ukphy\_driver}}
\index{ukphy\_driver@{ukphy\_driver}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_driver}{ukphy\_driver}}
{\footnotesize\ttfamily driver\+\_\+t ukphy\+\_\+driver\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        \textcolor{stringliteral}{"{}ukphy"{}},}
\DoxyCodeLine{        \mbox{\hyperlink{ukphy_8c_a30bc80d4c2227f3736a93c9d8ba57ac4}{ukphy\_methods}},}
\DoxyCodeLine{        \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}})}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{ukphy_8c_source_l00096}{96}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.

\mbox{\Hypertarget{ukphy_8c_a60c47ac94ee4808bd0454e76eb9bae48}\label{ukphy_8c_a60c47ac94ee4808bd0454e76eb9bae48}} 
\index{ukphy.c@{ukphy.c}!ukphy\_funcs@{ukphy\_funcs}}
\index{ukphy\_funcs@{ukphy\_funcs}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_funcs}{ukphy\_funcs}}
{\footnotesize\ttfamily const struct \mbox{\hyperlink{structmii__phy__funcs}{mii\+\_\+phy\+\_\+funcs}} ukphy\+\_\+funcs\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        \mbox{\hyperlink{ukphy_8c_a2b9be6164b2e9ffb37c0061e76d9412e}{ukphy\_service}},}
\DoxyCodeLine{        \mbox{\hyperlink{miivar_8h_af0fe8ba84ff2d8de4b480836f1cd7bbc}{ukphy\_status}},}
\DoxyCodeLine{        \mbox{\hyperlink{mii__physubr_8c_ac21db38f2acb040663be6eac5468eaa2}{mii\_phy\_reset}}}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{ukphy_8c_source_l00106}{106}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.



Referenced by \mbox{\hyperlink{ukphy_8c_source_l00124}{ukphy\+\_\+attach()}}.

\mbox{\Hypertarget{ukphy_8c_a30bc80d4c2227f3736a93c9d8ba57ac4}\label{ukphy_8c_a30bc80d4c2227f3736a93c9d8ba57ac4}} 
\index{ukphy.c@{ukphy.c}!ukphy\_methods@{ukphy\_methods}}
\index{ukphy\_methods@{ukphy\_methods}!ukphy.c@{ukphy.c}}
\doxysubsubsection{\texorpdfstring{ukphy\_methods}{ukphy\_methods}}
{\footnotesize\ttfamily device\+\_\+method\+\_\+t ukphy\+\_\+methods\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        }
\DoxyCodeLine{        DEVMETHOD(device\_probe,         \mbox{\hyperlink{ukphy_8c_abf370f2cfce125e12e977fec5db3ea3e}{ukphy\_probe}}),}
\DoxyCodeLine{        DEVMETHOD(device\_attach,        \mbox{\hyperlink{ukphy_8c_a716a520db550d4fc93de951c561fcaf7}{ukphy\_attach}}),}
\DoxyCodeLine{        DEVMETHOD(device\_detach,        \mbox{\hyperlink{mii__physubr_8c_af08a34e3932c19824be61fc41ee1083f}{mii\_phy\_detach}}),}
\DoxyCodeLine{        DEVMETHOD(device\_shutdown,      bus\_generic\_shutdown),}
\DoxyCodeLine{        DEVMETHOD\_END}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{ukphy_8c_source_l00085}{85}} of file \mbox{\hyperlink{ukphy_8c_source}{ukphy.\+c}}.

