\hypertarget{amphyreg_8h_source}{}\doxysection{amphyreg.\+h}
\label{amphyreg_8h_source}\index{dev/mii/amphyreg.h@{dev/mii/amphyreg.h}}
\mbox{\hyperlink{amphyreg_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/4-\/Clause}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 1997, 1998, 1999}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00005}00005 \textcolor{comment}{ *      Bill Paul <wpaul@ee.columbia.edu>.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00015}00015 \textcolor{comment}{ * 3. All advertising materials mentioning features or use of this software}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00016}00016 \textcolor{comment}{ *    must display the following acknowledgement:}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00017}00017 \textcolor{comment}{ *      This product includes software developed by Bill Paul.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00018}00018 \textcolor{comment}{ * 4. Neither the name of the author nor the names of any co-\/contributors}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00019}00019 \textcolor{comment}{ *    may be used to endorse or promote products derived from this software}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00020}00020 \textcolor{comment}{ *    without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00021}00021 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00022}00022 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00023}00023 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00024}00024 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00025}00025 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00026}00026 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00027}00027 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00028}00028 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00029}00029 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00030}00030 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00031}00031 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00032}00032 \textcolor{comment}{ * THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00033}00033 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00034}00034 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00035}00035 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00037}00037 \textcolor{preprocessor}{\#ifndef \_DEV\_MII\_AMTPHYREG\_H\_}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00038}00038 \textcolor{preprocessor}{\#define \_DEV\_MII\_AMTPHYREG\_H\_}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00040}00040 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00041}00041 \textcolor{comment}{ * AMD Am79C873 registers.}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00042}00042 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00044}\mbox{\hyperlink{amphyreg_8h_a3c3af812f6a4d65c9842970c7032f4db}{00044}} \textcolor{preprocessor}{\#define MII\_AMPHY\_DSCR          0x10    }\textcolor{comment}{/* Specified configuration register */}\textcolor{preprocessor}{a}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00045}\mbox{\hyperlink{amphyreg_8h_a502a0ef2a1fa7621b659f14f6836df3a}{00045}} \textcolor{preprocessor}{\#define DSCR\_BP4B5B             0x8000  }\textcolor{comment}{/* Bypass 4B5B encoding */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00046}\mbox{\hyperlink{amphyreg_8h_aefcf6446833388c9c0da6755770933f6}{00046}} \textcolor{preprocessor}{\#define DSCR\_BPSCR              0x4000  }\textcolor{comment}{/* Bypass scrambler */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00047}\mbox{\hyperlink{amphyreg_8h_aedfe140c15f13b6aacda61f7e0398cdf}{00047}} \textcolor{preprocessor}{\#define DSCR\_BPALIGN            0x2000  }\textcolor{comment}{/* Bypass symbol alignment */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00048}\mbox{\hyperlink{amphyreg_8h_afc86afe963c0d274f5003c85e3574465}{00048}} \textcolor{preprocessor}{\#define DSCR\_REPEATER           0x0800  }\textcolor{comment}{/* Repeater mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00049}\mbox{\hyperlink{amphyreg_8h_a2a352940e5cd8cc730dcef2628e4b749}{00049}} \textcolor{preprocessor}{\#define DSCR\_TX                 0x0400  }\textcolor{comment}{/* TX/FX mode control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00050}\mbox{\hyperlink{amphyreg_8h_a7a21a6f247e2516335ae6c38e99e9809}{00050}} \textcolor{preprocessor}{\#define DSCR\_UTP                0x0200  }\textcolor{comment}{/* UTP/STP mode control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00051}\mbox{\hyperlink{amphyreg_8h_a88fc2bee01c359f3ed2c6ebbc7466818}{00051}} \textcolor{preprocessor}{\#define DSCR\_CLK25MDIS          0x0100  }\textcolor{comment}{/* CLK25M disable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00052}\mbox{\hyperlink{amphyreg_8h_acf1119c1e485839fbb7ca24f9fcaf641}{00052}} \textcolor{preprocessor}{\#define DSCR\_FGLNKTX            0x0080  }\textcolor{comment}{/* Force good link at 100baseTX */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00053}\mbox{\hyperlink{amphyreg_8h_a335f37247575f81b55f2f628fe92fafc}{00053}} \textcolor{preprocessor}{\#define DSCR\_LINKLEDCTL         0x0020  }\textcolor{comment}{/* Link LED control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00054}\mbox{\hyperlink{amphyreg_8h_a8aed941aa25aae68f862a00b3445d980}{00054}} \textcolor{preprocessor}{\#define DSCR\_FDXLEDCTL          0x0010  }\textcolor{comment}{/* FDX LED control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00055}\mbox{\hyperlink{amphyreg_8h_aed876440cfc20598d4d5a6543aa52feb}{00055}} \textcolor{preprocessor}{\#define DSCR\_SMRTS              0x0008  }\textcolor{comment}{/* Reset state machine */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00056}\mbox{\hyperlink{amphyreg_8h_a7536e0afa11b900ec0f643637f637a5b}{00056}} \textcolor{preprocessor}{\#define DSCR\_MFPSC              0x0004  }\textcolor{comment}{/* Preamble surpression control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00057}\mbox{\hyperlink{amphyreg_8h_aae9f1a6e9e4e6d1e8ba3866096dceefa}{00057}} \textcolor{preprocessor}{\#define DSCR\_SLEEP              0x0002  }\textcolor{comment}{/* Sleep mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00058}\mbox{\hyperlink{amphyreg_8h_a0a7ee30ef1bbceb39bfc42970b27d0e0}{00058}} \textcolor{preprocessor}{\#define DSCR\_RLOUT              0x0001  }\textcolor{comment}{/* Remote loopout control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00059}00059 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00060}\mbox{\hyperlink{amphyreg_8h_a14103498437bd7d681e27f164d54b254}{00060}} \textcolor{preprocessor}{\#define MII\_AMPHY\_DSCSR         0x11    }\textcolor{comment}{/* Specified configuration and status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00061}\mbox{\hyperlink{amphyreg_8h_ae9ecbd5be45f0f3a1888d994fafc7498}{00061}} \textcolor{preprocessor}{\#define DSCSR\_100FDX            0x8000  }\textcolor{comment}{/* 100MBps full duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00062}\mbox{\hyperlink{amphyreg_8h_a834c55dd049d6554417c5163794f9c47}{00062}} \textcolor{preprocessor}{\#define DSCSR\_100HDX            0x4000  }\textcolor{comment}{/* 100Mbps half duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00063}\mbox{\hyperlink{amphyreg_8h_ab378691afb0a442325af8e53ed9313d0}{00063}} \textcolor{preprocessor}{\#define DSCSR\_10FDX             0x2000  }\textcolor{comment}{/* 10Mbps full duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00064}\mbox{\hyperlink{amphyreg_8h_aab5cfe71e330ee558bd340bbec838a55}{00064}} \textcolor{preprocessor}{\#define DSCSR\_10HDX             0x1000  }\textcolor{comment}{/* 10Mbps half duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00065}\mbox{\hyperlink{amphyreg_8h_a706c53e4d152349998890956292c6da1}{00065}} \textcolor{preprocessor}{\#define DSCSR\_PADDR             0x01F0  }\textcolor{comment}{/* PHY address */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00066}\mbox{\hyperlink{amphyreg_8h_a165c2f601dc82190290e93070a5fcbad}{00066}} \textcolor{preprocessor}{\#define DSCSR\_ASTAT             0x000F  }\textcolor{comment}{/* Autonegotiation status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00067}00067 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00068}\mbox{\hyperlink{amphyreg_8h_aad22ab012c6d1840aa62b0a70f1e7de2}{00068}} \textcolor{preprocessor}{\#define ASTAT\_COMPLETE          0x8}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00069}\mbox{\hyperlink{amphyreg_8h_af1407b61a871031c8649fd551b24edbf}{00069}} \textcolor{preprocessor}{\#define ASTAT\_PDLINK\_READY\_FAIL 0x7}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00070}\mbox{\hyperlink{amphyreg_8h_a873c701e360bd84ca5b9828625d5154a}{00070}} \textcolor{preprocessor}{\#define ASTAT\_PDLINK\_READY      0x6}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00071}\mbox{\hyperlink{amphyreg_8h_a25b5bc99728a29205607f7fca1d50a15}{00071}} \textcolor{preprocessor}{\#define ASTAT\_CONSTMATCH\_FAIL   0x5}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00072}\mbox{\hyperlink{amphyreg_8h_a534943956295978b7e7bf9a62227b86c}{00072}} \textcolor{preprocessor}{\#define ASTAT\_CONSTMATCH        0x4}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00073}\mbox{\hyperlink{amphyreg_8h_ad01eaecfa8d6d8d964534847457ebbd7}{00073}} \textcolor{preprocessor}{\#define ASTAT\_ACKMATCH\_FAIL     0x3}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00074}\mbox{\hyperlink{amphyreg_8h_ad05bd81b42128bc13fe7b956b4d348be}{00074}} \textcolor{preprocessor}{\#define ASTAT\_ACKMATCH          0x2}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00075}\mbox{\hyperlink{amphyreg_8h_aba1090560667a79ec9da5cf05be1944b}{00075}} \textcolor{preprocessor}{\#define ASTAT\_ABILITYMATCH      0x1}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00076}\mbox{\hyperlink{amphyreg_8h_a8e37fb7c32fe2af6ba0eec868148ebbd}{00076}} \textcolor{preprocessor}{\#define ASTAT\_IDLE              0x0}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00077}00077 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00078}\mbox{\hyperlink{amphyreg_8h_a2cdbb2cc6369646a0090c62910f63f4b}{00078}} \textcolor{preprocessor}{\#define MII\_AMPHY\_T10CSRSCR     0x12    }\textcolor{comment}{/* 10baseT configuration/status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00079}\mbox{\hyperlink{amphyreg_8h_a380f9d74bcd1acf8118340da97cc8911}{00079}} \textcolor{preprocessor}{\#define T10CSRSCR\_LPEN          0x4000  }\textcolor{comment}{/* Link pulse enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00080}\mbox{\hyperlink{amphyreg_8h_aecbb8928fe4e3bc031358d1a60988583}{00080}} \textcolor{preprocessor}{\#define T10CSRSCR\_HBE           0x2000  }\textcolor{comment}{/* Heartbeat enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00081}\mbox{\hyperlink{amphyreg_8h_a9e9e8750f073ae63b7382ae8b0689493}{00081}} \textcolor{preprocessor}{\#define T10CSRSCR\_JABEN         0x0800  }\textcolor{comment}{/* Jabber enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00082}\mbox{\hyperlink{amphyreg_8h_a144c3673cf1cb5e8b57c6c7cc4fb7244}{00082}} \textcolor{preprocessor}{\#define T10CSRSCR\_SER           0x0400  }\textcolor{comment}{/* Serial mode enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00083}\mbox{\hyperlink{amphyreg_8h_ad7d4fd94ec7e35d36454dfb1181546fe}{00083}} \textcolor{preprocessor}{\#define T10CSRSCR\_POLR          0x0001  }\textcolor{comment}{/* Polarity reversed */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00084}00084 }
\DoxyCodeLine{\Hypertarget{amphyreg_8h_source_l00085}00085 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_DEV\_MII\_AMTPHYREG\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
