\hypertarget{miibus__if_8m_source}{}\doxysection{miibus\+\_\+if.\+m}
\label{miibus__if_8m_source}\index{dev/mii/miibus\_if.m@{dev/mii/miibus\_if.m}}
\mbox{\hyperlink{miibus__if_8m}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00001}00001 \textcolor{preprocessor}{\# \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00003}00003 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00005}\mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{00005}} INTERFACE \mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{miibus}};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00006}00006 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00007}00007 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00008}00008 \textcolor{preprocessor}{\# Read register from device on MII bus}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00009}00009 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00010}\mbox{\hyperlink{miibus__if_8m_afec4f200809cde7347f530eaf6d4e1a3}{00010}} METHOD \textcolor{keywordtype}{int} \mbox{\hyperlink{miibus__if_8m_afec4f200809cde7347f530eaf6d4e1a3}{readreg}} \{}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00011}00011         device\_t                dev;}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00012}\mbox{\hyperlink{miibus__if_8m_a5a9bb95881c089e261771c35775eeaf9}{00012}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{miibus__if_8m_a5a9bb95881c089e261771c35775eeaf9}{phy}};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00013}\mbox{\hyperlink{miibus__if_8m_aa391927e06832c3d8d2f4e89a25cdd81}{00013}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{miibus__if_8m_aa391927e06832c3d8d2f4e89a25cdd81}{reg}};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00014}00014 \};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00015}00015 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00016}00016 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00017}00017 \textcolor{preprocessor}{\# Write register to device on MII bus}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00018}00018 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00019}\mbox{\hyperlink{miibus__if_8m_a2aea631ca9ab29d75be5f30169c6b7c2}{00019}} METHOD \textcolor{keywordtype}{int} \mbox{\hyperlink{miibus__if_8m_a2aea631ca9ab29d75be5f30169c6b7c2}{writereg}} \{}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00020}00020         device\_t                dev;}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00021}00021         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{miibus__if_8m_a5a9bb95881c089e261771c35775eeaf9}{phy}};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00022}00022         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{miibus__if_8m_aa391927e06832c3d8d2f4e89a25cdd81}{reg}};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00023}\mbox{\hyperlink{miibus__if_8m_aa0ccb5ee6d882ee3605ff47745c6467b}{00023}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{miibus__if_8m_aa0ccb5ee6d882ee3605ff47745c6467b}{val}};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00024}00024 \};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00025}00025 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00026}00026 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00027}00027 \textcolor{preprocessor}{\# Notify bus about PHY status change.}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00028}00028 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00029}\mbox{\hyperlink{miibus__if_8m_a9d535742e2b4b53908307c14a9aed4b5}{00029}} METHOD \textcolor{keywordtype}{void} \mbox{\hyperlink{miibus__if_8m_a9d535742e2b4b53908307c14a9aed4b5}{statchg}} \{}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00030}00030         device\_t                dev;}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00031}00031 \};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00033}00033 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00034}00034 \textcolor{preprocessor}{\# Notify bus about PHY link change.}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00035}00035 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00036}\mbox{\hyperlink{miibus__if_8m_a83214c63f251f0c6695e1709c4e87b5e}{00036}} METHOD \textcolor{keywordtype}{void} \mbox{\hyperlink{miibus__if_8m_a83214c63f251f0c6695e1709c4e87b5e}{linkchg}} \{}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00037}00037         device\_t                dev;}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00038}00038 \};}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00040}00040 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00041}00041 \textcolor{preprocessor}{\# Notify bus that media has been set.}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00042}00042 \textcolor{preprocessor}{\#}}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00043}\mbox{\hyperlink{miibus__if_8m_a8bb04de14bd7e278e28181c08baa7870}{00043}} METHOD \textcolor{keywordtype}{void} \mbox{\hyperlink{miibus__if_8m_a8bb04de14bd7e278e28181c08baa7870}{mediainit}} \{}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00044}00044         device\_t                dev;}
\DoxyCodeLine{\Hypertarget{miibus__if_8m_source_l00045}00045 \};}

\end{DoxyCode}
