\hypertarget{if__cdcereg_8h_source}{}\doxysection{if\+\_\+cdcereg.\+h}
\label{if__cdcereg_8h_source}\index{dev/usb/net/if\_cdcereg.h@{dev/usb/net/if\_cdcereg.h}}
\mbox{\hyperlink{if__cdcereg_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/4-\/Clause}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2003-\/2005 Craig Boston}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00015}00015 \textcolor{comment}{ * 3. All advertising materials mentioning features or use of this software}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00016}00016 \textcolor{comment}{ *    must display the following acknowledgement:}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00017}00017 \textcolor{comment}{ *      This product includes software developed by Bill Paul.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00018}00018 \textcolor{comment}{ * 4. Neither the name of the author nor the names of any co-\/contributors}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00019}00019 \textcolor{comment}{ *    may be used to endorse or promote products derived from this software}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00020}00020 \textcolor{comment}{ *    without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00021}00021 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00022}00022 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00023}00023 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00024}00024 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00025}00025 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul, THE VOICES IN HIS HEAD OR}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00026}00026 \textcolor{comment}{ * THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00027}00027 \textcolor{comment}{ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00028}00028 \textcolor{comment}{ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00029}00029 \textcolor{comment}{ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00030}00030 \textcolor{comment}{ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00031}00031 \textcolor{comment}{ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00032}00032 \textcolor{comment}{ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00033}00033 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00034}00034 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00035}00035 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00037}00037 \textcolor{preprocessor}{\#ifndef \_USB\_IF\_CDCEREG\_H\_}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00038}00038 \textcolor{preprocessor}{\#define \_USB\_IF\_CDCEREG\_H\_}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00040}\mbox{\hyperlink{if__cdcereg_8h_a948378ac5eb1d5a01aa8902116fa9a51}{00040}} \textcolor{preprocessor}{\#define CDCE\_BIT(x) (1 << (x))}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00041}00041 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00042}\mbox{\hyperlink{if__cdcereg_8h_afdce30dbe51f292bddd6c141f9ffb7e9}{00042}} \textcolor{preprocessor}{\#define CDCE\_FRAMES\_MAX 8               }\textcolor{comment}{/* units */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00043}\mbox{\hyperlink{if__cdcereg_8h_ae2aad7c5bb90340513a9434f835e83da}{00043}} \textcolor{preprocessor}{\#define CDCE\_IND\_SIZE\_MAX 32            }\textcolor{comment}{/* bytes */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00045}\mbox{\hyperlink{if__cdcereg_8h_a0dce16bb1c4e9ec31c296e440ba0c279}{00045}} \textcolor{preprocessor}{\#define CDCE\_NCM\_TX\_MINLEN 512          }\textcolor{comment}{/* bytes, must be power of two */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00046}\mbox{\hyperlink{if__cdcereg_8h_ab4cc1720be692b552bd7adbab288b8a4}{00046}} \textcolor{preprocessor}{\#define CDCE\_NCM\_TX\_MAXLEN (16384 + 4)  }\textcolor{comment}{/* bytes, must be short terminated */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00047}\mbox{\hyperlink{if__cdcereg_8h_a8a9bf9d6335e00f5de6e9c1ef2447368}{00047}} \textcolor{preprocessor}{\#define CDCE\_NCM\_TX\_FRAMES\_MAX 8        }\textcolor{comment}{/* units */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00048}00048 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00049}\mbox{\hyperlink{if__cdcereg_8h_a22c1f182e84a6d640c0842f204e0c253}{00049}} \textcolor{preprocessor}{\#define CDCE\_NCM\_RX\_MAXLEN (1UL << 14)  }\textcolor{comment}{/* bytes */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00050}\mbox{\hyperlink{if__cdcereg_8h_a5be3d9952b38268e2d18757d39cae84d}{00050}} \textcolor{preprocessor}{\#define CDCE\_NCM\_RX\_FRAMES\_MAX 1        }\textcolor{comment}{/* units */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00052}\mbox{\hyperlink{if__cdcereg_8h_ad60192daa69f20fea7c2e400d398b828}{00052}} \textcolor{preprocessor}{\#define CDCE\_NCM\_SUBFRAMES\_MAX 32       }\textcolor{comment}{/* units */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00053}00053 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00054}\mbox{\hyperlink{if__cdcereg_8h_a8045cec2c325f0a6c2040b90b03b7bbc}{00054}} \textcolor{preprocessor}{\#define CDCE\_NCM\_ALIGN(rem,off,mod) \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00055}00055 \textcolor{preprocessor}{    ((uint32\_t)(((uint32\_t)(rem)) -\/ \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00056}00056 \textcolor{preprocessor}{    ((uint32\_t)((-\/(uint32\_t)(off)) \& (-\/(uint32\_t)(mod))))))}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00058}00058 \textcolor{preprocessor}{\#ifndef CDCE\_HAVE\_NCM}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00059}\mbox{\hyperlink{if__cdcereg_8h_a6865a43990170621f3849009dec51ff0}{00059}} \textcolor{preprocessor}{\#define CDCE\_HAVE\_NCM 1}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00060}00060 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00062}00062 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00063}\mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebba5331be8dd528d1d4f8129ebaaf8db6ca}{00063}}         \mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebba5331be8dd528d1d4f8129ebaaf8db6ca}{CDCE\_BULK\_RX}},}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00064}\mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebbab3e10d3c699cba5e09f98102210fa396}{00064}}         \mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebbab3e10d3c699cba5e09f98102210fa396}{CDCE\_BULK\_TX}},}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00065}\mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebba42093ef445c4851628e012e43a5cb82b}{00065}}         \mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebba42093ef445c4851628e012e43a5cb82b}{CDCE\_INTR\_RX}},}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00066}\mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebba9a7021b98ecff790c2d49f338c96d80c}{00066}}         \mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebba9a7021b98ecff790c2d49f338c96d80c}{CDCE\_INTR\_TX}},}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00067}\mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebbadc64b4a6cdcbad56a6166dab7f638999}{00067}}         \mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebbadc64b4a6cdcbad56a6166dab7f638999}{CDCE\_N\_TRANSFER}},}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00068}00068 \};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00069}00069 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00070}\mbox{\hyperlink{structcdce__ncm}{00070}} \textcolor{keyword}{struct }\mbox{\hyperlink{structcdce__ncm}{cdce\_ncm}} \{}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00071}\mbox{\hyperlink{structcdce__ncm_a674b43e75a7cefa5906746c8cce1d20c}{00071}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ncm16__hdr}{usb\_ncm16\_hdr}} \mbox{\hyperlink{structcdce__ncm_a674b43e75a7cefa5906746c8cce1d20c}{hdr}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00072}\mbox{\hyperlink{structcdce__ncm_ad9df18f980b9a21c354027236fadeaaa}{00072}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ncm16__dpt}{usb\_ncm16\_dpt}} \mbox{\hyperlink{structcdce__ncm_ad9df18f980b9a21c354027236fadeaaa}{dpt}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00073}\mbox{\hyperlink{structcdce__ncm_afd8f116d08ee7cca4a7f9ab34999e435}{00073}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ncm16__dp}{usb\_ncm16\_dp}} \mbox{\hyperlink{structcdce__ncm_afd8f116d08ee7cca4a7f9ab34999e435}{dp}}[\mbox{\hyperlink{if__cdcereg_8h_ad60192daa69f20fea7c2e400d398b828}{CDCE\_NCM\_SUBFRAMES\_MAX}}];}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00074}\mbox{\hyperlink{structcdce__ncm_a22571716f993c132359ec9d04243d3cd}{00074}}         uint32\_t \mbox{\hyperlink{structcdce__ncm_a22571716f993c132359ec9d04243d3cd}{rx\_max}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00075}\mbox{\hyperlink{structcdce__ncm_ab34bcb2969d8e92bc9b2e43384a81640}{00075}}         uint32\_t \mbox{\hyperlink{structcdce__ncm_ab34bcb2969d8e92bc9b2e43384a81640}{tx\_max}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00076}\mbox{\hyperlink{structcdce__ncm_a062039bdb3e71ac3b963e7d0ee8979dc}{00076}}         uint16\_t \mbox{\hyperlink{structcdce__ncm_a062039bdb3e71ac3b963e7d0ee8979dc}{tx\_remainder}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00077}\mbox{\hyperlink{structcdce__ncm_ade7164ff7ecc830b196394f7658113c7}{00077}}         uint16\_t \mbox{\hyperlink{structcdce__ncm_ade7164ff7ecc830b196394f7658113c7}{tx\_modulus}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00078}\mbox{\hyperlink{structcdce__ncm_a565b9b658cda0df9b32223c6d182e618}{00078}}         uint16\_t \mbox{\hyperlink{structcdce__ncm_a565b9b658cda0df9b32223c6d182e618}{tx\_struct\_align}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00079}\mbox{\hyperlink{structcdce__ncm_af0d9186b8a7d34ee256733020dc8c963}{00079}}         uint16\_t \mbox{\hyperlink{structcdce__ncm_af0d9186b8a7d34ee256733020dc8c963}{tx\_seq}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00080}\mbox{\hyperlink{structcdce__ncm_af488096751e3e44afec9def4063a91b1}{00080}}         uint16\_t \mbox{\hyperlink{structcdce__ncm_af488096751e3e44afec9def4063a91b1}{tx\_nframe}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00081}00081 \};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00083}\mbox{\hyperlink{structcdce__softc}{00083}} \textcolor{keyword}{struct }\mbox{\hyperlink{structcdce__softc}{cdce\_softc}} \{}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00084}\mbox{\hyperlink{structcdce__softc_a50e1557d2c510c9328672740e0983432}{00084}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ether}{usb\_ether}}       \mbox{\hyperlink{structcdce__softc_a50e1557d2c510c9328672740e0983432}{sc\_ue}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00085}\mbox{\hyperlink{structcdce__softc_ab8dfcec06ca3e2a2bd812093d8454cde}{00085}}         \textcolor{keyword}{struct }mtx              \mbox{\hyperlink{structcdce__softc_ab8dfcec06ca3e2a2bd812093d8454cde}{sc\_mtx}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00086}00086 \textcolor{preprocessor}{\#if CDCE\_HAVE\_NCM}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00087}\mbox{\hyperlink{structcdce__softc_a0fd3134889514ea1b8eb21976e9807bd}{00087}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structcdce__ncm}{cdce\_ncm}}         \mbox{\hyperlink{structcdce__softc_a0fd3134889514ea1b8eb21976e9807bd}{sc\_ncm}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00088}00088 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00089}\mbox{\hyperlink{structcdce__softc_acc6f20d28043254ddab320a95ec13fdd}{00089}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__xfer}{usb\_xfer}} *\mbox{\hyperlink{structcdce__softc_acc6f20d28043254ddab320a95ec13fdd}{sc\_xfer}}[\mbox{\hyperlink{if__cdcereg_8h_a0ed680fdb405e7195d9f14032851eebbadc64b4a6cdcbad56a6166dab7f638999}{CDCE\_N\_TRANSFER}}];}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00090}\mbox{\hyperlink{structcdce__softc_a9b8c0b4eb8d24f896ba2529de4d6023e}{00090}}         \textcolor{keyword}{struct }mbuf             *\mbox{\hyperlink{structcdce__softc_a9b8c0b4eb8d24f896ba2529de4d6023e}{sc\_rx\_buf}}[\mbox{\hyperlink{if__cdcereg_8h_afdce30dbe51f292bddd6c141f9ffb7e9}{CDCE\_FRAMES\_MAX}}];}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00091}\mbox{\hyperlink{structcdce__softc_a7359404b420da7c3fd7416dce96e93c2}{00091}}         \textcolor{keyword}{struct }mbuf             *\mbox{\hyperlink{structcdce__softc_a7359404b420da7c3fd7416dce96e93c2}{sc\_tx\_buf}}[\mbox{\hyperlink{if__cdcereg_8h_afdce30dbe51f292bddd6c141f9ffb7e9}{CDCE\_FRAMES\_MAX}}];}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00092}00092 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00093}\mbox{\hyperlink{structcdce__softc_a4f4306dd0fd042f69b2961537a32dd3d}{00093}}         \textcolor{keyword}{struct }ifmedia          \mbox{\hyperlink{structcdce__softc_a4f4306dd0fd042f69b2961537a32dd3d}{sc\_media}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00094}00094 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00095}\mbox{\hyperlink{structcdce__softc_a8dab4a82e9f6274d0b3ec9fa37017df2}{00095}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{structcdce__softc_a8dab4a82e9f6274d0b3ec9fa37017df2}{sc\_flags}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00096}\mbox{\hyperlink{if__cdcereg_8h_a27ceb2fcb886ed9601ab3db8836d0141}{00096}} \textcolor{preprocessor}{\#define CDCE\_FLAG\_ZAURUS        0x0001}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00097}\mbox{\hyperlink{if__cdcereg_8h_a72577377c3ccfd88aa9c22343bd09e2c}{00097}} \textcolor{preprocessor}{\#define CDCE\_FLAG\_NO\_UNION      0x0002}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00098}\mbox{\hyperlink{if__cdcereg_8h_aab84aa6e2d73911dd9f1e52c4cb2f171}{00098}} \textcolor{preprocessor}{\#define CDCE\_FLAG\_RX\_DATA       0x0010}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00099}\mbox{\hyperlink{if__cdcereg_8h_add30c5917f75a6f7ed836130d3f4c20d}{00099}} \textcolor{preprocessor}{\#define CDCE\_FLAG\_VLAN          0x0020}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00100}00100 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00101}\mbox{\hyperlink{structcdce__softc_aaacc8f21bfdcd21f4d79bc8639556cb8}{00101}}         uint8\_t \mbox{\hyperlink{structcdce__softc_aaacc8f21bfdcd21f4d79bc8639556cb8}{sc\_eaddr\_str\_index}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00102}\mbox{\hyperlink{structcdce__softc_aa80d5eff0ef10fb2c47acdcf1878eebf}{00102}}         uint8\_t \mbox{\hyperlink{structcdce__softc_aa80d5eff0ef10fb2c47acdcf1878eebf}{sc\_ifaces\_index}}[2];}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00103}\mbox{\hyperlink{structcdce__softc_a9d7d1b10b848ee06511fad7c4a830628}{00103}}         uint8\_t \mbox{\hyperlink{structcdce__softc_a9d7d1b10b848ee06511fad7c4a830628}{sc\_notify\_state}};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00104}\mbox{\hyperlink{if__cdcereg_8h_ae5557e1df5881a652b9c51b234cd9a78}{00104}} \textcolor{preprocessor}{\#define CDCE\_NOTIFY\_NETWORK\_CONNECTION  0}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00105}\mbox{\hyperlink{if__cdcereg_8h_a5733958a6180cc939ad5bda45764c62b}{00105}} \textcolor{preprocessor}{\#define CDCE\_NOTIFY\_SPEED\_CHANGE        1}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00106}\mbox{\hyperlink{if__cdcereg_8h_a3b514c7d62cbeab576a8a0979c35babf}{00106}} \textcolor{preprocessor}{\#define CDCE\_NOTIFY\_DONE                2}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00107}00107 \};}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00108}00108 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00109}00109 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00110}00110 \textcolor{comment}{ * Taken from USB CDC Subclass Specification for Ethernet Devices v1.2,}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00111}00111 \textcolor{comment}{ * section 6.2.4.}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00112}00112 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00113}00113 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00114}\mbox{\hyperlink{if__cdcereg_8h_a5776aef3d254f11c1b6cca8b9c25ea77}{00114}} \textcolor{preprocessor}{\#define CDC\_SET\_ETHERNET\_PACKET\_FILTER  0x43    }\textcolor{comment}{/* Command code. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00115}00115 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00116}\mbox{\hyperlink{if__cdcereg_8h_af2eaf93c791e5734fa2cd42cc6cd9e04}{00116}} \textcolor{preprocessor}{\#define CDC\_PACKET\_TYPE\_PROMISC         CDCE\_BIT(0)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00117}\mbox{\hyperlink{if__cdcereg_8h_a3cd843ef710a03cefa0cdb666386d92a}{00117}} \textcolor{preprocessor}{\#define CDC\_PACKET\_TYPE\_ALL\_MULTICAST   CDCE\_BIT(1)     }\textcolor{comment}{/* Allmulti. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00118}\mbox{\hyperlink{if__cdcereg_8h_aac72aae77cade3739cfc325f75418f6b}{00118}} \textcolor{preprocessor}{\#define CDC\_PACKET\_TYPE\_DIRECTED        CDCE\_BIT(2)     }\textcolor{comment}{/* Filter unicast by mac. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00119}\mbox{\hyperlink{if__cdcereg_8h_a7cccbc4472a8abc8c803f1f0a5d167f6}{00119}} \textcolor{preprocessor}{\#define CDC\_PACKET\_TYPE\_BROADCAST       CDCE\_BIT(3)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00120}\mbox{\hyperlink{if__cdcereg_8h_ad0678406955a95a0239694940287e98e}{00120}} \textcolor{preprocessor}{\#define CDC\_PACKET\_TYPE\_MULTICAST       CDCE\_BIT(4)     }\textcolor{comment}{/* Multicast filtering, not supported. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00121}00121 }
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00122}\mbox{\hyperlink{if__cdcereg_8h_a0abaad97f8b981e666269113eda08ecb}{00122}} \textcolor{preprocessor}{\#define CDCE\_LOCK(\_sc)                  mtx\_lock(\&(\_sc)-\/>sc\_mtx)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00123}\mbox{\hyperlink{if__cdcereg_8h_a9dcf1174812054efc34707b401a79a2e}{00123}} \textcolor{preprocessor}{\#define CDCE\_UNLOCK(\_sc)                mtx\_unlock(\&(\_sc)-\/>sc\_mtx)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00124}\mbox{\hyperlink{if__cdcereg_8h_a6000705c2c4d1e1b85b7b3a4760b0187}{00124}} \textcolor{preprocessor}{\#define CDCE\_LOCK\_ASSERT(\_sc, t)        mtx\_assert(\&(\_sc)-\/>sc\_mtx, t)}}
\DoxyCodeLine{\Hypertarget{if__cdcereg_8h_source_l00125}00125 \textcolor{preprocessor}{\#endif                                  }\textcolor{comment}{/* \_USB\_IF\_CDCEREG\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
