\hypertarget{bmtphy_8c_source}{}\doxysection{bmtphy.\+c}
\label{bmtphy_8c_source}\index{dev/mii/bmtphy.c@{dev/mii/bmtphy.c}}
\mbox{\hyperlink{bmtphy_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/NetBSD}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00007}00007 \textcolor{comment}{ * This code is derived from software contributed to The NetBSD Foundation}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00008}00008 \textcolor{comment}{ * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00009}00009 \textcolor{comment}{ * NASA Ames Research Center.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00010}00010 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00011}00011 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00012}00012 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00013}00013 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00014}00014 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00015}00015 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00016}00016 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00017}00017 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00018}00018 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00019}00019 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00020}00020 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00021}00021 \textcolor{comment}{ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00022}00022 \textcolor{comment}{ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00023}00023 \textcolor{comment}{ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00024}00024 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00025}00025 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00026}00026 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00027}00027 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00028}00028 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00029}00029 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00030}00030 \textcolor{comment}{ * POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00031}00031 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00033}00033 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00034}00034 \textcolor{comment}{ * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00035}00035 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00036}00036 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00037}00037 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00038}00038 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00039}00039 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00040}00040 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00041}00041 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00042}00042 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00043}00043 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00044}00044 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00045}00045 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00046}00046 \textcolor{comment}{ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00047}00047 \textcolor{comment}{ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00048}00048 \textcolor{comment}{ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00049}00049 \textcolor{comment}{ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00050}00050 \textcolor{comment}{ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00051}00051 \textcolor{comment}{ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00052}00052 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00053}00053 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00054}00054 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00055}00055 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00056}00056 \textcolor{comment}{ *      from: NetBSD: bmtphy.c,v 1.8 2002/07/03 06:25:50 simonb Exp}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00057}00057 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00058}00058 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00059}00059 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00060}00060 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00061}\mbox{\hyperlink{bmtphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00061}} \mbox{\hyperlink{bmtphy_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00062}00062 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00063}00063 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00064}00064 \textcolor{comment}{ * Driver for the Broadcom BCM5201/BCM5202 "{}Mini-\/Theta"{} PHYs.  This also}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00065}00065 \textcolor{comment}{ * drives the PHY on the 3Com 3c905C.  The 3c905C's PHY is described in}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00066}00066 \textcolor{comment}{ * the 3c905C data sheet.}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00067}00067 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00068}00068 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00069}00069 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00070}00070 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00071}00071 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00072}00072 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00073}00073 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00074}00074 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00075}00075 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00076}00076 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00077}00077 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00078}00078 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00079}00079 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{mii_8h}{dev/mii/mii.h}}>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00080}00080 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{miivar_8h}{dev/mii/miivar.h}}>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00081}00081 \textcolor{preprocessor}{\#include "{}miidevs.h"{}}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00083}00083 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{bmtphyreg_8h}{dev/mii/bmtphyreg.h}}>}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00084}00084 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00085}00085 \textcolor{preprocessor}{\#include "{}miibus\_if.h"{}}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00086}00086 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00087}00087 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{bmtphy_8c_a4b1f12b34810396e0416426d4808855b}{bmtphy\_probe}}(device\_t);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00088}00088 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{bmtphy_8c_ac7e37c8f088d57a9d5c0f9f104fad702}{bmtphy\_attach}}(device\_t);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00089}00089 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00090}\mbox{\hyperlink{bmtphy_8c_a7b022705f8bf4fcb6ef5580b3e1a17b5}{00090}} \textcolor{keyword}{static} device\_method\_t \mbox{\hyperlink{bmtphy_8c_a7b022705f8bf4fcb6ef5580b3e1a17b5}{bmtphy\_methods}}[] = \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00091}00091         \textcolor{comment}{/* Device interface */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00092}00092         DEVMETHOD(device\_probe,         \mbox{\hyperlink{bmtphy_8c_a4b1f12b34810396e0416426d4808855b}{bmtphy\_probe}}),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00093}00093         DEVMETHOD(device\_attach,        \mbox{\hyperlink{bmtphy_8c_ac7e37c8f088d57a9d5c0f9f104fad702}{bmtphy\_attach}}),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00094}00094         DEVMETHOD(device\_detach,        \mbox{\hyperlink{mii__physubr_8c_af08a34e3932c19824be61fc41ee1083f}{mii\_phy\_detach}}),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00095}00095         DEVMETHOD(device\_shutdown,      bus\_generic\_shutdown),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00096}00096         DEVMETHOD\_END}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00097}00097 \};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00098}00098 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00099}\mbox{\hyperlink{bmtphy_8c_a7ee08c59d244d5d610fbe435ec0fe5d7}{00099}} \textcolor{keyword}{static} devclass\_t       \mbox{\hyperlink{bmtphy_8c_a7ee08c59d244d5d610fbe435ec0fe5d7}{bmtphy\_devclass}};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00100}00100 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00101}\mbox{\hyperlink{bmtphy_8c_ae84f24e36592bbf10f8b7faa5a941ebe}{00101}} \textcolor{keyword}{static} driver\_t \mbox{\hyperlink{bmtphy_8c_ae84f24e36592bbf10f8b7faa5a941ebe}{bmtphy\_driver}} = \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00102}00102         \textcolor{stringliteral}{"{}bmtphy"{}},}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00103}00103         \mbox{\hyperlink{bmtphy_8c_a7b022705f8bf4fcb6ef5580b3e1a17b5}{bmtphy\_methods}},}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00104}00104         \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}})}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00105}00105 \};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00106}00106 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00107}\mbox{\hyperlink{bmtphy_8c_a0b2866dca0d4bd8f841bd8ce44eef6ea}{00107}} \mbox{\hyperlink{bmtphy_8c_a0b2866dca0d4bd8f841bd8ce44eef6ea}{DRIVER\_MODULE}}(bmtphy, \mbox{\hyperlink{miibus__if_8m_a4cbc1805319b363b9b338406a4b2a683}{miibus}}, \mbox{\hyperlink{bmtphy_8c_ae84f24e36592bbf10f8b7faa5a941ebe}{bmtphy\_driver}}, \mbox{\hyperlink{bmtphy_8c_a7ee08c59d244d5d610fbe435ec0fe5d7}{bmtphy\_devclass}}, 0, 0);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00108}00108 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00109}00109 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{bmtphy_8c_aff9d0ba407eb2879de7f8bd1801a317c}{bmtphy\_service}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *, \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *, \textcolor{keywordtype}{int});}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00110}00110 \textcolor{keyword}{static} \textcolor{keywordtype}{void}     \mbox{\hyperlink{bmtphy_8c_a30a0a075b2980bc9b5819ac70f3d12f4}{bmtphy\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00111}00111 \textcolor{keyword}{static} \textcolor{keywordtype}{void}     \mbox{\hyperlink{bmtphy_8c_a98020724e2c899010c30181f214bb658}{bmtphy\_reset}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00113}\mbox{\hyperlink{bmtphy_8c_aaab7061d129de3e15a9ad71f165b0ee6}{00113}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} \mbox{\hyperlink{bmtphy_8c_aaab7061d129de3e15a9ad71f165b0ee6}{bmtphys\_dp}}[] = \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00114}00114         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, BCM4401),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00115}00115         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, BCM5201),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00116}00116         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, BCM5214),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00117}00117         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, BCM5221),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00118}00118         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, BCM5222),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00119}00119         \mbox{\hyperlink{miivar_8h_a4cc657798701d214afbeff2b27c5083d}{MII\_PHY\_END}}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00120}00120 \};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00121}00121 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00122}\mbox{\hyperlink{bmtphy_8c_ad959ebe46d535e04a20e5def4531f613}{00122}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phydesc}{mii\_phydesc}} \mbox{\hyperlink{bmtphy_8c_ad959ebe46d535e04a20e5def4531f613}{bmtphys\_lp}}[] = \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00123}00123         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, 3C905B),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00124}00124         \mbox{\hyperlink{miivar_8h_ae87ddbe9ffefd4caca54be68c7b281fc}{MII\_PHY\_DESC}}(xxBROADCOM, 3C905C),}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00125}00125         \mbox{\hyperlink{miivar_8h_a4cc657798701d214afbeff2b27c5083d}{MII\_PHY\_END}}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00126}00126 \};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00127}00127 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00128}\mbox{\hyperlink{bmtphy_8c_a81ba912fe81adb096cd385fcef75d6f8}{00128}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phy__funcs}{mii\_phy\_funcs}} \mbox{\hyperlink{bmtphy_8c_a81ba912fe81adb096cd385fcef75d6f8}{bmtphy\_funcs}} = \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00129}00129         \mbox{\hyperlink{bmtphy_8c_aff9d0ba407eb2879de7f8bd1801a317c}{bmtphy\_service}},}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00130}00130         \mbox{\hyperlink{bmtphy_8c_a30a0a075b2980bc9b5819ac70f3d12f4}{bmtphy\_status}},}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00131}00131         \mbox{\hyperlink{bmtphy_8c_a98020724e2c899010c30181f214bb658}{bmtphy\_reset}} }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00132}00132 \};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00133}00133 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00134}00134 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00135}\mbox{\hyperlink{bmtphy_8c_a4b1f12b34810396e0416426d4808855b}{00135}} \mbox{\hyperlink{bmtphy_8c_a4b1f12b34810396e0416426d4808855b}{bmtphy\_probe}}(device\_t dev)}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00136}00136 \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00137}00137         \textcolor{keywordtype}{int}     rval;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00138}00138 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00139}00139         \textcolor{comment}{/* Let exphy(4) take precedence for these. */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00140}00140         rval = \mbox{\hyperlink{mii__physubr_8c_a6eae4dd21de85ca536b06467bf0a5f88}{mii\_phy\_dev\_probe}}(dev, \mbox{\hyperlink{bmtphy_8c_ad959ebe46d535e04a20e5def4531f613}{bmtphys\_lp}}, BUS\_PROBE\_LOW\_PRIORITY);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00141}00141         \textcolor{keywordflow}{if} (rval <= 0)}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00142}00142                 \textcolor{keywordflow}{return} (rval);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00143}00143 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00144}00144         \textcolor{keywordflow}{return} (\mbox{\hyperlink{mii__physubr_8c_a6eae4dd21de85ca536b06467bf0a5f88}{mii\_phy\_dev\_probe}}(dev, \mbox{\hyperlink{bmtphy_8c_aaab7061d129de3e15a9ad71f165b0ee6}{bmtphys\_dp}}, BUS\_PROBE\_DEFAULT));}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00145}00145 \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00146}00146 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00147}00147 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00148}\mbox{\hyperlink{bmtphy_8c_ac7e37c8f088d57a9d5c0f9f104fad702}{00148}} \mbox{\hyperlink{bmtphy_8c_ac7e37c8f088d57a9d5c0f9f104fad702}{bmtphy\_attach}}(device\_t dev)}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00149}00149 \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00150}00150 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00151}00151         \mbox{\hyperlink{mii__physubr_8c_a50acf7ba3fab73b23c13fe7da8c93f1d}{mii\_phy\_dev\_attach}}(dev, \mbox{\hyperlink{miivar_8h_a8d2d38c2ee2b3eb2ccd1f0a3da5fed03}{MIIF\_NOMANPAUSE}}, \&\mbox{\hyperlink{bmtphy_8c_a81ba912fe81adb096cd385fcef75d6f8}{bmtphy\_funcs}}, 1);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00152}00152         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00153}00153 \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00154}00154 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00155}00155 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00156}\mbox{\hyperlink{bmtphy_8c_aff9d0ba407eb2879de7f8bd1801a317c}{00156}} \mbox{\hyperlink{bmtphy_8c_aff9d0ba407eb2879de7f8bd1801a317c}{bmtphy\_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{bmtphy_8c_source_l00157}00157 \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00158}00158 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00159}00159         \textcolor{keywordflow}{switch} (cmd) \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00160}00160         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a5ee687df11441661206e4d2922ab5a52}{MII\_POLLSTAT}}:}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00161}00161                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00162}00162 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00163}00163         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a6c5cb4a5233e6b1e8a8542636e8ba4c8}{MII\_MEDIACHG}}:}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00164}00164                 \mbox{\hyperlink{mii__physubr_8c_afac2ea5f0d036a16125e01fc48a41457}{mii\_phy\_setmedia}}(sc);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00165}00165                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00166}00166 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00167}00167         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a7aba758235b2d688fc41842a167187e5}{MII\_TICK}}:}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00168}00168                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{mii__physubr_8c_aee0c2c158db70e66816d5c1269e83290}{mii\_phy\_tick}}(sc) == EJUSTRETURN)}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00169}00169                         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00170}00170                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00171}00171         \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00172}00172 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00173}00173         \textcolor{comment}{/* Update the media status. */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00174}00174         \mbox{\hyperlink{miivar_8h_a1c1cdb714bf40ba701256727dd6a73c5}{PHY\_STATUS}}(sc);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00175}00175 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00176}00176         \textcolor{comment}{/* Callback if something changed. */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00177}00177         \mbox{\hyperlink{mii__physubr_8c_ac5a93e41e086c93143a04d9d4548b251}{mii\_phy\_update}}(sc, cmd);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00178}00178         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00179}00179 \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00180}00180 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00181}00181 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00182}\mbox{\hyperlink{bmtphy_8c_a30a0a075b2980bc9b5819ac70f3d12f4}{00182}} \mbox{\hyperlink{bmtphy_8c_a30a0a075b2980bc9b5819ac70f3d12f4}{bmtphy\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00183}00183 \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00184}00184         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} *mii;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00185}00185         \textcolor{keyword}{struct }ifmedia\_entry *ife;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00186}00186         \textcolor{keywordtype}{int} bmsr, bmcr, aux\_csr;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00187}00187 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00188}00188         mii = sc-\/>\mbox{\hyperlink{structmii__softc_a12011aec864a92fb63b711b43e6b4356}{mii\_pdata}};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00189}00189         ife = mii-\/>\mbox{\hyperlink{structmii__data_ac0e7ceb0ad8cc3eb2e55a6947d4c6fd0}{mii\_media}}.ifm\_cur;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00190}00190 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00191}00191         mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = IFM\_AVALID;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00192}00192         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} = IFM\_ETHER;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00193}00193 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00194}00194         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{bmtphy_8c_source_l00195}00195 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00196}00196         \textcolor{keywordflow}{if} (bmsr \& \mbox{\hyperlink{mii_8h_aca42eb005e0fdbae038bd7c9f12a1035}{BMSR\_LINK}})}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00197}00197                 mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} |= IFM\_ACTIVE;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00198}00198 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00199}00199         bmcr = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_a9137acedc42ff140f244da7473cff29e}{MII\_BMCR}});}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00200}00200         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_a28b8dcb818bc18a079b39b5517c27e3a}{BMCR\_ISO}}) \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00201}00201                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00202}00202                 mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = 0;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00203}00203                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00204}00204         \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00205}00205 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00206}00206         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_aafd596a9125ddece08d5a9798dce42d6}{BMCR\_LOOP}})}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00207}00207                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_LOOP;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00208}00208 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00209}00209         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_a8d92e7dc8997005e43add732fba16a0d}{BMCR\_AUTOEN}}) \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00210}00210                 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00211}00211 \textcolor{comment}{                 * The media status bits are only valid if autonegotiation}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00212}00212 \textcolor{comment}{                 * has completed (or it's disabled).}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00213}00213 \textcolor{comment}{                 */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00214}00214                 \textcolor{keywordflow}{if} ((bmsr \& \mbox{\hyperlink{mii_8h_aa602b8728f35b021f27e9db3b06a7e55}{BMSR\_ACOMP}}) == 0) \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00215}00215                         \textcolor{comment}{/* Erg, still trying, I guess... */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00216}00216                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00217}00217                         \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00218}00218                 \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00219}00219 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00220}00220                 aux\_csr = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{bmtphyreg_8h_afbeb4c428ce3032d94b1c4db66a549d2}{MII\_BMTPHY\_AUX\_CSR}});}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00221}00221                 \textcolor{keywordflow}{if} (aux\_csr \& \mbox{\hyperlink{bmtphyreg_8h_a816e3c7fb643a8442bd749b486a2f598}{AUX\_CSR\_SPEED}})}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00222}00222                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_100\_TX;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00223}00223                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00224}00224                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_10\_T;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00225}00225                 \textcolor{keywordflow}{if} (aux\_csr \& \mbox{\hyperlink{bmtphyreg_8h_ae12884c6eb5ab30fb0879c5adc851c8b}{AUX\_CSR\_FDX}})}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00226}00226                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |=}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00227}00227                             IFM\_FDX | \mbox{\hyperlink{mii__physubr_8c_a02a13013ccece7f7569fce9ab65424d3}{mii\_phy\_flowstatus}}(sc);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00228}00228                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00229}00229                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_HDX;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00230}00230         \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00231}00231                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} = ife-\/>ifm\_media;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00232}00232 \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00233}00233 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00234}00234 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00235}\mbox{\hyperlink{bmtphy_8c_a98020724e2c899010c30181f214bb658}{00235}} \mbox{\hyperlink{bmtphy_8c_a98020724e2c899010c30181f214bb658}{bmtphy\_reset}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00236}00236 \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00237}00237         u\_int16\_t data;}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00238}00238 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00239}00239         \mbox{\hyperlink{mii__physubr_8c_ac21db38f2acb040663be6eac5468eaa2}{mii\_phy\_reset}}(sc);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00240}00240 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00241}00241         \textcolor{keywordflow}{if} (sc-\/>\mbox{\hyperlink{structmii__softc_a78f933ccf4c00044756002bdd88e4836}{mii\_mpd\_model}} == MII\_MODEL\_xxBROADCOM\_BCM5221) \{}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00242}00242                 \textcolor{comment}{/* Enable shadow register mode. */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00243}00243                 data = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, 0x1f);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00244}00244                 \mbox{\hyperlink{miivar_8h_af302bd91f8177e3ca317b822f00680b5}{PHY\_WRITE}}(sc, 0x1f, data | 0x0080);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00245}00245 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00246}00246                 \textcolor{comment}{/* Enable APD (Auto PowerDetect). */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00247}00247                 data = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{bmtphyreg_8h_a0cdc6e54c0e25421731eaad6957cd18e}{MII\_BMTPHY\_AUX2}});}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00248}00248                 \mbox{\hyperlink{miivar_8h_af302bd91f8177e3ca317b822f00680b5}{PHY\_WRITE}}(sc, \mbox{\hyperlink{bmtphyreg_8h_a0cdc6e54c0e25421731eaad6957cd18e}{MII\_BMTPHY\_AUX2}}, data | 0x0020);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00249}00249 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00250}00250                 \textcolor{comment}{/* Enable clocks across APD for Auto-\/MDIX functionality. */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00251}00251                 data = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{bmtphyreg_8h_a9c78952f609bc76c0f0db1111c5be347}{MII\_BMTPHY\_INTR}});}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00252}00252                 \mbox{\hyperlink{miivar_8h_af302bd91f8177e3ca317b822f00680b5}{PHY\_WRITE}}(sc, \mbox{\hyperlink{bmtphyreg_8h_a9c78952f609bc76c0f0db1111c5be347}{MII\_BMTPHY\_INTR}}, data | 0x0004);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00253}00253 }
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00254}00254                 \textcolor{comment}{/* Disable shadow register mode. */}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00255}00255                 data = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, 0x1f);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00256}00256                 \mbox{\hyperlink{miivar_8h_af302bd91f8177e3ca317b822f00680b5}{PHY\_WRITE}}(sc, 0x1f, data \& \string~0x0080);}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00257}00257         \}}
\DoxyCodeLine{\Hypertarget{bmtphy_8c_source_l00258}00258 \}}

\end{DoxyCode}
