\hypertarget{if__kuereg_8h_source}{}\doxysection{if\+\_\+kuereg.\+h}
\label{if__kuereg_8h_source}\index{dev/usb/net/if\_kuereg.h@{dev/usb/net/if\_kuereg.h}}
\mbox{\hyperlink{if__kuereg_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/4-\/Clause}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 1997, 1998, 1999, 2000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00005}00005 \textcolor{comment}{ *      Bill Paul <wpaul@ee.columbia.edu>.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00015}00015 \textcolor{comment}{ * 3. All advertising materials mentioning features or use of this software}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00016}00016 \textcolor{comment}{ *    must display the following acknowledgement:}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00017}00017 \textcolor{comment}{ *      This product includes software developed by Bill Paul.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00018}00018 \textcolor{comment}{ * 4. Neither the name of the author nor the names of any co-\/contributors}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00019}00019 \textcolor{comment}{ *    may be used to endorse or promote products derived from this software}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00020}00020 \textcolor{comment}{ *    without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00021}00021 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00022}00022 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00023}00023 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00024}00024 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00025}00025 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00026}00026 \textcolor{comment}{ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00027}00027 \textcolor{comment}{ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00028}00028 \textcolor{comment}{ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00029}00029 \textcolor{comment}{ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00030}00030 \textcolor{comment}{ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00031}00031 \textcolor{comment}{ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00032}00032 \textcolor{comment}{ * THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00033}00033 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00034}00034 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00035}00035 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00037}00037 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00038}00038 \textcolor{comment}{ * Definitions for the KLSI KL5KUSB101B USB to ethernet controller.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00039}00039 \textcolor{comment}{ * The KLSI part is controlled via vendor control requests, the structure}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00040}00040 \textcolor{comment}{ * of which depend a bit on the firmware running on the internal}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00041}00041 \textcolor{comment}{ * microcontroller.  The one exception is the 'send scan data' command,}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00042}00042 \textcolor{comment}{ * which is used to load the firmware.}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00043}00043 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00045}\mbox{\hyperlink{if__kuereg_8h_a2d5d111e1e2147014c9a3ae271c804c2}{00045}} \textcolor{preprocessor}{\#define KUE\_CMD\_GET\_ETHER\_DESCRIPTOR            0x00}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00046}\mbox{\hyperlink{if__kuereg_8h_ac89f76d174e887948a3f1ea4edab7a57}{00046}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_MCAST\_FILTERS               0x01}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00047}\mbox{\hyperlink{if__kuereg_8h_a81bb357acecfcfd09dbd52ef1c16b620}{00047}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_PKT\_FILTER                  0x02}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00048}\mbox{\hyperlink{if__kuereg_8h_a289b8533689c6bba315f7ae0d3cab7a4}{00048}} \textcolor{preprocessor}{\#define KUE\_CMD\_GET\_ETHERSTATS                  0x03}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00049}\mbox{\hyperlink{if__kuereg_8h_a82422e024fc430053f209d80ef1c4610}{00049}} \textcolor{preprocessor}{\#define KUE\_CMD\_GET\_GPIO                        0x04}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00050}\mbox{\hyperlink{if__kuereg_8h_a985ac5d85a0e29c18619be53e6ac8d1c}{00050}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_GPIO                        0x05}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00051}\mbox{\hyperlink{if__kuereg_8h_a91c68fac7c1e70286bde17115d184921}{00051}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_MAC                         0x06}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00052}\mbox{\hyperlink{if__kuereg_8h_a53d411905aa9c14c56ebae4d7e5c0a4a}{00052}} \textcolor{preprocessor}{\#define KUE\_CMD\_GET\_MAC                         0x07}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00053}\mbox{\hyperlink{if__kuereg_8h_a5fb836e288a08fb4495ed6bdc7014e16}{00053}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_URB\_SIZE                    0x08}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00054}\mbox{\hyperlink{if__kuereg_8h_ad19d9ce256efd6ea1d5da602f3f681a5}{00054}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_SOFS                        0x09}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00055}\mbox{\hyperlink{if__kuereg_8h_a5c31a5c7f1ab9af3ca151ee0fb73392c}{00055}} \textcolor{preprocessor}{\#define KUE\_CMD\_SET\_EVEN\_PKTS                   0x0A}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00056}\mbox{\hyperlink{if__kuereg_8h_a9b5f3c87bc3a5163fc75bbcc180cb936}{00056}} \textcolor{preprocessor}{\#define KUE\_CMD\_SEND\_SCAN                       0xFF}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00058}\mbox{\hyperlink{structkue__ether__desc}{00058}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkue__ether__desc}{kue\_ether\_desc}} \{}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00059}\mbox{\hyperlink{structkue__ether__desc_ae265b4c39bd1c9e4d6f0048f331ae09c}{00059}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_ae265b4c39bd1c9e4d6f0048f331ae09c}{kue\_len}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00060}\mbox{\hyperlink{structkue__ether__desc_a426bd6cec2c828ffbd231aa10ee33bd9}{00060}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_a426bd6cec2c828ffbd231aa10ee33bd9}{kue\_rsvd0}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00061}\mbox{\hyperlink{structkue__ether__desc_afc3f6829a2922193c1adc8d846d8c4e1}{00061}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_afc3f6829a2922193c1adc8d846d8c4e1}{kue\_rsvd1}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00062}\mbox{\hyperlink{structkue__ether__desc_a57bd9009bdc333ec3230062a44c790ef}{00062}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_a57bd9009bdc333ec3230062a44c790ef}{kue\_macaddr}}[ETHER\_ADDR\_LEN];}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00063}\mbox{\hyperlink{structkue__ether__desc_a77b5eab881a6e336f30c66628efe43a9}{00063}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_a77b5eab881a6e336f30c66628efe43a9}{kue\_etherstats}}[4];}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00064}\mbox{\hyperlink{structkue__ether__desc_a8e037d1be798e1e6b68f72f0eaedac82}{00064}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_a8e037d1be798e1e6b68f72f0eaedac82}{kue\_maxseg}}[2];}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00065}\mbox{\hyperlink{structkue__ether__desc_a5fd9081a1cbe4f5f4a8d0202a8ffd68c}{00065}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_a5fd9081a1cbe4f5f4a8d0202a8ffd68c}{kue\_mcastfilt}}[2];}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00066}\mbox{\hyperlink{structkue__ether__desc_ad20d870dd86294aa23715d3a6602e6d0}{00066}}         uint8\_t \mbox{\hyperlink{structkue__ether__desc_ad20d870dd86294aa23715d3a6602e6d0}{kue\_rsvd2}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00067}\mbox{\hyperlink{if__kuereg_8h_a5a179e80af5e9813804cc8aa438a8da7}{00067}} \} \mbox{\hyperlink{if__kuereg_8h_a5a179e80af5e9813804cc8aa438a8da7}{\_\_packed}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00068}00068 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00069}\mbox{\hyperlink{if__kuereg_8h_a34852302c81c3acec3cf64a252cc92d2}{00069}} \textcolor{preprocessor}{\#define KUE\_ETHERSTATS(x)       UGETDW((x)-\/>sc\_desc.kue\_etherstats)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00070}\mbox{\hyperlink{if__kuereg_8h_a2c01139484c2e21f6fd68a0b6626c241}{00070}} \textcolor{preprocessor}{\#define KUE\_MAXSEG(x)           UGETW((x)-\/>sc\_desc.kue\_maxseg)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00071}\mbox{\hyperlink{if__kuereg_8h_a8fa04cd8c9f8bac569a797c9187ebe65}{00071}} \textcolor{preprocessor}{\#define KUE\_MCFILTCNT(x)        (UGETW((x)-\/>sc\_desc.kue\_mcastfilt) \& 0x7FFF)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00072}\mbox{\hyperlink{if__kuereg_8h_a29039e03ec234bb141c3e299efdc2454}{00072}} \textcolor{preprocessor}{\#define KUE\_MCFILT(x, y)        \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00073}00073 \textcolor{preprocessor}{        (char *)\&(sc-\/>sc\_mcfilters[y * ETHER\_ADDR\_LEN])}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00074}00074 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00075}\mbox{\hyperlink{if__kuereg_8h_ae4a0b4948bfdd4308974063d3f9b69be}{00075}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_OK                  0x00000001}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00076}\mbox{\hyperlink{if__kuereg_8h_a2e9fb3ccfd783cca92d839deb3cee9fd}{00076}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_OK                  0x00000002}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00077}\mbox{\hyperlink{if__kuereg_8h_a32c96f010f98463d0edff6bc00dbb19d}{00077}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_ERR                 0x00000004}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00078}\mbox{\hyperlink{if__kuereg_8h_ae6ba1d4c88adb6f3d0865c8bf6f6e8b5}{00078}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_ERR                 0x00000008}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00079}\mbox{\hyperlink{if__kuereg_8h_a297020d3362608867da153a37171e682}{00079}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_NOBUF               0x00000010}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00080}\mbox{\hyperlink{if__kuereg_8h_a0d5228538bc7d9bb9cb0fbee64625553}{00080}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_UCAST\_BYTES         0x00000020}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00081}\mbox{\hyperlink{if__kuereg_8h_aad8f0611da806fe0a8b6626b236df26a}{00081}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_UCAST\_FRAMES        0x00000040}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00082}\mbox{\hyperlink{if__kuereg_8h_a0a27fd93f0192224f1e41a0c07bb9887}{00082}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_MCAST\_BYTES         0x00000080}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00083}\mbox{\hyperlink{if__kuereg_8h_a9fab1151dcef40c3fb2f851582c233a1}{00083}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_MCAST\_FRAMES        0x00000100}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00084}\mbox{\hyperlink{if__kuereg_8h_ad27c47e33463726125a0c218ada0a1f0}{00084}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_BCAST\_BYTES         0x00000200}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00085}\mbox{\hyperlink{if__kuereg_8h_a69a69bda8f6398e95e2e31d6a02f3016}{00085}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_BCAST\_FRAMES        0x00000400}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00086}\mbox{\hyperlink{if__kuereg_8h_ae17cdabc80ab4068daca8ebb5a36020c}{00086}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_UCAST\_BYTES         0x00000800}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00087}\mbox{\hyperlink{if__kuereg_8h_a9b0385ff919e3af75bf69f99ac0461ae}{00087}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_UCAST\_FRAMES        0x00001000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00088}\mbox{\hyperlink{if__kuereg_8h_ac4e6fcd15557890d669b76149b65bcba}{00088}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_MCAST\_BYTES         0x00002000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00089}\mbox{\hyperlink{if__kuereg_8h_a73a7f5cb2e1fa4e998cc55a37af99687}{00089}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_MCAST\_FRAMES        0x00004000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00090}\mbox{\hyperlink{if__kuereg_8h_a5085c0528a2911abf0b0945592ffb3b7}{00090}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_BCAST\_BYTES         0x00008000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00091}\mbox{\hyperlink{if__kuereg_8h_a53ae03ae479930f9b7441542b7cc46f3}{00091}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_BCAST\_FRAMES        0x00010000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00092}\mbox{\hyperlink{if__kuereg_8h_a8dc003f7089a8c8a9870f355b35bce5f}{00092}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_CRCERR              0x00020000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00093}\mbox{\hyperlink{if__kuereg_8h_ac5b0049c47d7abcb05b2e33839e1fc98}{00093}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_QUEUE\_LENGTH        0x00040000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00094}\mbox{\hyperlink{if__kuereg_8h_af8b3e396e7d92aa37cabdd88499243dd}{00094}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_ALIGNERR            0x00080000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00095}\mbox{\hyperlink{if__kuereg_8h_a26e23d86d1d084ff8093c58816650186}{00095}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_SINGLECOLL          0x00100000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00096}\mbox{\hyperlink{if__kuereg_8h_a22e5e52dc844f8caeed00d37cf7a5d19}{00096}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_MULTICOLL           0x00200000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00097}\mbox{\hyperlink{if__kuereg_8h_a1726eb25d9228795e34b6f831dd96276}{00097}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_DEFERRED            0x00400000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00098}\mbox{\hyperlink{if__kuereg_8h_a1ef77accc905c8a970733b640577b4ba}{00098}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_MAXCOLLS            0x00800000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00099}\mbox{\hyperlink{if__kuereg_8h_a479cafc51f210d6f270adcf0a3fba173}{00099}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_OVERRUN             0x01000000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00100}\mbox{\hyperlink{if__kuereg_8h_a97221bc90ae02b31b478aab6aa199203}{00100}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_UNDERRUN            0x02000000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00101}\mbox{\hyperlink{if__kuereg_8h_ab1ac1652bf494b3777b88b225b843348}{00101}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_SQE\_ERR             0x04000000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00102}\mbox{\hyperlink{if__kuereg_8h_ad1c4849caca797ee8a5b68b95daa3cd1}{00102}} \textcolor{preprocessor}{\#define KUE\_STAT\_TX\_CARRLOSS            0x08000000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00103}\mbox{\hyperlink{if__kuereg_8h_a73a975af672bd597cda4d919d4497370}{00103}} \textcolor{preprocessor}{\#define KUE\_STAT\_RX\_LATECOLL            0x10000000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00104}00104 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00105}\mbox{\hyperlink{if__kuereg_8h_a9edcf51257283c2b761917d6217d0992}{00105}} \textcolor{preprocessor}{\#define KUE\_RXFILT\_PROMISC              0x0001}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00106}\mbox{\hyperlink{if__kuereg_8h_ae63900d4bf03fe562b87d5b82fdf8e47}{00106}} \textcolor{preprocessor}{\#define KUE\_RXFILT\_ALLMULTI             0x0002}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00107}\mbox{\hyperlink{if__kuereg_8h_a7390ed89833640a592a5998410c7220a}{00107}} \textcolor{preprocessor}{\#define KUE\_RXFILT\_UNICAST              0x0004}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00108}\mbox{\hyperlink{if__kuereg_8h_a331591595baae1ff06d2558fda50fd38}{00108}} \textcolor{preprocessor}{\#define KUE\_RXFILT\_BROADCAST            0x0008}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00109}\mbox{\hyperlink{if__kuereg_8h_ad5fdc5e3f15bda09c3986bd8e987e9d6}{00109}} \textcolor{preprocessor}{\#define KUE\_RXFILT\_MULTICAST            0x0010}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00110}00110 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00111}\mbox{\hyperlink{if__kuereg_8h_af549a20076d3e2ca2ff81fcefd371cd6}{00111}} \textcolor{preprocessor}{\#define KUE\_TIMEOUT             1000}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00112}\mbox{\hyperlink{if__kuereg_8h_ab15b730332491665ae32dcf862d24567}{00112}} \textcolor{preprocessor}{\#define KUE\_MIN\_FRAMELEN        60}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00113}00113 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00114}\mbox{\hyperlink{if__kuereg_8h_aacf1e9fdf175a01ac25f70a94b3723f5}{00114}} \textcolor{preprocessor}{\#define KUE\_CTL\_READ            0x01}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00115}\mbox{\hyperlink{if__kuereg_8h_a6d569ef80e61c692b1f889ca2a973b46}{00115}} \textcolor{preprocessor}{\#define KUE\_CTL\_WRITE           0x02}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00116}00116 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00117}\mbox{\hyperlink{if__kuereg_8h_a184faed4e42eb8e6741a94ccc92417a3}{00117}} \textcolor{preprocessor}{\#define KUE\_CONFIG\_IDX          0       }\textcolor{comment}{/* config number 1 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00118}\mbox{\hyperlink{if__kuereg_8h_a735f9bb5fd63b00d19abbb5824a5e27e}{00118}} \textcolor{preprocessor}{\#define KUE\_IFACE\_IDX           0}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00119}00119 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00120}00120 \textcolor{comment}{/* The interrupt endpoint is currently unused by the KLSI part. */}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00121}\mbox{\hyperlink{if__kuereg_8h_ab9c8727fc7756f0b19260d5afff8737b}{00121}} \textcolor{preprocessor}{\#define KUE\_ENDPT\_MAX           4}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00122}00122 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00123}\mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4a72c54992fcfb4d7221e1c0bbbac11fcf}{00123}}         \mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4a72c54992fcfb4d7221e1c0bbbac11fcf}{KUE\_BULK\_DT\_WR}},}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00124}\mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4a7893432a5457c186730f555fc86077d1}{00124}}         \mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4a7893432a5457c186730f555fc86077d1}{KUE\_BULK\_DT\_RD}},}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00125}\mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4aaebf14cd8506254452ea1c47ca594fd6}{00125}}         \mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4aaebf14cd8506254452ea1c47ca594fd6}{KUE\_N\_TRANSFER}},}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00126}00126 \};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00127}00127 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00128}\mbox{\hyperlink{structkue__softc}{00128}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkue__softc}{kue\_softc}} \{}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00129}\mbox{\hyperlink{structkue__softc_a027b16457b838ceb6cc6ea97d0cc4b50}{00129}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ether}{usb\_ether}}       \mbox{\hyperlink{structkue__softc_a027b16457b838ceb6cc6ea97d0cc4b50}{sc\_ue}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00130}\mbox{\hyperlink{structkue__softc_ad4bd691d19f96100ed5dab40ef6a789c}{00130}}         \textcolor{keyword}{struct }mtx              \mbox{\hyperlink{structkue__softc_ad4bd691d19f96100ed5dab40ef6a789c}{sc\_mtx}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00131}\mbox{\hyperlink{structkue__softc_a12632288f0a3072d5df5ccceb9666c40}{00131}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structkue__ether__desc}{kue\_ether\_desc}}     \mbox{\hyperlink{structkue__softc_a12632288f0a3072d5df5ccceb9666c40}{sc\_desc}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00132}\mbox{\hyperlink{structkue__softc_ac450ed0b2c6471311db9c344c356c24d}{00132}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__xfer}{usb\_xfer}} *\mbox{\hyperlink{structkue__softc_ac450ed0b2c6471311db9c344c356c24d}{sc\_xfer}}[\mbox{\hyperlink{if__kuereg_8h_a4caf8d8f829279fba122163d961608a4aaebf14cd8506254452ea1c47ca594fd6}{KUE\_N\_TRANSFER}}];}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00133}\mbox{\hyperlink{structkue__softc_ae68420a91c698baefac72e31654ae014}{00133}}         uint8\_t                 *\mbox{\hyperlink{structkue__softc_ae68420a91c698baefac72e31654ae014}{sc\_mcfilters}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00134}00134 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00135}\mbox{\hyperlink{structkue__softc_a0429dd261cd61e488783db15080c5308}{00135}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{structkue__softc_a0429dd261cd61e488783db15080c5308}{sc\_flags}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00136}\mbox{\hyperlink{if__kuereg_8h_ab87cc228718aa9c42616447d1dacb070}{00136}} \textcolor{preprocessor}{\#define KUE\_FLAG\_LINK           0x0001}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00137}00137 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00138}\mbox{\hyperlink{structkue__softc_abde8c5ea43457a952f9c4adcb309778e}{00138}}         uint16\_t                \mbox{\hyperlink{structkue__softc_abde8c5ea43457a952f9c4adcb309778e}{sc\_rxfilt}};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00139}00139 \};}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00140}00140 }
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00141}\mbox{\hyperlink{if__kuereg_8h_a112a35e06b0969d47409aa9689708847}{00141}} \textcolor{preprocessor}{\#define KUE\_LOCK(\_sc)           mtx\_lock(\&(\_sc)-\/>sc\_mtx)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00142}\mbox{\hyperlink{if__kuereg_8h_ae0ef7465e206765a85eed5dba87217c9}{00142}} \textcolor{preprocessor}{\#define KUE\_UNLOCK(\_sc)         mtx\_unlock(\&(\_sc)-\/>sc\_mtx)}}
\DoxyCodeLine{\Hypertarget{if__kuereg_8h_source_l00143}\mbox{\hyperlink{if__kuereg_8h_aaef6c8ac4c868b51f9f25397ea03369f}{00143}} \textcolor{preprocessor}{\#define KUE\_LOCK\_ASSERT(\_sc, t) mtx\_assert(\&(\_sc)-\/>sc\_mtx, t)}}

\end{DoxyCode}
