\hypertarget{nsgphyreg_8h_source}{}\doxysection{nsgphyreg.\+h}
\label{nsgphyreg_8h_source}\index{dev/mii/nsgphyreg.h@{dev/mii/nsgphyreg.h}}
\mbox{\hyperlink{nsgphyreg_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/4-\/Clause}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2001 Wind River Systems}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00005}00005 \textcolor{comment}{ * Copyright (c) 2001}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00006}00006 \textcolor{comment}{ *      Bill Paul <wpaul@bsdi.com>.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00008}00008 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00009}00009 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00010}00010 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00011}00011 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00012}00012 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00013}00013 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00014}00014 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00015}00015 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00016}00016 \textcolor{comment}{ * 3. All advertising materials mentioning features or use of this software}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00017}00017 \textcolor{comment}{ *    must display the following acknowledgement:}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00018}00018 \textcolor{comment}{ *      This product includes software developed by Bill Paul.}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00019}00019 \textcolor{comment}{ * 4. Neither the name of the author nor the names of any co-\/contributors}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00020}00020 \textcolor{comment}{ *    may be used to endorse or promote products derived from this software}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00021}00021 \textcolor{comment}{ *    without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00022}00022 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00023}00023 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00024}00024 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00025}00025 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00026}00026 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00027}00027 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00028}00028 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00029}00029 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00030}00030 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00031}00031 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00032}00032 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00033}00033 \textcolor{comment}{ * THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00034}00034 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00035}00035 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00036}00036 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00038}00038 \textcolor{preprocessor}{\#ifndef \_DEV\_MII\_NSGPHYREG\_H\_}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00039}00039 \textcolor{preprocessor}{\#define \_DEV\_MII\_NSGPHYREG\_H\_}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00040}00040 }
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00041}00041 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00042}00042 \textcolor{comment}{ * NatSemi DP83891 registers}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00043}00043 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00045}\mbox{\hyperlink{nsgphyreg_8h_a2a5c172242c4aa9147178b532d270033}{00045}} \textcolor{preprocessor}{\#define NSGPHY\_MII\_STRAPOPT     0x10    }\textcolor{comment}{/* Strap options */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00046}\mbox{\hyperlink{nsgphyreg_8h_a867db1f5ca2e5ca9cfc601e60eb2fb19}{00046}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_PHYADDR 0xF800  }\textcolor{comment}{/* PHY address */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00047}\mbox{\hyperlink{nsgphyreg_8h_a71abb1a1dd8cfea9848fe50e47778743}{00047}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_COMPAT  0x0400  }\textcolor{comment}{/* Broadcom compat mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00048}\mbox{\hyperlink{nsgphyreg_8h_a3a5183703656e6c265e2534be62f5169}{00048}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_MMSE    0x0200  }\textcolor{comment}{/* Manual master/slave enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00049}\mbox{\hyperlink{nsgphyreg_8h_a04038e232934a533609129638c13d3e7}{00049}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_ANEG    0x0100  }\textcolor{comment}{/* Autoneg enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00050}\mbox{\hyperlink{nsgphyreg_8h_ab0a214598e073a531976c58d877c0b97}{00050}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_MMSV    0x0080  }\textcolor{comment}{/* Manual master/slave setting */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00051}\mbox{\hyperlink{nsgphyreg_8h_a3d1c5e0acd50b78bfbe56627f837ce84}{00051}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_1000HDX 0x0010  }\textcolor{comment}{/* Advertise 1000 half-\/duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00052}\mbox{\hyperlink{nsgphyreg_8h_af1fb8ee7319bd988967165f4d375cb30}{00052}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_1000FDX 0x0008  }\textcolor{comment}{/* Advertise 1000 full-\/duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00053}\mbox{\hyperlink{nsgphyreg_8h_aa6861f5c879ec84e1691ec1952bdaa29}{00053}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_100\_ADV 0x0004  }\textcolor{comment}{/* Advertise 100 full/half-\/duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00054}\mbox{\hyperlink{nsgphyreg_8h_afbcff5ae4ec43f38e7325f633e79f38e}{00054}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_SPEED1  0x0002  }\textcolor{comment}{/* speed selection */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00055}\mbox{\hyperlink{nsgphyreg_8h_a86a9feacdc819e35556014e850bdefbe}{00055}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_SPEED0  0x0001  }\textcolor{comment}{/* speed selection */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00056}\mbox{\hyperlink{nsgphyreg_8h_a0691ce44eb7f97a7f233f5f1d4444980}{00056}} \textcolor{preprocessor}{\#define NSGPHY\_STRAPOPT\_SPDSEL  (NSGPHY\_STRAPOPT\_SPEED1|NSGPHY\_STRAPOPT\_SPEED0)}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00058}\mbox{\hyperlink{nsgphyreg_8h_a7d42a0ad56e8291898f4e6e4e26eb98b}{00058}} \textcolor{preprocessor}{\#define NSGPHY\_MII\_PHYSUP       0x11    }\textcolor{comment}{/* PHY support/current status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00059}\mbox{\hyperlink{nsgphyreg_8h_ae8e739a6b539305dc1f9fca5d32c50ba}{00059}} \textcolor{preprocessor}{\#define PHY\_SUP\_SPEED1          0x0010  }\textcolor{comment}{/* speed bit 1 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00060}\mbox{\hyperlink{nsgphyreg_8h_a9ea840867650a78ae3deb7c34f0ce39b}{00060}} \textcolor{preprocessor}{\#define PHY\_SUP\_SPEED0          0x0008  }\textcolor{comment}{/* speed bit 1 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00061}\mbox{\hyperlink{nsgphyreg_8h_a1ea3281b3da7e50554fcddbd6b87b931}{00061}} \textcolor{preprocessor}{\#define NSGPHY\_PHYSUP\_SPEED1    0x0010  }\textcolor{comment}{/* speed status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00062}\mbox{\hyperlink{nsgphyreg_8h_a47a4eb668ad083d4c0121e1353eca158}{00062}} \textcolor{preprocessor}{\#define NSGPHY\_PHYSUP\_SPEED0    0x0008  }\textcolor{comment}{/* speed status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00063}\mbox{\hyperlink{nsgphyreg_8h_ad6c0331e6eb219794ed5d61e721952d3}{00063}} \textcolor{preprocessor}{\#define NSGPHY\_PHYSUP\_SPDSTS    (NSGPHY\_PHYSUP\_SPEED1|NSGPHY\_PHYSUP\_SPEED0)}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00064}\mbox{\hyperlink{nsgphyreg_8h_a949778328934c8ba09a19d4cae1e1170}{00064}} \textcolor{preprocessor}{\#define NSGPHY\_PHYSUP\_LNKSTS    0x0004  }\textcolor{comment}{/* link status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00065}\mbox{\hyperlink{nsgphyreg_8h_a61ad68959307df89ceab27aeee17d625}{00065}} \textcolor{preprocessor}{\#define PHY\_SUP\_LINK            0x0004  }\textcolor{comment}{/* link status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00066}\mbox{\hyperlink{nsgphyreg_8h_a867ab51f5eb5afb8827036da7811797e}{00066}} \textcolor{preprocessor}{\#define PHY\_SUP\_DUPLEX          0x0002  }\textcolor{comment}{/* 1 == full-\/duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00067}\mbox{\hyperlink{nsgphyreg_8h_a55a00ac10e0a323a7298dffd8c77fa9a}{00067}} \textcolor{preprocessor}{\#define NSGPHY\_PHYSUP\_DUPSTS    0x0002  }\textcolor{comment}{/* duplex status 1 == full */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00068}\mbox{\hyperlink{nsgphyreg_8h_a8f44ba28420fb63d8cac2bbd0fd6d54c}{00068}} \textcolor{preprocessor}{\#define NSGPHY\_PHYSUP\_10BT      0x0001  }\textcolor{comment}{/* 10baseT resolved */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00069}00069 }
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00070}\mbox{\hyperlink{nsgphyreg_8h_af95dd973406792dd3d434fab02fcfc6e}{00070}} \textcolor{preprocessor}{\#define NSGPHY\_SPDSTS\_1000      0x0010}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00071}\mbox{\hyperlink{nsgphyreg_8h_aa6cc6012c38c33c3187282e2f9fc2a2e}{00071}} \textcolor{preprocessor}{\#define NSGPHY\_SPDSTS\_100       0x0008}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00072}\mbox{\hyperlink{nsgphyreg_8h_a6a291aea6943f45d50882c9523740966}{00072}} \textcolor{preprocessor}{\#define NSGPHY\_SPDSTS\_10        0x0000}}
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00073}00073 }
\DoxyCodeLine{\Hypertarget{nsgphyreg_8h_source_l00074}00074 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_DEV\_NSGPHY\_MIIREG\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
