\hypertarget{gentbi_8c_source}{}\doxysection{gentbi.\+c}
\label{gentbi_8c_source}\index{dev/mii/gentbi.c@{dev/mii/gentbi.c}}
\mbox{\hyperlink{gentbi_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00001}00001 \textcolor{comment}{/*      \$NetBSD: gentbi.c,v 1.15 2006/03/29 07:05:24 thorpej Exp \$      */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00003}00003 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00004}00004 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/NetBSD AND BSD-\/2-\/Clause}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00007}00007 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00008}00008 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00009}00009 \textcolor{comment}{ * This code is derived from software contributed to The NetBSD Foundation}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00010}00010 \textcolor{comment}{ * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00011}00011 \textcolor{comment}{ * NASA Ames Research Center.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00012}00012 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00013}00013 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00014}00014 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00015}00015 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00016}00016 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00017}00017 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00018}00018 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00019}00019 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00020}00020 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00021}00021 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00022}00022 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00023}00023 \textcolor{comment}{ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00024}00024 \textcolor{comment}{ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00025}00025 \textcolor{comment}{ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00026}00026 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00027}00027 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00028}00028 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00029}00029 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00030}00030 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00031}00031 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00032}00032 \textcolor{comment}{ * POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00033}00033 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00034}00034 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00035}00035 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00036}00036 \textcolor{comment}{ * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00037}00037 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00038}00038 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00039}00039 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00040}00040 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00041}00041 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00042}00042 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00043}00043 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00044}00044 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00045}00045 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00046}00046 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00047}00047 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00048}00048 \textcolor{comment}{ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00049}00049 \textcolor{comment}{ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00050}00050 \textcolor{comment}{ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00051}00051 \textcolor{comment}{ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00052}00052 \textcolor{comment}{ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00053}00053 \textcolor{comment}{ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00054}00054 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00055}00055 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00056}00056 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00057}00057 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00059}00059 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00060}00060 \textcolor{comment}{ * Driver for generic ten-\/bit (1000BASE-\/SX) interfaces, built into}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00061}00061 \textcolor{comment}{ * many Gigabit Ethernet chips.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00062}00062 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00063}00063 \textcolor{comment}{ * All we have to do here is correctly report speed and duplex.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00064}00064 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00065}00065 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00066}00066 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00067}\mbox{\hyperlink{gentbi_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00067}} \mbox{\hyperlink{gentbi_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00068}00068 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00069}00069 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00070}00070 \textcolor{comment}{ * Driver for generic unknown ten-\/bit interfaces(1000BASE-\/\{LX,SX\}}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00071}00071 \textcolor{comment}{ * fiber interfaces).}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00072}00072 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00073}00073 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00074}00074 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00075}00075 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00076}00076 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00077}00077 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00078}00078 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00079}00079 \textcolor{preprocessor}{\#include <sys/errno.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00080}00080 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00081}00081 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00082}00082 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00083}00083 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00084}00084 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00085}00085 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{mii_8h}{dev/mii/mii.h}}>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00086}00086 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{miivar_8h}{dev/mii/miivar.h}}>}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00087}00087 \textcolor{preprocessor}{\#include "{}miidevs.h"{}}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00088}00088 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00089}00089 \textcolor{preprocessor}{\#include "{}miibus\_if.h"{}}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00090}00090 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00091}00091 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{gentbi_8c_af600c68a2a2de2b79d0b6acd7454fcb1}{gentbi\_probe}}(device\_t);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00092}00092 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{gentbi_8c_aa9dcfd38e385d73d341c379346cfac7d}{gentbi\_attach}}(device\_t);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00093}00093 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00094}\mbox{\hyperlink{gentbi_8c_a151b2b76a9ea1ca1d0e01efc1c2d15dd}{00094}} \textcolor{keyword}{static} device\_method\_t \mbox{\hyperlink{gentbi_8c_a151b2b76a9ea1ca1d0e01efc1c2d15dd}{gentbi\_methods}}[] = \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00095}00095         \textcolor{comment}{/* device interface */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00096}00096         DEVMETHOD(device\_probe,         \mbox{\hyperlink{gentbi_8c_af600c68a2a2de2b79d0b6acd7454fcb1}{gentbi\_probe}}),}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00097}00097         DEVMETHOD(device\_attach,        \mbox{\hyperlink{gentbi_8c_aa9dcfd38e385d73d341c379346cfac7d}{gentbi\_attach}}),}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00098}00098         DEVMETHOD(device\_detach,        \mbox{\hyperlink{mii__physubr_8c_af08a34e3932c19824be61fc41ee1083f}{mii\_phy\_detach}}),}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00099}00099         DEVMETHOD(device\_shutdown,      bus\_generic\_shutdown),}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00100}00100         DEVMETHOD\_END}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00101}00101 \};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00102}00102 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00103}\mbox{\hyperlink{gentbi_8c_a072effafc469ba1df4a42a70cd0964bd}{00103}} \textcolor{keyword}{static} devclass\_t \mbox{\hyperlink{gentbi_8c_a072effafc469ba1df4a42a70cd0964bd}{gentbi\_devclass}};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00104}00104 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00105}\mbox{\hyperlink{gentbi_8c_a17ab48dd487afc23350a613f12d64b52}{00105}} \textcolor{keyword}{static} driver\_t \mbox{\hyperlink{gentbi_8c_a17ab48dd487afc23350a613f12d64b52}{gentbi\_driver}} = \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00106}00106         \textcolor{stringliteral}{"{}gentbi"{}},}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00107}00107         \mbox{\hyperlink{gentbi_8c_a151b2b76a9ea1ca1d0e01efc1c2d15dd}{gentbi\_methods}},}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00108}00108         \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}})}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00109}00109 \};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00110}00110 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00111}\mbox{\hyperlink{gentbi_8c_a7a9e8151f0f86b8c8163b04e221b6512}{00111}} \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);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00113}00113 \textcolor{keyword}{static} \textcolor{keywordtype}{int}      \mbox{\hyperlink{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}{gentbi\_service}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *, \textcolor{keyword}{struct} \mbox{\hyperlink{structmii__data}{mii\_data}} *, \textcolor{keywordtype}{int});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00114}00114 \textcolor{keyword}{static} \textcolor{keywordtype}{void}     \mbox{\hyperlink{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}{gentbi\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00115}00115 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00116}\mbox{\hyperlink{gentbi_8c_ad436c9aaa9a7e0df1662a3b6cddb2912}{00116}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__phy__funcs}{mii\_phy\_funcs}} \mbox{\hyperlink{gentbi_8c_ad436c9aaa9a7e0df1662a3b6cddb2912}{gentbi\_funcs}} = \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00117}00117         \mbox{\hyperlink{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}{gentbi\_service}},}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00118}00118         \mbox{\hyperlink{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}{gentbi\_status}},}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00119}00119         \mbox{\hyperlink{mii__physubr_8c_ac21db38f2acb040663be6eac5468eaa2}{mii\_phy\_reset}}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00120}00120 \};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00121}00121 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00122}00122 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00123}\mbox{\hyperlink{gentbi_8c_af600c68a2a2de2b79d0b6acd7454fcb1}{00123}} \mbox{\hyperlink{gentbi_8c_af600c68a2a2de2b79d0b6acd7454fcb1}{gentbi\_probe}}(device\_t dev)}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00124}00124 \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00125}00125         device\_t parent;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00126}00126         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__attach__args}{mii\_attach\_args}} *ma;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00127}00127         \textcolor{keywordtype}{int} bmsr, extsr;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00128}00128 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00129}00129         parent = device\_get\_parent(dev);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00130}00130         ma = device\_get\_ivars(dev);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00131}00131 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00132}00132         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00133}00133 \textcolor{comment}{         * We match as a generic TBI if:}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00134}00134 \textcolor{comment}{         *}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00135}00135 \textcolor{comment}{         *      -\/ There is no media in the BMSR.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00136}00136 \textcolor{comment}{         *      -\/ EXTSR has only 1000X.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00137}00137 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00138}00138         bmsr = MIIBUS\_READREG(parent, ma-\/>\mbox{\hyperlink{structmii__attach__args_a57e558179b97de1ab63686e7b1cf6ee0}{mii\_phyno}}, \mbox{\hyperlink{mii_8h_aa2f632686d6298a7c898b1c805586aab}{MII\_BMSR}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00139}00139         \textcolor{keywordflow}{if} ((bmsr \& \mbox{\hyperlink{mii_8h_ab4f6d84420322e12fccdd4647cdcce3e}{BMSR\_EXTSTAT}}) == 0 || (bmsr \& \mbox{\hyperlink{mii_8h_a58bd802e99296717ac7cced521d43010}{BMSR\_MEDIAMASK}}) != 0)}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00140}00140                 \textcolor{keywordflow}{return} (ENXIO);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00141}00141 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00142}00142         extsr = MIIBUS\_READREG(parent, ma-\/>\mbox{\hyperlink{structmii__attach__args_a57e558179b97de1ab63686e7b1cf6ee0}{mii\_phyno}}, \mbox{\hyperlink{mii_8h_a615063b2b7e3d314ccf5a8adeb86ffb7}{MII\_EXTSR}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00143}00143         \textcolor{keywordflow}{if} (extsr \& (\mbox{\hyperlink{mii_8h_afa6ac41f1e175515207895edd1ca3839}{EXTSR\_1000TFDX}}|\mbox{\hyperlink{mii_8h_a3f49dbf3b3c4a72194b60c3900285628}{EXTSR\_1000THDX}}))}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00144}00144                 \textcolor{keywordflow}{return} (ENXIO);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00145}00145 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00146}00146         \textcolor{keywordflow}{if} (extsr \& (\mbox{\hyperlink{mii_8h_a769f4bfc7fda27a5f3ef53e0ba26a0b5}{EXTSR\_1000XFDX}}|\mbox{\hyperlink{mii_8h_a7e0fc4dd2c69abeaaf69ab8043643052}{EXTSR\_1000XHDX}})) \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00147}00147                 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00148}00148 \textcolor{comment}{                 * We think this is a generic TBI.  Return a match}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00149}00149 \textcolor{comment}{                 * priority higher than ukphy, but lower than what}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00150}00150 \textcolor{comment}{                 * specific drivers will return.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00151}00151 \textcolor{comment}{                 */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00152}00152                 device\_set\_desc(dev, \textcolor{stringliteral}{"{}Generic ten-\/bit interface"{}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00153}00153                 \textcolor{keywordflow}{return} (BUS\_PROBE\_LOW\_PRIORITY);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00154}00154         \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00155}00155 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00156}00156         \textcolor{keywordflow}{return} (ENXIO);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00157}00157 \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00158}00158 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00159}00159 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00160}\mbox{\hyperlink{gentbi_8c_aa9dcfd38e385d73d341c379346cfac7d}{00160}} \mbox{\hyperlink{gentbi_8c_aa9dcfd38e385d73d341c379346cfac7d}{gentbi\_attach}}(device\_t dev)}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00161}00161 \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00162}00162         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00163}00163 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00164}00164         sc = device\_get\_softc(dev);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00165}00165 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00166}00166         \mbox{\hyperlink{mii__physubr_8c_a50acf7ba3fab73b23c13fe7da8c93f1d}{mii\_phy\_dev\_attach}}(dev, \mbox{\hyperlink{miivar_8h_a8d2d38c2ee2b3eb2ccd1f0a3da5fed03}{MIIF\_NOMANPAUSE}}, \&\mbox{\hyperlink{gentbi_8c_ad436c9aaa9a7e0df1662a3b6cddb2912}{gentbi\_funcs}}, 0);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00167}00167 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00168}00168         \mbox{\hyperlink{miivar_8h_aa355e0359542ffc84e9060ab4556f4d8}{PHY\_RESET}}(sc);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00169}00169 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00170}00170         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00171}00171 \textcolor{comment}{         * Mask out all media in the BMSR.  We only are really interested}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00172}00172 \textcolor{comment}{         * in "{}auto"{}.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00173}00173 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00174}00174         sc-\/>\mbox{\hyperlink{structmii__softc_ac3b545baf912e9bd14af8df8bb388050}{mii\_capabilities}} =}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00175}00175             \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_aa2f632686d6298a7c898b1c805586aab}{MII\_BMSR}}) \& sc-\/>\mbox{\hyperlink{structmii__softc_a157af3d80c80b4529458f07886f72a38}{mii\_capmask}} \& \string~BMSR\_MEDIAMASK;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00176}00176         \textcolor{keywordflow}{if} (sc-\/>\mbox{\hyperlink{structmii__softc_ac3b545baf912e9bd14af8df8bb388050}{mii\_capabilities}} \& \mbox{\hyperlink{mii_8h_ab4f6d84420322e12fccdd4647cdcce3e}{BMSR\_EXTSTAT}})}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00177}00177                 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{gentbi_8c_source_l00178}00178 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00179}00179         device\_printf(dev, \textcolor{stringliteral}{"{} "{}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00180}00180         \mbox{\hyperlink{mii__physubr_8c_ac6dc37c9b11e82962dbe7800afdda4cd}{mii\_phy\_add\_media}}(sc);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00181}00181         printf(\textcolor{stringliteral}{"{}\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00182}00182 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00183}00183         MIIBUS\_MEDIAINIT(sc-\/>\mbox{\hyperlink{structmii__softc_a621f3e4b95682f9f64ffeacf496e9a22}{mii\_dev}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00184}00184         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00185}00185 \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00186}00186 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00187}00187 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00188}\mbox{\hyperlink{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}{00188}} \mbox{\hyperlink{gentbi_8c_a9f3968854449b5d972fedac4f9abdf8c}{gentbi\_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{gentbi_8c_source_l00189}00189 \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00190}00190 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00191}00191         \textcolor{keywordflow}{switch} (cmd) \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00192}00192         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a5ee687df11441661206e4d2922ab5a52}{MII\_POLLSTAT}}:}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00193}00193                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00194}00194 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00195}00195         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a6c5cb4a5233e6b1e8a8542636e8ba4c8}{MII\_MEDIACHG}}:}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00196}00196                 \mbox{\hyperlink{mii__physubr_8c_afac2ea5f0d036a16125e01fc48a41457}{mii\_phy\_setmedia}}(sc);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00197}00197                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00198}00198 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00199}00199         \textcolor{keywordflow}{case} \mbox{\hyperlink{miivar_8h_a7aba758235b2d688fc41842a167187e5}{MII\_TICK}}:}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00200}00200                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{mii__physubr_8c_aee0c2c158db70e66816d5c1269e83290}{mii\_phy\_tick}}(sc) == EJUSTRETURN)}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00201}00201                         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00202}00202                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00203}00203         \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00204}00204 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00205}00205         \textcolor{comment}{/* Update the media status. */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00206}00206         \mbox{\hyperlink{miivar_8h_a1c1cdb714bf40ba701256727dd6a73c5}{PHY\_STATUS}}(sc);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00207}00207 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00208}00208         \textcolor{comment}{/* Callback if something changed. */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00209}00209         \mbox{\hyperlink{mii__physubr_8c_ac5a93e41e086c93143a04d9d4548b251}{mii\_phy\_update}}(sc, cmd);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00210}00210         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00211}00211 \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00212}00212 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00213}00213 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00214}\mbox{\hyperlink{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}{00214}} \mbox{\hyperlink{gentbi_8c_a4e7d73a1bb3fe4e38db8db1daca09930}{gentbi\_status}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmii__softc}{mii\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00215}00215 \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00216}00216         \textcolor{keyword}{struct }\mbox{\hyperlink{structmii__data}{mii\_data}} *mii = sc-\/>\mbox{\hyperlink{structmii__softc_a12011aec864a92fb63b711b43e6b4356}{mii\_pdata}};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00217}00217         \textcolor{keyword}{struct }ifmedia\_entry *ife = mii-\/>\mbox{\hyperlink{structmii__data_ac0e7ceb0ad8cc3eb2e55a6947d4c6fd0}{mii\_media}}.ifm\_cur;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00218}00218         \textcolor{keywordtype}{int} bmsr, bmcr, anlpar;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00219}00219 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00220}00220         mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = IFM\_AVALID;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00221}00221         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} = IFM\_ETHER;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00222}00222 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00223}00223         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{gentbi_8c_source_l00224}00224 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00225}00225         \textcolor{keywordflow}{if} (bmsr \& \mbox{\hyperlink{mii_8h_aca42eb005e0fdbae038bd7c9f12a1035}{BMSR\_LINK}})}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00226}00226                 mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} |= IFM\_ACTIVE;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00227}00227 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00228}00228         bmcr = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_a9137acedc42ff140f244da7473cff29e}{MII\_BMCR}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00229}00229         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_a28b8dcb818bc18a079b39b5517c27e3a}{BMCR\_ISO}}) \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00230}00230                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00231}00231                 mii-\/>\mbox{\hyperlink{structmii__data_a15c66b8658a144ac3294603a8146ac09}{mii\_media\_status}} = 0;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00232}00232                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00233}00233         \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00234}00234 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00235}00235         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_aafd596a9125ddece08d5a9798dce42d6}{BMCR\_LOOP}})}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00236}00236                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_LOOP;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00237}00237 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00238}00238         \textcolor{keywordflow}{if} (bmcr \& \mbox{\hyperlink{mii_8h_a8d92e7dc8997005e43add732fba16a0d}{BMCR\_AUTOEN}}) \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00239}00239                 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00240}00240 \textcolor{comment}{                 * The media status bits are only valid if autonegotiation}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00241}00241 \textcolor{comment}{                 * has completed (or it's disabled).}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00242}00242 \textcolor{comment}{                 */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00243}00243                 \textcolor{keywordflow}{if} ((bmsr \& \mbox{\hyperlink{mii_8h_aa602b8728f35b021f27e9db3b06a7e55}{BMSR\_ACOMP}}) == 0) \{}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00244}00244                         \textcolor{comment}{/* Erg, still trying, I guess... */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00245}00245                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_NONE;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00246}00246                         \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00247}00247                 \}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00248}00248 }
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00249}00249                 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00250}00250 \textcolor{comment}{                 * The media is always 1000baseSX.  Check the ANLPAR to}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00251}00251 \textcolor{comment}{                 * see if we're doing full-\/duplex.}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00252}00252 \textcolor{comment}{                 */}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00253}00253                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_1000\_SX;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00254}00254                 anlpar = \mbox{\hyperlink{miivar_8h_a4f9acdc044cd8d94bd80432e4f01bcd2}{PHY\_READ}}(sc, \mbox{\hyperlink{mii_8h_a445e8381a9ea9724054bfacc10bb4c81}{MII\_ANLPAR}});}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00255}00255                 \textcolor{keywordflow}{if} ((sc-\/>\mbox{\hyperlink{structmii__softc_a9e880a089e764bf319ae80abfa6e2daa}{mii\_extcapabilities}} \& \mbox{\hyperlink{mii_8h_a769f4bfc7fda27a5f3ef53e0ba26a0b5}{EXTSR\_1000XFDX}}) != 0 \&\&}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00256}00256                     (anlpar \& \mbox{\hyperlink{mii_8h_a83b31007937d8dfffb8405bc10a1eeea}{ANLPAR\_X\_FD}}) != 0)}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00257}00257                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |=}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00258}00258                             IFM\_FDX | \mbox{\hyperlink{mii__physubr_8c_a02a13013ccece7f7569fce9ab65424d3}{mii\_phy\_flowstatus}}(sc);}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00259}00259                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00260}00260                         mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} |= IFM\_HDX;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00261}00261         \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00262}00262                 mii-\/>\mbox{\hyperlink{structmii__data_a374b422968b2e4f40959161a1f6ed490}{mii\_media\_active}} = ife-\/>ifm\_media;}
\DoxyCodeLine{\Hypertarget{gentbi_8c_source_l00263}00263 \}}

\end{DoxyCode}
