\hypertarget{gentbi_8c}{}\doxysection{dev/mii/gentbi.c File Reference}
\label{gentbi_8c}\index{dev/mii/gentbi.c@{dev/mii/gentbi.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/module.\+h$>$}\newline
{\ttfamily \#include $<$sys/socket.\+h$>$}\newline
{\ttfamily \#include $<$sys/errno.\+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`\"{}miidevs.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}miibus\+\_\+if.\+h\char`\"{}}\newline
Include dependency graph for gentbi.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{db/d7d/gentbi_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{gentbi_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
static int \mbox{\hyperlink{gentbi_8c_af600c68a2a2de2b79d0b6acd7454fcb1}{gentbi\+\_\+probe}} (device\+\_\+t)
\item 
static int \mbox{\hyperlink{gentbi_8c_aa9dcfd38e385d73d341c379346cfac7d}{gentbi\+\_\+attach}} (device\+\_\+t)
\item 
\mbox{\hyperlink{gentbi_8c_a7a9e8151f0f86b8c8163b04e221b6512}{DRIVER\+\_\+\+MODULE}} (gentbi, \mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{miibus}}, \mbox{\hyperlink{gentbi_8c_a17ab48dd487afc23350a613f12d64b52}{gentbi\+\_\+driver}}, \mbox{\hyperlink{gentbi_8c_a072effafc469ba1df4a42a70cd0964bd}{gentbi\+\_\+devclass}}, 0, 0)
\item 
static int \mbox{\hyperlink{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}{gentbi\+\_\+service}} (struct \mbox{\hyperlink{structmii__softc}{mii\+\_\+softc}} $\ast$, struct \mbox{\hyperlink{structmii__data}{mii\+\_\+data}} $\ast$, int)
\item 
static void \mbox{\hyperlink{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}{gentbi\+\_\+status}} (struct \mbox{\hyperlink{structmii__softc}{mii\+\_\+softc}} $\ast$)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static device\+\_\+method\+\_\+t \mbox{\hyperlink{gentbi_8c_a151b2b76a9ea1ca1d0e01efc1c2d15dd}{gentbi\+\_\+methods}} \mbox{[}$\,$\mbox{]}
\item 
static devclass\+\_\+t \mbox{\hyperlink{gentbi_8c_a072effafc469ba1df4a42a70cd0964bd}{gentbi\+\_\+devclass}}
\item 
static driver\+\_\+t \mbox{\hyperlink{gentbi_8c_a17ab48dd487afc23350a613f12d64b52}{gentbi\+\_\+driver}}
\item 
static const struct \mbox{\hyperlink{structmii__phy__funcs}{mii\+\_\+phy\+\_\+funcs}} \mbox{\hyperlink{gentbi_8c_ad436c9aaa9a7e0df1662a3b6cddb2912}{gentbi\+\_\+funcs}}
\end{DoxyCompactItemize}


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

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

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



Definition at line \mbox{\hyperlink{gentbi_8c_source_l00160}{160}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.



References \mbox{\hyperlink{mii_8h_source_l00078}{BMSR\+\_\+\+EXTSTAT}}, \mbox{\hyperlink{gentbi_8c_source_l00116}{gentbi\+\_\+funcs}}, \mbox{\hyperlink{mii_8h_source_l00070}{MII\+\_\+\+BMSR}}, \mbox{\hyperlink{miivar_8h_source_l00122}{mii\+\_\+softc\+::mii\+\_\+capabilities}}, \mbox{\hyperlink{miivar_8h_source_l00111}{mii\+\_\+softc\+::mii\+\_\+capmask}}, \mbox{\hyperlink{miivar_8h_source_l00104}{mii\+\_\+softc\+::mii\+\_\+dev}}, \mbox{\hyperlink{miivar_8h_source_l00123}{mii\+\_\+softc\+::mii\+\_\+extcapabilities}}, \mbox{\hyperlink{mii_8h_source_l00232}{MII\+\_\+\+EXTSR}}, \mbox{\hyperlink{mii__physubr_8c_source_l00385}{mii\+\_\+phy\+\_\+add\+\_\+media()}}, \mbox{\hyperlink{mii__physubr_8c_source_l00585}{mii\+\_\+phy\+\_\+dev\+\_\+attach()}}, \mbox{\hyperlink{miivar_8h_source_l00148}{MIIF\+\_\+\+NOMANPAUSE}}, \mbox{\hyperlink{miivar_8h_source_l00239}{PHY\+\_\+\+READ}}, and \mbox{\hyperlink{miivar_8h_source_l00251}{PHY\+\_\+\+RESET}}.

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



Definition at line \mbox{\hyperlink{gentbi_8c_source_l00123}{123}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.



References \mbox{\hyperlink{mii_8h_source_l00078}{BMSR\+\_\+\+EXTSTAT}}, \mbox{\hyperlink{mii_8h_source_l00095}{BMSR\+\_\+\+MEDIAMASK}}, \mbox{\hyperlink{mii_8h_source_l00235}{EXTSR\+\_\+1000\+TFDX}}, \mbox{\hyperlink{mii_8h_source_l00236}{EXTSR\+\_\+1000\+THDX}}, \mbox{\hyperlink{mii_8h_source_l00233}{EXTSR\+\_\+1000\+XFDX}}, \mbox{\hyperlink{mii_8h_source_l00234}{EXTSR\+\_\+1000\+XHDX}}, \mbox{\hyperlink{mii_8h_source_l00070}{MII\+\_\+\+BMSR}}, \mbox{\hyperlink{mii_8h_source_l00232}{MII\+\_\+\+EXTSR}}, and \mbox{\hyperlink{miivar_8h_source_l00212}{mii\+\_\+attach\+\_\+args\+::mii\+\_\+phyno}}.

\mbox{\Hypertarget{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}\label{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}} 
\index{gentbi.c@{gentbi.c}!gentbi\_service@{gentbi\_service}}
\index{gentbi\_service@{gentbi\_service}!gentbi.c@{gentbi.c}}
\doxysubsubsection{\texorpdfstring{gentbi\_service()}{gentbi\_service()}}
{\footnotesize\ttfamily static int gentbi\+\_\+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{gentbi_8c_source_l00188}{188}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+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]{d3/d99/gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}\label{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}} 
\index{gentbi.c@{gentbi.c}!gentbi\_status@{gentbi\_status}}
\index{gentbi\_status@{gentbi\_status}!gentbi.c@{gentbi.c}}
\doxysubsubsection{\texorpdfstring{gentbi\_status()}{gentbi\_status()}}
{\footnotesize\ttfamily static void gentbi\+\_\+status (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structmii__softc}{mii\+\_\+softc}} $\ast$}]{sc }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{gentbi_8c_source_l00214}{214}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.



References \mbox{\hyperlink{mii_8h_source_l00155}{ANLPAR\+\_\+\+X\+\_\+\+FD}}, \mbox{\hyperlink{mii_8h_source_l00056}{BMCR\+\_\+\+AUTOEN}}, \mbox{\hyperlink{mii_8h_source_l00058}{BMCR\+\_\+\+ISO}}, \mbox{\hyperlink{mii_8h_source_l00054}{BMCR\+\_\+\+LOOP}}, \mbox{\hyperlink{mii_8h_source_l00080}{BMSR\+\_\+\+ACOMP}}, \mbox{\hyperlink{mii_8h_source_l00083}{BMSR\+\_\+\+LINK}}, \mbox{\hyperlink{mii_8h_source_l00233}{EXTSR\+\_\+1000\+XFDX}}, \mbox{\hyperlink{mii_8h_source_l00137}{MII\+\_\+\+ANLPAR}}, \mbox{\hyperlink{mii_8h_source_l00052}{MII\+\_\+\+BMCR}}, \mbox{\hyperlink{mii_8h_source_l00070}{MII\+\_\+\+BMSR}}, \mbox{\hyperlink{miivar_8h_source_l00123}{mii\+\_\+softc\+::mii\+\_\+extcapabilities}}, \mbox{\hyperlink{miivar_8h_source_l00063}{mii\+\_\+data\+::mii\+\_\+media}}, \mbox{\hyperlink{miivar_8h_source_l00078}{mii\+\_\+data\+::mii\+\_\+media\+\_\+active}}, \mbox{\hyperlink{miivar_8h_source_l00077}{mii\+\_\+data\+::mii\+\_\+media\+\_\+status}}, \mbox{\hyperlink{miivar_8h_source_l00119}{mii\+\_\+softc\+::mii\+\_\+pdata}}, \mbox{\hyperlink{mii__physubr_8c_source_l00668}{mii\+\_\+phy\+\_\+flowstatus()}}, and \mbox{\hyperlink{miivar_8h_source_l00239}{PHY\+\_\+\+READ}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=310pt]{d3/d99/gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930_cgraph}
\end{center}
\end{figure}


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



Definition at line \mbox{\hyperlink{gentbi_8c_source_l00103}{103}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.

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

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

\end{DoxyCode}


Definition at line \mbox{\hyperlink{gentbi_8c_source_l00105}{105}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.

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

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        \mbox{\hyperlink{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}{gentbi\_service}},}
\DoxyCodeLine{        \mbox{\hyperlink{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}{gentbi\_status}},}
\DoxyCodeLine{        \mbox{\hyperlink{mii__physubr_8c_ac21db38f2acb040663be6eac5468eaa2}{mii\_phy\_reset}}}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{gentbi_8c_source_l00116}{116}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.



Referenced by \mbox{\hyperlink{gentbi_8c_source_l00160}{gentbi\+\_\+attach()}}.

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

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        }
\DoxyCodeLine{        DEVMETHOD(device\_probe,         \mbox{\hyperlink{gentbi_8c_af600c68a2a2de2b79d0b6acd7454fcb1}{gentbi\_probe}}),}
\DoxyCodeLine{        DEVMETHOD(device\_attach,        \mbox{\hyperlink{gentbi_8c_aa9dcfd38e385d73d341c379346cfac7d}{gentbi\_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{gentbi_8c_source_l00094}{94}} of file \mbox{\hyperlink{gentbi_8c_source}{gentbi.\+c}}.

