\hypertarget{mii_8h_source}{}\doxysection{mii.\+h}
\label{mii_8h_source}\index{dev/mii/mii.h@{dev/mii/mii.h}}
\mbox{\hyperlink{mii_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00001}00001 \textcolor{comment}{/*      \$NetBSD: mii.h,v 1.18 2014/06/16 14:43:22 msaitoh Exp \$ */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00003}00003 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00004}00004 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00008}00008 \textcolor{comment}{ * Modification to match BSD/OS 3.0 MII interface by Jason R. Thorpe,}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00009}00009 \textcolor{comment}{ * Numerical Aerospace Simulation Facility, NASA Ames Research Center.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00010}00010 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00011}00011 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00012}00012 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00013}00013 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00014}00014 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00015}00015 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00016}00016 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00017}00017 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00018}00018 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00019}00019 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00020}00020 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00021}00021 \textcolor{comment}{ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00022}00022 \textcolor{comment}{ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00023}00023 \textcolor{comment}{ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00024}00024 \textcolor{comment}{ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00025}00025 \textcolor{comment}{ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00026}00026 \textcolor{comment}{ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00027}00027 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00028}00028 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00029}00029 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00030}00030 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00031}00031 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00032}00032 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00033}00033 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00034}00034 \textcolor{preprocessor}{\#ifndef \_DEV\_MII\_MII\_H\_}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00035}00035 \textcolor{preprocessor}{\#define \_DEV\_MII\_MII\_H\_}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00037}00037 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00038}00038 \textcolor{comment}{ * Registers common to all PHYs.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00039}00039 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00040}00040 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00041}\mbox{\hyperlink{mii_8h_ab9e50eefb188d67d3ffa20e5494b5241}{00041}} \textcolor{preprocessor}{\#define MII\_NPHY        32      }\textcolor{comment}{/* max \# of PHYs per MII */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00043}00043 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00044}00044 \textcolor{comment}{ * MII commands, used if a device must drive the MII lines}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00045}00045 \textcolor{comment}{ * manually.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00046}00046 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00047}\mbox{\hyperlink{mii_8h_a6a8601069231eb14b59c484a19ccf367}{00047}} \textcolor{preprocessor}{\#define MII\_COMMAND\_START       0x01}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00048}\mbox{\hyperlink{mii_8h_a7352d23eaf43b50c7611cb308927daab}{00048}} \textcolor{preprocessor}{\#define MII\_COMMAND\_READ        0x02}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00049}\mbox{\hyperlink{mii_8h_a38e4fd3f1594546767c57cf3083effaa}{00049}} \textcolor{preprocessor}{\#define MII\_COMMAND\_WRITE       0x01}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00050}\mbox{\hyperlink{mii_8h_ad22c7e5cb2e4963010e3bae7379fc3d8}{00050}} \textcolor{preprocessor}{\#define MII\_COMMAND\_ACK         0x02}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00052}\mbox{\hyperlink{mii_8h_a9137acedc42ff140f244da7473cff29e}{00052}} \textcolor{preprocessor}{\#define MII\_BMCR        0x00    }\textcolor{comment}{/* Basic mode control register (rw) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00053}\mbox{\hyperlink{mii_8h_a602d307dfe6dbbf35e6b62f0914f5594}{00053}} \textcolor{preprocessor}{\#define BMCR\_RESET      0x8000  }\textcolor{comment}{/* reset */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00054}\mbox{\hyperlink{mii_8h_aafd596a9125ddece08d5a9798dce42d6}{00054}} \textcolor{preprocessor}{\#define BMCR\_LOOP       0x4000  }\textcolor{comment}{/* loopback */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00055}\mbox{\hyperlink{mii_8h_a6eab0b0521ede7a9d33dc4b132e82f1d}{00055}} \textcolor{preprocessor}{\#define BMCR\_SPEED0     0x2000  }\textcolor{comment}{/* speed selection (LSB) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00056}\mbox{\hyperlink{mii_8h_a8d92e7dc8997005e43add732fba16a0d}{00056}} \textcolor{preprocessor}{\#define BMCR\_AUTOEN     0x1000  }\textcolor{comment}{/* autonegotiation enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00057}\mbox{\hyperlink{mii_8h_a268f2a026617b4490ae48826b4af8a7b}{00057}} \textcolor{preprocessor}{\#define BMCR\_PDOWN      0x0800  }\textcolor{comment}{/* power down */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00058}\mbox{\hyperlink{mii_8h_a28b8dcb818bc18a079b39b5517c27e3a}{00058}} \textcolor{preprocessor}{\#define BMCR\_ISO        0x0400  }\textcolor{comment}{/* isolate */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00059}\mbox{\hyperlink{mii_8h_a2ed0562d5bde5bf56ec01a2e0b9a12a7}{00059}} \textcolor{preprocessor}{\#define BMCR\_STARTNEG   0x0200  }\textcolor{comment}{/* restart autonegotiation */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00060}\mbox{\hyperlink{mii_8h_a2a3179867c3b6168c8b8647cc768b44d}{00060}} \textcolor{preprocessor}{\#define BMCR\_FDX        0x0100  }\textcolor{comment}{/* Set duplex mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00061}\mbox{\hyperlink{mii_8h_a825d7099fa6ec233238880fa705ecab6}{00061}} \textcolor{preprocessor}{\#define BMCR\_CTEST      0x0080  }\textcolor{comment}{/* collision test */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00062}\mbox{\hyperlink{mii_8h_ad7ce2e9404fa87d076d24a73257e7ff4}{00062}} \textcolor{preprocessor}{\#define BMCR\_SPEED1     0x0040  }\textcolor{comment}{/* speed selection (MSB) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00063}00063 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00064}\mbox{\hyperlink{mii_8h_abe0c6341e185b080760358e5759ae46f}{00064}} \textcolor{preprocessor}{\#define BMCR\_S10        0x0000          }\textcolor{comment}{/* 10 Mb/s */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00065}\mbox{\hyperlink{mii_8h_ac9cb41a58f5b6fc5e74b7b1699ed0891}{00065}} \textcolor{preprocessor}{\#define BMCR\_S100       BMCR\_SPEED0     }\textcolor{comment}{/* 100 Mb/s */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00066}\mbox{\hyperlink{mii_8h_ab1181844d269db0df0962f4a7be0ceee}{00066}} \textcolor{preprocessor}{\#define BMCR\_S1000      BMCR\_SPEED1     }\textcolor{comment}{/* 1000 Mb/s */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00067}00067 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00068}\mbox{\hyperlink{mii_8h_a2eef6fb4a69f9e61244d18d6fb850d44}{00068}} \textcolor{preprocessor}{\#define BMCR\_SPEED(x)   ((x) \& (BMCR\_SPEED0|BMCR\_SPEED1))}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00069}00069 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00070}\mbox{\hyperlink{mii_8h_aa2f632686d6298a7c898b1c805586aab}{00070}} \textcolor{preprocessor}{\#define MII\_BMSR        0x01    }\textcolor{comment}{/* Basic mode status register (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00071}\mbox{\hyperlink{mii_8h_acab252b88ac3b51112a512b015adf801}{00071}} \textcolor{preprocessor}{\#define BMSR\_100T4      0x8000  }\textcolor{comment}{/* 100 base T4 capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00072}\mbox{\hyperlink{mii_8h_a2953d54a8cde8b60b5daf6096478d3c6}{00072}} \textcolor{preprocessor}{\#define BMSR\_100TXFDX   0x4000  }\textcolor{comment}{/* 100 base Tx full duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00073}\mbox{\hyperlink{mii_8h_a980bf9d1b5e8053768f87821d73afcac}{00073}} \textcolor{preprocessor}{\#define BMSR\_100TXHDX   0x2000  }\textcolor{comment}{/* 100 base Tx half duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00074}\mbox{\hyperlink{mii_8h_a2107023850de2125d9f4e2a80d2ea0ea}{00074}} \textcolor{preprocessor}{\#define BMSR\_10TFDX     0x1000  }\textcolor{comment}{/* 10 base T full duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00075}\mbox{\hyperlink{mii_8h_ad5f1eab10df476c73a276366a36c6717}{00075}} \textcolor{preprocessor}{\#define BMSR\_10THDX     0x0800  }\textcolor{comment}{/* 10 base T half duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00076}\mbox{\hyperlink{mii_8h_acb87de482d6681c9da5eb3179045ae1e}{00076}} \textcolor{preprocessor}{\#define BMSR\_100T2FDX   0x0400  }\textcolor{comment}{/* 100 base T2 full duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00077}\mbox{\hyperlink{mii_8h_a3bf47cf4d20f2652e14ffbfdd073f7a7}{00077}} \textcolor{preprocessor}{\#define BMSR\_100T2HDX   0x0200  }\textcolor{comment}{/* 100 base T2 half duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00078}\mbox{\hyperlink{mii_8h_ab4f6d84420322e12fccdd4647cdcce3e}{00078}} \textcolor{preprocessor}{\#define BMSR\_EXTSTAT    0x0100  }\textcolor{comment}{/* Extended status in register 15 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00079}\mbox{\hyperlink{mii_8h_a8fc92a986a121d4d771375b4c9a71f7a}{00079}} \textcolor{preprocessor}{\#define BMSR\_MFPS       0x0040  }\textcolor{comment}{/* MII Frame Preamble Suppression */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00080}\mbox{\hyperlink{mii_8h_aa602b8728f35b021f27e9db3b06a7e55}{00080}} \textcolor{preprocessor}{\#define BMSR\_ACOMP      0x0020  }\textcolor{comment}{/* Autonegotiation complete */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00081}\mbox{\hyperlink{mii_8h_a7ffa5897f7cdd262ec851d25275cf313}{00081}} \textcolor{preprocessor}{\#define BMSR\_RFAULT     0x0010  }\textcolor{comment}{/* Link partner fault */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00082}\mbox{\hyperlink{mii_8h_ad521243185c9b6b0c8db80eeb416bacc}{00082}} \textcolor{preprocessor}{\#define BMSR\_ANEG       0x0008  }\textcolor{comment}{/* Autonegotiation capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00083}\mbox{\hyperlink{mii_8h_aca42eb005e0fdbae038bd7c9f12a1035}{00083}} \textcolor{preprocessor}{\#define BMSR\_LINK       0x0004  }\textcolor{comment}{/* Link status */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00084}\mbox{\hyperlink{mii_8h_acab1ef0ac02e3218a51bf398599918e4}{00084}} \textcolor{preprocessor}{\#define BMSR\_JABBER     0x0002  }\textcolor{comment}{/* Jabber detected */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00085}\mbox{\hyperlink{mii_8h_a4fc95668cc47130a55aa454d992472c9}{00085}} \textcolor{preprocessor}{\#define BMSR\_EXTCAP     0x0001  }\textcolor{comment}{/* Extended capability */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00086}00086 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00087}\mbox{\hyperlink{mii_8h_afae4737fb9481c5705d90ec447aced1b}{00087}} \textcolor{preprocessor}{\#define BMSR\_DEFCAPMASK 0xffffffff}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00088}00088 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00089}00089 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00090}00090 \textcolor{comment}{ * Note that the EXTSTAT bit indicates that there is extended status}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00091}00091 \textcolor{comment}{ * info available in register 15, but 802.3 section 22.2.4.3 also}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00092}00092 \textcolor{comment}{ * states that all 1000 Mb/s capable PHYs will set this bit to 1.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00093}00093 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00094}00094 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00095}\mbox{\hyperlink{mii_8h_a58bd802e99296717ac7cced521d43010}{00095}} \textcolor{preprocessor}{\#define BMSR\_MEDIAMASK  (BMSR\_100T4|BMSR\_100TXFDX|BMSR\_100TXHDX| \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00096}00096 \textcolor{preprocessor}{                         BMSR\_10TFDX|BMSR\_10THDX|BMSR\_100T2FDX|BMSR\_100T2HDX)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00097}00097 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00098}00098 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00099}00099 \textcolor{comment}{ * Convert BMSR media capabilities to ANAR bits for autonegotiation.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00100}00100 \textcolor{comment}{ * Note the shift chopps off the BMSR\_ANEG bit.}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00101}00101 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00102}\mbox{\hyperlink{mii_8h_a3406eac06aaf4c12c4b46c8296400a94}{00102}} \textcolor{preprocessor}{\#define BMSR\_MEDIA\_TO\_ANAR(x)   (((x) \& BMSR\_MEDIAMASK) >> 6)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00103}00103 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00104}\mbox{\hyperlink{mii_8h_af7a1cd475d2a72a786f36d48b2c5480f}{00104}} \textcolor{preprocessor}{\#define MII\_PHYIDR1     0x02    }\textcolor{comment}{/* ID register 1 (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00105}00105 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00106}\mbox{\hyperlink{mii_8h_a80bda47504fdbd67890af22b70b8863d}{00106}} \textcolor{preprocessor}{\#define MII\_PHYIDR2     0x03    }\textcolor{comment}{/* ID register 2 (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00107}\mbox{\hyperlink{mii_8h_a18daf1f4bacc44c33ad9abb28bc7501f}{00107}} \textcolor{preprocessor}{\#define IDR2\_OUILSB     0xfc00  }\textcolor{comment}{/* OUI LSB */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00108}\mbox{\hyperlink{mii_8h_a1e25e261425d5ab6313f4513e6c3a6d6}{00108}} \textcolor{preprocessor}{\#define IDR2\_MODEL      0x03f0  }\textcolor{comment}{/* vendor model */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00109}\mbox{\hyperlink{mii_8h_ae74dc9e0ba8f1c3d720f8a6894fed739}{00109}} \textcolor{preprocessor}{\#define IDR2\_REV        0x000f  }\textcolor{comment}{/* vendor revision */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00110}00110 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00111}\mbox{\hyperlink{mii_8h_aacb2ab0ea5579b5d9e30b075991add1d}{00111}} \textcolor{preprocessor}{\#define MII\_ANAR        0x04    }\textcolor{comment}{/* Autonegotiation advertisement (rw) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00112}00112                 \textcolor{comment}{/* section 28.2.4.1 and 37.2.6.1 */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00113}\mbox{\hyperlink{mii_8h_a3c63eb6386fbc38b8d9ea5883c0f9aac}{00113}} \textcolor{preprocessor}{\#define ANAR\_NP         0x8000  }\textcolor{comment}{/* Next page (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00114}\mbox{\hyperlink{mii_8h_ab25980f58116622d7204e22d27055774}{00114}} \textcolor{preprocessor}{\#define ANAR\_ACK        0x4000  }\textcolor{comment}{/* link partner abilities acknowledged (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00115}\mbox{\hyperlink{mii_8h_a1de1fb446aa9da3b2fa50279c6d97699}{00115}} \textcolor{preprocessor}{\#define ANAR\_RF         0x2000  }\textcolor{comment}{/* remote fault (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00116}00116                 \textcolor{comment}{/* Annex 28B.2 */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00117}\mbox{\hyperlink{mii_8h_a238749af941282e3a074598b16e5442a}{00117}} \textcolor{preprocessor}{\#define ANAR\_FC         0x0400  }\textcolor{comment}{/* local device supports PAUSE */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00118}\mbox{\hyperlink{mii_8h_a4c462e59abe881693adc937323429f91}{00118}} \textcolor{preprocessor}{\#define ANAR\_T4         0x0200  }\textcolor{comment}{/* local device supports 100bT4 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00119}\mbox{\hyperlink{mii_8h_acc5b03ac472df013d7fe11cd83d8e1cd}{00119}} \textcolor{preprocessor}{\#define ANAR\_TX\_FD      0x0100  }\textcolor{comment}{/* local device supports 100bTx FD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00120}\mbox{\hyperlink{mii_8h_ad283e403f5a3845ec5eb8fb71e5add8f}{00120}} \textcolor{preprocessor}{\#define ANAR\_TX         0x0080  }\textcolor{comment}{/* local device supports 100bTx */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00121}\mbox{\hyperlink{mii_8h_ac4e51c5edcd6ddc1ec760bfe89ac3be4}{00121}} \textcolor{preprocessor}{\#define ANAR\_10\_FD      0x0040  }\textcolor{comment}{/* local device supports 10bT FD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00122}\mbox{\hyperlink{mii_8h_afffabbb091cbb816be17b68290d91a46}{00122}} \textcolor{preprocessor}{\#define ANAR\_10         0x0020  }\textcolor{comment}{/* local device supports 10bT */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00123}\mbox{\hyperlink{mii_8h_a890fc8f217d4396d1b0c65f1cefe9a2e}{00123}} \textcolor{preprocessor}{\#define ANAR\_CSMA       0x0001  }\textcolor{comment}{/* protocol selector CSMA/CD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00124}\mbox{\hyperlink{mii_8h_aea91008d9663fe2ec347acba4994b4ad}{00124}} \textcolor{preprocessor}{\#define ANAR\_PAUSE\_NONE         (0 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00125}\mbox{\hyperlink{mii_8h_ad3f2c012e7853f95c03a12b1cf2288ac}{00125}} \textcolor{preprocessor}{\#define ANAR\_PAUSE\_SYM          (1 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00126}\mbox{\hyperlink{mii_8h_a011aca3ef0b4316a14001f0d17844f3b}{00126}} \textcolor{preprocessor}{\#define ANAR\_PAUSE\_ASYM         (2 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00127}\mbox{\hyperlink{mii_8h_a08a7a407970026feccc3ead3a749121c}{00127}} \textcolor{preprocessor}{\#define ANAR\_PAUSE\_TOWARDS      (3 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00128}00128 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00129}00129                 \textcolor{comment}{/* Annex 28D */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00130}\mbox{\hyperlink{mii_8h_a6cee54eddda3532ee3eda69afc51101a}{00130}} \textcolor{preprocessor}{\#define ANAR\_X\_FD       0x0020  }\textcolor{comment}{/* local device supports 1000BASE-\/X FD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00131}\mbox{\hyperlink{mii_8h_a651c0e997cbc1a97073ae73b3e1fcd55}{00131}} \textcolor{preprocessor}{\#define ANAR\_X\_HD       0x0040  }\textcolor{comment}{/* local device supports 1000BASE-\/X HD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00132}\mbox{\hyperlink{mii_8h_a38a484c244f47c8ecc9dd515d27676ad}{00132}} \textcolor{preprocessor}{\#define ANAR\_X\_PAUSE\_NONE       (0 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00133}\mbox{\hyperlink{mii_8h_a6fef7fe57fa8ccc46943bb72c3266b1a}{00133}} \textcolor{preprocessor}{\#define ANAR\_X\_PAUSE\_SYM        (1 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00134}\mbox{\hyperlink{mii_8h_a1e82606d0e1e2c1e27189dd9c71d50f2}{00134}} \textcolor{preprocessor}{\#define ANAR\_X\_PAUSE\_ASYM       (2 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00135}\mbox{\hyperlink{mii_8h_a20371fc44ccb33030c7c541ce7a2c884}{00135}} \textcolor{preprocessor}{\#define ANAR\_X\_PAUSE\_TOWARDS    (3 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00136}00136 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00137}\mbox{\hyperlink{mii_8h_a445e8381a9ea9724054bfacc10bb4c81}{00137}} \textcolor{preprocessor}{\#define MII\_ANLPAR      0x05    }\textcolor{comment}{/* Autonegotiation lnk partner abilities (rw) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00138}00138                 \textcolor{comment}{/* section 28.2.4.1 and 37.2.6.1 */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00139}\mbox{\hyperlink{mii_8h_a20a79e9f4f7626bb3659d8e51a845c16}{00139}} \textcolor{preprocessor}{\#define ANLPAR\_NP       0x8000  }\textcolor{comment}{/* Next page (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00140}\mbox{\hyperlink{mii_8h_a2ca9fd2b76e87e6627b80405ebbfab78}{00140}} \textcolor{preprocessor}{\#define ANLPAR\_ACK      0x4000  }\textcolor{comment}{/* link partner accepted ACK (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00141}\mbox{\hyperlink{mii_8h_a1f474fd1f62ca4f56e9400f1d955f4f7}{00141}} \textcolor{preprocessor}{\#define ANLPAR\_RF       0x2000  }\textcolor{comment}{/* remote fault (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00142}\mbox{\hyperlink{mii_8h_ab835e273a7263170a7607b1113a9d84a}{00142}} \textcolor{preprocessor}{\#define ANLPAR\_FC       0x0400  }\textcolor{comment}{/* link partner supports PAUSE */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00143}\mbox{\hyperlink{mii_8h_a56e31c4268bc062a0c70dead5951fee4}{00143}} \textcolor{preprocessor}{\#define ANLPAR\_T4       0x0200  }\textcolor{comment}{/* link partner supports 100bT4 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00144}\mbox{\hyperlink{mii_8h_afed6c4132ca2f6712fbc773549bb950f}{00144}} \textcolor{preprocessor}{\#define ANLPAR\_TX\_FD    0x0100  }\textcolor{comment}{/* link partner supports 100bTx FD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00145}\mbox{\hyperlink{mii_8h_a6a5ed387031b7f1754b0d6ccd7e7af60}{00145}} \textcolor{preprocessor}{\#define ANLPAR\_TX       0x0080  }\textcolor{comment}{/* link partner supports 100bTx */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00146}\mbox{\hyperlink{mii_8h_aa8b1fa07c5222efe44ab300818410867}{00146}} \textcolor{preprocessor}{\#define ANLPAR\_10\_FD    0x0040  }\textcolor{comment}{/* link partner supports 10bT FD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00147}\mbox{\hyperlink{mii_8h_acdff237c9d804e262e2b68f413748e30}{00147}} \textcolor{preprocessor}{\#define ANLPAR\_10       0x0020  }\textcolor{comment}{/* link partner supports 10bT */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00148}\mbox{\hyperlink{mii_8h_acdb38eca2bd75a4f35bda8bd7dc0420d}{00148}} \textcolor{preprocessor}{\#define ANLPAR\_CSMA     0x0001  }\textcolor{comment}{/* protocol selector CSMA/CD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00149}\mbox{\hyperlink{mii_8h_a85ece3060846c83fda69f587858b458a}{00149}} \textcolor{preprocessor}{\#define ANLPAR\_PAUSE\_MASK       (3 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00150}\mbox{\hyperlink{mii_8h_a4974bbdd9ff4ca60f989410397456bc9}{00150}} \textcolor{preprocessor}{\#define ANLPAR\_PAUSE\_NONE       (0 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00151}\mbox{\hyperlink{mii_8h_ace29d6b3e03143f6749a544661bccb00}{00151}} \textcolor{preprocessor}{\#define ANLPAR\_PAUSE\_SYM        (1 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00152}\mbox{\hyperlink{mii_8h_ab543928d950d068a0a60102c59aa7a08}{00152}} \textcolor{preprocessor}{\#define ANLPAR\_PAUSE\_ASYM       (2 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00153}\mbox{\hyperlink{mii_8h_ae9781cd473ba0e8af956c2f10a09e291}{00153}} \textcolor{preprocessor}{\#define ANLPAR\_PAUSE\_TOWARDS    (3 << 10)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00154}00154 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00155}\mbox{\hyperlink{mii_8h_a83b31007937d8dfffb8405bc10a1eeea}{00155}} \textcolor{preprocessor}{\#define ANLPAR\_X\_FD     0x0020  }\textcolor{comment}{/* local device supports 1000BASE-\/X FD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00156}\mbox{\hyperlink{mii_8h_ac74d7cc9b194fff010bf4effff2ecd9c}{00156}} \textcolor{preprocessor}{\#define ANLPAR\_X\_HD     0x0040  }\textcolor{comment}{/* local device supports 1000BASE-\/X HD */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00157}\mbox{\hyperlink{mii_8h_a79d7de1942c9ea48580348b8011d7770}{00157}} \textcolor{preprocessor}{\#define ANLPAR\_X\_PAUSE\_MASK     (3 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00158}\mbox{\hyperlink{mii_8h_ae037160c7735a00964dd5c4763a21799}{00158}} \textcolor{preprocessor}{\#define ANLPAR\_X\_PAUSE\_NONE     (0 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00159}\mbox{\hyperlink{mii_8h_a723d06446f579e908c711d6b10091295}{00159}} \textcolor{preprocessor}{\#define ANLPAR\_X\_PAUSE\_SYM      (1 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00160}\mbox{\hyperlink{mii_8h_a5db37c217423fc7a413ce1353d4fd080}{00160}} \textcolor{preprocessor}{\#define ANLPAR\_X\_PAUSE\_ASYM     (2 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00161}\mbox{\hyperlink{mii_8h_a5649919ba4c63f24f0e53a4bc867d842}{00161}} \textcolor{preprocessor}{\#define ANLPAR\_X\_PAUSE\_TOWARDS  (3 << 7)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00162}00162 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00163}\mbox{\hyperlink{mii_8h_a6e5634d8831e21f963ddc16b91d5f6b9}{00163}} \textcolor{preprocessor}{\#define MII\_ANER        0x06    }\textcolor{comment}{/* Autonegotiation expansion (ro) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00164}00164                 \textcolor{comment}{/* section 28.2.4.1 and 37.2.6.1 */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00165}\mbox{\hyperlink{mii_8h_ad0b207ee3b17a4077b9678c6d9127366}{00165}} \textcolor{preprocessor}{\#define ANER\_MLF        0x0010  }\textcolor{comment}{/* multiple link detection fault */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00166}\mbox{\hyperlink{mii_8h_a0033b227ad38da3acf222b6fe5d3ca6f}{00166}} \textcolor{preprocessor}{\#define ANER\_LPNP       0x0008  }\textcolor{comment}{/* link parter next page-\/able */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00167}\mbox{\hyperlink{mii_8h_aa238b3f7c0bffcc6fe5752b4fbb1385c}{00167}} \textcolor{preprocessor}{\#define ANER\_NP         0x0004  }\textcolor{comment}{/* next page-\/able */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00168}\mbox{\hyperlink{mii_8h_ab38d3ec3847f3a73efda1f25f6595d74}{00168}} \textcolor{preprocessor}{\#define ANER\_PAGE\_RX    0x0002  }\textcolor{comment}{/* Page received */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00169}\mbox{\hyperlink{mii_8h_a488161bcd5bfbb577d78a4d244a7e6c7}{00169}} \textcolor{preprocessor}{\#define ANER\_LPAN       0x0001  }\textcolor{comment}{/* link parter autoneg-\/able */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00170}00170 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00171}\mbox{\hyperlink{mii_8h_ae14b2e7a5f7aa1b48a6f81849a95888a}{00171}} \textcolor{preprocessor}{\#define MII\_ANNP        0x07    }\textcolor{comment}{/* Autonegotiation next page */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00172}00172                 \textcolor{comment}{/* section 28.2.4.1 and 37.2.6.1 */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00173}00173 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00174}\mbox{\hyperlink{mii_8h_a2b265cac99485cd835aa278970095283}{00174}} \textcolor{preprocessor}{\#define MII\_ANLPRNP     0x08    }\textcolor{comment}{/* Autonegotiation link partner rx next page */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00175}00175                 \textcolor{comment}{/* section 32.5.1 and 37.2.6.1 */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00176}00176 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00177}00177                         \textcolor{comment}{/* This is also the 1000baseT control register */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00178}\mbox{\hyperlink{mii_8h_a17295b0b6d416c072e4fe4d593f42882}{00178}} \textcolor{preprocessor}{\#define MII\_100T2CR     0x09    }\textcolor{comment}{/* 100base-\/T2 control register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00179}\mbox{\hyperlink{mii_8h_ae517593467767d6c0cf80d7d145755c4}{00179}} \textcolor{preprocessor}{\#define GTCR\_TEST\_MASK  0xe000  }\textcolor{comment}{/* see 802.3ab ss. 40.6.1.1.2 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00180}\mbox{\hyperlink{mii_8h_adb9180da2be476b08b85f9f4f331b18d}{00180}} \textcolor{preprocessor}{\#define GTCR\_MAN\_MS     0x1000  }\textcolor{comment}{/* enable manual master/slave control */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00181}\mbox{\hyperlink{mii_8h_a3d7cdf3121ba79b18a1dde71110acbb9}{00181}} \textcolor{preprocessor}{\#define GTCR\_ADV\_MS     0x0800  }\textcolor{comment}{/* 1 = adv. master, 0 = adv. slave */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00182}\mbox{\hyperlink{mii_8h_a8266a3dd6493d3af8dd27d8d39aa5bd9}{00182}} \textcolor{preprocessor}{\#define GTCR\_PORT\_TYPE  0x0400  }\textcolor{comment}{/* 1 = DCE, 0 = DTE (NIC) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00183}\mbox{\hyperlink{mii_8h_ac0c6d14e65e3e49b1cfcb95f0d914ef1}{00183}} \textcolor{preprocessor}{\#define GTCR\_ADV\_1000TFDX 0x0200 }\textcolor{comment}{/* adv. 1000baseT FDX */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00184}\mbox{\hyperlink{mii_8h_a4a266f25c59599c5d226af57878fc1e8}{00184}} \textcolor{preprocessor}{\#define GTCR\_ADV\_1000THDX 0x0100 }\textcolor{comment}{/* adv. 1000baseT HDX */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00185}00185 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00186}00186                         \textcolor{comment}{/* This is also the 1000baseT status register */}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00187}\mbox{\hyperlink{mii_8h_a91e1cbedb89e3b64f611f568ab843b5a}{00187}} \textcolor{preprocessor}{\#define MII\_100T2SR     0x0a    }\textcolor{comment}{/* 100base-\/T2 status register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00188}\mbox{\hyperlink{mii_8h_a90b98c139035b021259b6042e9930d08}{00188}} \textcolor{preprocessor}{\#define GTSR\_MAN\_MS\_FLT 0x8000  }\textcolor{comment}{/* master/slave config fault */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00189}\mbox{\hyperlink{mii_8h_a048ba93f00872845d1f32f3807cfef63}{00189}} \textcolor{preprocessor}{\#define GTSR\_MS\_RES     0x4000  }\textcolor{comment}{/* result: 1 = master, 0 = slave */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00190}\mbox{\hyperlink{mii_8h_a87989c5f4c7a7d8851d420aa45fe1de6}{00190}} \textcolor{preprocessor}{\#define GTSR\_LRS        0x2000  }\textcolor{comment}{/* local rx status, 1 = ok */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00191}\mbox{\hyperlink{mii_8h_a3b479b453880ec711d5d59339e4b53dc}{00191}} \textcolor{preprocessor}{\#define GTSR\_RRS        0x1000  }\textcolor{comment}{/* remote rx status, 1 = ok */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00192}\mbox{\hyperlink{mii_8h_aa452e2fedc9ac783d9f23e9d6a1f0fda}{00192}} \textcolor{preprocessor}{\#define GTSR\_LP\_1000TFDX 0x0800 }\textcolor{comment}{/* link partner 1000baseT FDX capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00193}\mbox{\hyperlink{mii_8h_a50ba9c30ea383c264ecf37873a5daf56}{00193}} \textcolor{preprocessor}{\#define GTSR\_LP\_1000THDX 0x0400 }\textcolor{comment}{/* link partner 1000baseT HDX capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00194}\mbox{\hyperlink{mii_8h_ab4c4961d964dce9f8a6f8ba27ba60811}{00194}} \textcolor{preprocessor}{\#define GTSR\_LP\_ASM\_DIR 0x0200  }\textcolor{comment}{/* link partner asym. pause dir. capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00195}\mbox{\hyperlink{mii_8h_a32d99ea8d79d8fdb24c89d4e5e600c15}{00195}} \textcolor{preprocessor}{\#define GTSR\_IDLE\_ERR   0x00ff  }\textcolor{comment}{/* IDLE error count */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00196}00196 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00197}\mbox{\hyperlink{mii_8h_adfbf73f5d16c1ee7a70f07c09f3688a0}{00197}} \textcolor{preprocessor}{\#define MII\_PSECR       0x0b    }\textcolor{comment}{/* PSE control register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00198}\mbox{\hyperlink{mii_8h_af124ea61fbe7a4c3b792730d35e62ce2}{00198}} \textcolor{preprocessor}{\#define PSECR\_PACTLMASK 0x000c  }\textcolor{comment}{/* pair control mask */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00199}\mbox{\hyperlink{mii_8h_aabdcefa5dae7ca113ca384f310341bed}{00199}} \textcolor{preprocessor}{\#define PSECR\_PSEENMASK 0x0003  }\textcolor{comment}{/* PSE enable mask */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00200}\mbox{\hyperlink{mii_8h_a65ef35740160366faca12978fb6a3f0f}{00200}} \textcolor{preprocessor}{\#define PSECR\_PINOUTB   0x0008  }\textcolor{comment}{/* PSE pinout Alternative B */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00201}\mbox{\hyperlink{mii_8h_a90e1dd643dc11f86a447bb8f2f8d0e6e}{00201}} \textcolor{preprocessor}{\#define PSECR\_PINOUTA   0x0004  }\textcolor{comment}{/* PSE pinout Alternative A */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00202}\mbox{\hyperlink{mii_8h_a70bc64d11d7278de3ee4658240397027}{00202}} \textcolor{preprocessor}{\#define PSECR\_FOPOWTST  0x0002  }\textcolor{comment}{/* Force Power Test Mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00203}\mbox{\hyperlink{mii_8h_ad67633dbc5cb25e31b87a80cb58f93cb}{00203}} \textcolor{preprocessor}{\#define PSECR\_PSEEN     0x0001  }\textcolor{comment}{/* PSE Enabled */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00204}\mbox{\hyperlink{mii_8h_a27b98b02279ab34eb9f187c542d47fb7}{00204}} \textcolor{preprocessor}{\#define PSECR\_PSEDIS    0x0000  }\textcolor{comment}{/* PSE Disabled */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00205}00205 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00206}\mbox{\hyperlink{mii_8h_aea655ee71cb4701bfa2958f0f6457329}{00206}} \textcolor{preprocessor}{\#define MII\_PSESR       0x0c    }\textcolor{comment}{/* PSE status register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00207}\mbox{\hyperlink{mii_8h_a76d3815e8b3b0a044fd71f1a04a7e9de}{00207}} \textcolor{preprocessor}{\#define PSESR\_PWRDENIED 0x1000  }\textcolor{comment}{/* Power Denied */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00208}\mbox{\hyperlink{mii_8h_a781643be8c299b30abd1cd6daaf3c78b}{00208}} \textcolor{preprocessor}{\#define PSESR\_VALSIG    0x0800  }\textcolor{comment}{/* Valid PD signature detected */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00209}\mbox{\hyperlink{mii_8h_a3f6c1da3aff2325dab1aeb97912494a3}{00209}} \textcolor{preprocessor}{\#define PSESR\_INVALSIG  0x0400  }\textcolor{comment}{/* Invalid PD signature detected */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00210}\mbox{\hyperlink{mii_8h_a673d5b576d70b0ef5477524704d10917}{00210}} \textcolor{preprocessor}{\#define PSESR\_SHORTCIRC 0x0200  }\textcolor{comment}{/* Short circuit condition detected */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00211}\mbox{\hyperlink{mii_8h_ad2a570fa203db3fc029c0d8c53a54006}{00211}} \textcolor{preprocessor}{\#define PSESR\_OVERLOAD  0x0100  }\textcolor{comment}{/* Overload condition detected */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00212}\mbox{\hyperlink{mii_8h_a1c5ee5364b93b472936aac0f3c6f799a}{00212}} \textcolor{preprocessor}{\#define PSESR\_MPSABSENT 0x0080  }\textcolor{comment}{/* MPS absent condition detected */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00213}\mbox{\hyperlink{mii_8h_a38a5261862b05d7be459ec6845617b7f}{00213}} \textcolor{preprocessor}{\#define PSESR\_PDCLMASK  0x0070  }\textcolor{comment}{/* PD Class mask */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00214}\mbox{\hyperlink{mii_8h_a7c078ec7a9e66d8d486d0f1a30966c4d}{00214}} \textcolor{preprocessor}{\#define PSESR\_STATMASK  0x000e  }\textcolor{comment}{/* PSE Status mask */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00215}\mbox{\hyperlink{mii_8h_a085be9fcea8e71d3e3f3d7a593d9703e}{00215}} \textcolor{preprocessor}{\#define PSESR\_PAIRCTABL 0x0001  }\textcolor{comment}{/* PAIR Control Ability */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00216}\mbox{\hyperlink{mii_8h_a4d27bcae17f55adb26cb677d6c75e198}{00216}} \textcolor{preprocessor}{\#define PSESR\_PDCL\_4            (4 << 4)        }\textcolor{comment}{/* Class 4 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00217}\mbox{\hyperlink{mii_8h_aea3b17f63979b85d51099712c17701cd}{00217}} \textcolor{preprocessor}{\#define PSESR\_PDCL\_3            (3 << 4)        }\textcolor{comment}{/* Class 3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00218}\mbox{\hyperlink{mii_8h_af9cff39089222ca8e3ec77bc9758cb22}{00218}} \textcolor{preprocessor}{\#define PSESR\_PDCL\_2            (2 << 4)        }\textcolor{comment}{/* Class 2 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00219}\mbox{\hyperlink{mii_8h_a9c8f04e31b57aab42ce9cc44929a6baf}{00219}} \textcolor{preprocessor}{\#define PSESR\_PDCL\_1            (1 << 4)        }\textcolor{comment}{/* Class 1 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00220}\mbox{\hyperlink{mii_8h_a2ca29939a79c080b620a8e936b765eb6}{00220}} \textcolor{preprocessor}{\#define PSESR\_PDCL\_0            (0 << 4)        }\textcolor{comment}{/* Class 0 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00221}00221 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00222}\mbox{\hyperlink{mii_8h_a11b187da59ee54ca744176ffa7655579}{00222}} \textcolor{preprocessor}{\#define MII\_MMDACR      0x0d    }\textcolor{comment}{/* MMD access control register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00223}\mbox{\hyperlink{mii_8h_ae7cc40d29eede39420b11c5997edfbf8}{00223}} \textcolor{preprocessor}{\#define MMDACR\_FUNCMASK 0xc000  }\textcolor{comment}{/* function */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00224}\mbox{\hyperlink{mii_8h_ae5f04186afb72d1bad00eb8fc247d5c2}{00224}} \textcolor{preprocessor}{\#define MMDACR\_DADDRMASK 0x001f }\textcolor{comment}{/* device address */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00225}\mbox{\hyperlink{mii_8h_afedb3bca23596acfa5f7ff486a3f1c80}{00225}} \textcolor{preprocessor}{\#define MMDACR\_FN\_ADDRESS       (0 << 14) }\textcolor{comment}{/* address */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00226}\mbox{\hyperlink{mii_8h_afbfccbf5b8f0b42b58aef62901a97d32}{00226}} \textcolor{preprocessor}{\#define MMDACR\_FN\_DATANPI       (1 << 14) }\textcolor{comment}{/* data, no post increment */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00227}\mbox{\hyperlink{mii_8h_a5340a5a73898c86696deadaee1af28bb}{00227}} \textcolor{preprocessor}{\#define MMDACR\_FN\_DATAPIRW      (2 << 14) }\textcolor{comment}{/* data, post increment on r/w */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00228}\mbox{\hyperlink{mii_8h_a1ab956555560ec39cbd06d341803516e}{00228}} \textcolor{preprocessor}{\#define MMDACR\_FN\_DATAPIW       (3 << 14) }\textcolor{comment}{/* data, post increment on wr only */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00229}00229 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00230}\mbox{\hyperlink{mii_8h_a65b4a8d5c8bb0ca34e26fa10fa53e3d3}{00230}} \textcolor{preprocessor}{\#define MII\_MMDAADR     0x0e    }\textcolor{comment}{/* MMD access address data register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00231}00231 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00232}\mbox{\hyperlink{mii_8h_a615063b2b7e3d314ccf5a8adeb86ffb7}{00232}} \textcolor{preprocessor}{\#define MII\_EXTSR       0x0f    }\textcolor{comment}{/* Extended status register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00233}\mbox{\hyperlink{mii_8h_a769f4bfc7fda27a5f3ef53e0ba26a0b5}{00233}} \textcolor{preprocessor}{\#define EXTSR\_1000XFDX  0x8000  }\textcolor{comment}{/* 1000X full-\/duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00234}\mbox{\hyperlink{mii_8h_a7e0fc4dd2c69abeaaf69ab8043643052}{00234}} \textcolor{preprocessor}{\#define EXTSR\_1000XHDX  0x4000  }\textcolor{comment}{/* 1000X half-\/duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00235}\mbox{\hyperlink{mii_8h_afa6ac41f1e175515207895edd1ca3839}{00235}} \textcolor{preprocessor}{\#define EXTSR\_1000TFDX  0x2000  }\textcolor{comment}{/* 1000T full-\/duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00236}\mbox{\hyperlink{mii_8h_a3f49dbf3b3c4a72194b60c3900285628}{00236}} \textcolor{preprocessor}{\#define EXTSR\_1000THDX  0x1000  }\textcolor{comment}{/* 1000T half-\/duplex capable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00237}00237 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00238}\mbox{\hyperlink{mii_8h_a32b0c4ca3edac502d6bf81f34df26ab7}{00238}} \textcolor{preprocessor}{\#define EXTSR\_MEDIAMASK (EXTSR\_1000XFDX|EXTSR\_1000XHDX| \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00239}00239 \textcolor{preprocessor}{                         EXTSR\_1000TFDX|EXTSR\_1000THDX)}}
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00240}00240 }
\DoxyCodeLine{\Hypertarget{mii_8h_source_l00241}00241 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_DEV\_MII\_MII\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
