\hypertarget{lxtphyreg_8h_source}{}\doxysection{lxtphyreg.\+h}
\label{lxtphyreg_8h_source}\index{dev/mii/lxtphyreg.h@{dev/mii/lxtphyreg.h}}
\mbox{\hyperlink{lxtphyreg_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00001}00001 \textcolor{comment}{/*      OpenBSD: lxtphyreg.h,v 1.1 1998/11/11 19:34:47 jason Exp        */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00002}00002 \textcolor{comment}{/*      NetBSD: lxtphyreg.h,v 1.1 1998/10/24 00:33:17 thorpej Exp       */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00003}00003 \textcolor{comment}{/*      \$FreeBSD\$       */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00005}00005 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00006}00006 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/NetBSD}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00008}00008 \textcolor{comment}{ * Copyright (c) 1998 The NetBSD Foundation, Inc.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00009}00009 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00010}00010 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00011}00011 \textcolor{comment}{ * This code is derived from software contributed to The NetBSD Foundation}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00012}00012 \textcolor{comment}{ * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00013}00013 \textcolor{comment}{ * NASA Ames Research Center.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00014}00014 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00015}00015 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00016}00016 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00017}00017 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00018}00018 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00019}00019 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00020}00020 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00021}00021 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00022}00022 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00023}00023 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00024}00024 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00025}00025 \textcolor{comment}{ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00026}00026 \textcolor{comment}{ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00027}00027 \textcolor{comment}{ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00028}00028 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00029}00029 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00030}00030 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00031}00031 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00032}00032 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00033}00033 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00034}00034 \textcolor{comment}{ * POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00035}00035 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00037}00037 \textcolor{preprocessor}{\#ifndef \_DEV\_MII\_LXTPHYREG\_H\_}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00038}00038 \textcolor{preprocessor}{\#define \_DEV\_MII\_LXTPHYREG\_H\_}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00040}00040 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00041}00041 \textcolor{comment}{ * LXT970 registers.}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00042}00042 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00044}\mbox{\hyperlink{lxtphyreg_8h_abcbb774f2c00adb55dc58cabcfdba355}{00044}} \textcolor{preprocessor}{\#define MII\_LXTPHY\_MIRROR       0x10    }\textcolor{comment}{/* Mirror register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00045}00045         \textcolor{comment}{/* All bits user-\/defined */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00047}\mbox{\hyperlink{lxtphyreg_8h_a0093c80420ee3e9b0bef20bab35a2692}{00047}} \textcolor{preprocessor}{\#define MII\_LXTPHY\_IER          0x11    }\textcolor{comment}{/* Interrupt Enable Register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00048}\mbox{\hyperlink{lxtphyreg_8h_acdf17101db781b4b3588e79aedfcc05d}{00048}} \textcolor{preprocessor}{\#define IER\_MIIDRVLVL           0x0008  }\textcolor{comment}{/* Rediced MII driver levels */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00049}\mbox{\hyperlink{lxtphyreg_8h_ab99807472dc72d12bf53e0fa0637171e}{00049}} \textcolor{preprocessor}{\#define IER\_LNK\_CRITERIA        0x0004  }\textcolor{comment}{/* Enhanced Link Loss Criteria */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00050}\mbox{\hyperlink{lxtphyreg_8h_aec24dc69078e5c54365c35013c7ea8a3}{00050}} \textcolor{preprocessor}{\#define IER\_INTEN               0x0002  }\textcolor{comment}{/* Interrupt Enable */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00051}\mbox{\hyperlink{lxtphyreg_8h_a2b7452859006cbaaeba913fcfb11e5c4}{00051}} \textcolor{preprocessor}{\#define IER\_TINT                0x0001  }\textcolor{comment}{/* Force Interrupt */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00053}\mbox{\hyperlink{lxtphyreg_8h_a737d21111a0121124474ae2d023bfc09}{00053}} \textcolor{preprocessor}{\#define MII\_LXTPHY\_ISR          0x12    }\textcolor{comment}{/* Interrupt Status Register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00054}\mbox{\hyperlink{lxtphyreg_8h_ada01d4f52eb2b980d547eba00f35f404}{00054}} \textcolor{preprocessor}{\#define ISR\_MINT                0x8000  }\textcolor{comment}{/* MII Interrupt Pending */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00055}\mbox{\hyperlink{lxtphyreg_8h_af20621420d1461f1c70f256e8f7b5daf}{00055}} \textcolor{preprocessor}{\#define ISR\_XTALOK              0x4000  }\textcolor{comment}{/* Clocks OK */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00057}\mbox{\hyperlink{lxtphyreg_8h_a79a0ecfa68fb4a8ffb6d9fbd7ba5993d}{00057}} \textcolor{preprocessor}{\#define MII\_LXTPHY\_CONFIG       0x13    }\textcolor{comment}{/* Configuration Register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00058}\mbox{\hyperlink{lxtphyreg_8h_a20bacab53a9293fbde93a077e6c7b1b0}{00058}} \textcolor{preprocessor}{\#define CONFIG\_TXMIT\_TEST       0x4000  }\textcolor{comment}{/* 100base-\/T Transmit Test */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00059}\mbox{\hyperlink{lxtphyreg_8h_a268a10df903aa62182f10c96fea3bdeb}{00059}} \textcolor{preprocessor}{\#define CONFIG\_REPEATER         0x2000  }\textcolor{comment}{/* Repeater Mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00060}\mbox{\hyperlink{lxtphyreg_8h_ac839ed4ef795877c0cfd4fb68b1ee53b}{00060}} \textcolor{preprocessor}{\#define CONFIG\_MDIO\_INT         0x1000  }\textcolor{comment}{/* Enable intr signalling on MDIO */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00061}\mbox{\hyperlink{lxtphyreg_8h_a0306aba5e57d49fb8be4d910223a9c26}{00061}} \textcolor{preprocessor}{\#define CONFIG\_TPLOOP           0x0800  }\textcolor{comment}{/* Disable 10base-\/T Loopback */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00062}\mbox{\hyperlink{lxtphyreg_8h_a1e0186d96d36933f7f9d9678c85e0457}{00062}} \textcolor{preprocessor}{\#define CONFIG\_SQE              0x0400  }\textcolor{comment}{/* Enable SQE */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00063}\mbox{\hyperlink{lxtphyreg_8h_a1b3025e3a27b112181668dc9bf4669f4}{00063}} \textcolor{preprocessor}{\#define CONFIG\_DISJABBER        0x0200  }\textcolor{comment}{/* Disable Jabber */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00064}\mbox{\hyperlink{lxtphyreg_8h_a33aabb2bf1f84c201f2a530b90fb0d23}{00064}} \textcolor{preprocessor}{\#define CONFIG\_DISLINKTEST      0x0100  }\textcolor{comment}{/* Disable Link Test */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00065}\mbox{\hyperlink{lxtphyreg_8h_ab9916d29f7f3c0ce61e03993c3427a18}{00065}} \textcolor{preprocessor}{\#define CONFIG\_LEDC1            0x0080  }\textcolor{comment}{/* LEDC configuration */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00066}\mbox{\hyperlink{lxtphyreg_8h_ac9243cd5917bfb1298c999015f27735a}{00066}} \textcolor{preprocessor}{\#define CONFIG\_LEDC0            0x0040  }\textcolor{comment}{/* ... */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00067}00067                                         \textcolor{comment}{/* 0 0 LEDC indicates collision */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00068}00068                                         \textcolor{comment}{/* 0 1 LEDC is off */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00069}00069                                         \textcolor{comment}{/* 1 0 LEDC indicates activity */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00070}00070                                         \textcolor{comment}{/* 1 1 LEDC is on */}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00071}\mbox{\hyperlink{lxtphyreg_8h_a8bb04637edd20caffd6d2549d1bbf514}{00071}} \textcolor{preprocessor}{\#define CONFIG\_ADVTXCLK         0x0020  }\textcolor{comment}{/* Advance TX clock */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00072}\mbox{\hyperlink{lxtphyreg_8h_a2f9e59007a6d07cba6d17d6d9fd77929}{00072}} \textcolor{preprocessor}{\#define CONFIG\_5BSYMBOL         0x0010  }\textcolor{comment}{/* 5-\/bit Symbol mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00073}\mbox{\hyperlink{lxtphyreg_8h_a2cc0dac1833de325d06b5c3b564e5b3c}{00073}} \textcolor{preprocessor}{\#define CONFIG\_SCRAMBLER        0x0008  }\textcolor{comment}{/* Bypass scrambler */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00074}\mbox{\hyperlink{lxtphyreg_8h_a23d310dd56410ff56a857d5ddfd573f4}{00074}} \textcolor{preprocessor}{\#define CONFIG\_100BASEFX        0x0004  }\textcolor{comment}{/* 100base-\/FX */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00075}\mbox{\hyperlink{lxtphyreg_8h_ad98f41c7dfeb481efc37a3306b60711f}{00075}} \textcolor{preprocessor}{\#define CONFIG\_TXDISCON         0x0001  }\textcolor{comment}{/* Disconnect TP transmitter */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00076}00076 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00077}\mbox{\hyperlink{lxtphyreg_8h_aebbbaa387a7511507dc51703294a6b67}{00077}} \textcolor{preprocessor}{\#define MII\_LXTPHY\_CSR          0x14    }\textcolor{comment}{/* Chip Status Register */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00078}\mbox{\hyperlink{lxtphyreg_8h_a51c29dd356cee9fc63f86e7e319c54a5}{00078}} \textcolor{preprocessor}{\#define CSR\_LINK                0x2000  }\textcolor{comment}{/* Link is up */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00079}\mbox{\hyperlink{lxtphyreg_8h_aa458953e69deb60c28f7e7837e28b528}{00079}} \textcolor{preprocessor}{\#define CSR\_DUPLEX              0x1000  }\textcolor{comment}{/* Full-\/duplex */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00080}\mbox{\hyperlink{lxtphyreg_8h_a930c7e7182537108a448ceb230d3111c}{00080}} \textcolor{preprocessor}{\#define CSR\_SPEED               0x0800  }\textcolor{comment}{/* 100Mbps */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00081}\mbox{\hyperlink{lxtphyreg_8h_a834e3d398b9ef5955493636d3f498ca6}{00081}} \textcolor{preprocessor}{\#define CSR\_ACOMP               0x0400  }\textcolor{comment}{/* Autonegotiation complete */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00082}\mbox{\hyperlink{lxtphyreg_8h_a14ec600cbcd321f3108b189506226f69}{00082}} \textcolor{preprocessor}{\#define CSR\_PAGERCVD            0x0200  }\textcolor{comment}{/* Link page received */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00083}\mbox{\hyperlink{lxtphyreg_8h_a80d776be70ee75949932b8dfe689afbf}{00083}} \textcolor{preprocessor}{\#define CSR\_LOWVCC              0x0004  }\textcolor{comment}{/* Low Voltage Fault */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00084}00084 }
\DoxyCodeLine{\Hypertarget{lxtphyreg_8h_source_l00085}00085 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_DEV\_MII\_LXTPHYREG\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
