\hypertarget{if__urndisreg_8h_source}{}\doxysection{if\+\_\+urndisreg.\+h}
\label{if__urndisreg_8h_source}\index{dev/usb/net/if\_urndisreg.h@{dev/usb/net/if\_urndisreg.h}}
\mbox{\hyperlink{if__urndisreg_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00001}00001 \textcolor{comment}{/*      \$FreeBSD\$ */}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00002}00002 \textcolor{comment}{/*      \$OpenBSD: if\_urndisreg.h,v 1.19 2013/11/21 14:08:05 mpi Exp \$ */}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00003}00003 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00004}00004 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00005}00005 \textcolor{comment}{ * Copyright (c) 2010 Jonathan Armani <armani@openbsd.org>}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 2010 Fabien Romano <fabien@openbsd.org>}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00007}00007 \textcolor{comment}{ * Copyright (c) 2010 Michael Knudsen <mk@openbsd.org>}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00008}00008 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00009}00009 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00010}00010 \textcolor{comment}{ * Permission to use, copy, modify, and distribute this software for any}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00011}00011 \textcolor{comment}{ * purpose with or without fee is hereby granted, provided that the above}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00012}00012 \textcolor{comment}{ * copyright notice and this permission notice appear in all copies.}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00013}00013 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00014}00014 \textcolor{comment}{ * THE SOFTWARE IS PROVIDED "{}AS IS"{} AND THE AUTHOR DISCLAIMS ALL WARRANTIES}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00015}00015 \textcolor{comment}{ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00016}00016 \textcolor{comment}{ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00017}00017 \textcolor{comment}{ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00018}00018 \textcolor{comment}{ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00019}00019 \textcolor{comment}{ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00020}00020 \textcolor{comment}{ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00021}00021 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00022}00022 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00023}00023 \textcolor{preprocessor}{\#ifndef \_IF\_URNDISREG\_H\_}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00024}00024 \textcolor{preprocessor}{\#define \_IF\_URNDISREG\_H\_}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00025}00025 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00026}\mbox{\hyperlink{if__urndisreg_8h_aee080bfebb9af8704c63d373ced77d64}{00026}} \textcolor{preprocessor}{\#define RNDIS\_RESPONSE\_LEN      1024    }\textcolor{comment}{/* bytes */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00027}\mbox{\hyperlink{if__urndisreg_8h_a477c72e82ae22615d5379ab947782a9f}{00027}} \textcolor{preprocessor}{\#define RNDIS\_RX\_MAXLEN         (16 * 1024)}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00028}\mbox{\hyperlink{if__urndisreg_8h_a332c122a09645fb98663969dca75ae2a}{00028}} \textcolor{preprocessor}{\#define RNDIS\_TX\_FRAMES\_MAX     8}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00029}\mbox{\hyperlink{if__urndisreg_8h_aeffe59019822466e458e9deef6bd4e28}{00029}} \textcolor{preprocessor}{\#define RNDIS\_TX\_MAXLEN         MCLBYTES}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00030}00030 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00031}00031 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00032}\mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798a6e9e14712b37f666312e45c34b13d3b2}{00032}}         \mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798a6e9e14712b37f666312e45c34b13d3b2}{URNDIS\_BULK\_RX}},}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00033}\mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798ace958cd7cf38373a814842abaa5975c2}{00033}}         \mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798ace958cd7cf38373a814842abaa5975c2}{URNDIS\_BULK\_TX}},}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00034}\mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798a823ef05351167219366d0c881fb1deb6}{00034}}         \mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798a823ef05351167219366d0c881fb1deb6}{URNDIS\_INTR\_RX}},}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00035}\mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798abd01fc7b0ecbbb8fc54905d9a1851524}{00035}}         \mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798abd01fc7b0ecbbb8fc54905d9a1851524}{URNDIS\_N\_TRANSFER}},}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00036}00036 \};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00038}\mbox{\hyperlink{structurndis__softc}{00038}} \textcolor{keyword}{struct }\mbox{\hyperlink{structurndis__softc}{urndis\_softc}} \{}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00039}\mbox{\hyperlink{structurndis__softc_ad75db19a6a33cebdb8774c827286292f}{00039}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ether}{usb\_ether}} \mbox{\hyperlink{structurndis__softc_ad75db19a6a33cebdb8774c827286292f}{sc\_ue}};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00040}\mbox{\hyperlink{structurndis__softc_ad7a2ac7d8353aaa309a567955c73f95d}{00040}}         \textcolor{keyword}{struct }mtx \mbox{\hyperlink{structurndis__softc_ad7a2ac7d8353aaa309a567955c73f95d}{sc\_mtx}};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00041}00041 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00042}00042         \textcolor{comment}{/* RNDIS device info */}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00043}\mbox{\hyperlink{structurndis__softc_a3b408dfebabb31557fa2adc73ab75a75}{00043}}         uint32\_t \mbox{\hyperlink{structurndis__softc_a3b408dfebabb31557fa2adc73ab75a75}{sc\_lim\_pktsz}};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00044}\mbox{\hyperlink{structurndis__softc_af1de6e4b7edf34106082d05e268fc1da}{00044}}         uint32\_t \mbox{\hyperlink{structurndis__softc_af1de6e4b7edf34106082d05e268fc1da}{sc\_filter}};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00045}00045 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00046}\mbox{\hyperlink{structurndis__softc_ae146b86fa30b8d8ebc3a53c318915836}{00046}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__device}{usb\_device}} *\mbox{\hyperlink{structurndis__softc_ae146b86fa30b8d8ebc3a53c318915836}{sc\_udev}};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00047}\mbox{\hyperlink{structurndis__softc_a5d243b7e171f57353fcbb61485946ed8}{00047}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__xfer}{usb\_xfer}} *\mbox{\hyperlink{structurndis__softc_a5d243b7e171f57353fcbb61485946ed8}{sc\_xfer}}[\mbox{\hyperlink{if__urndisreg_8h_a77867ab4129f63159b37bca3b652a798abd01fc7b0ecbbb8fc54905d9a1851524}{URNDIS\_N\_TRANSFER}}];}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00048}00048 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00049}\mbox{\hyperlink{structurndis__softc_ae12a0d1e9869eb678bba40313b5aaf9e}{00049}}         uint8\_t \mbox{\hyperlink{structurndis__softc_ae12a0d1e9869eb678bba40313b5aaf9e}{sc\_ifaceno\_ctl}};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00050}\mbox{\hyperlink{structurndis__softc_afa4fab43d851fac17ef32ef56ed47258}{00050}}         uint8\_t sc\_response\_buf[\mbox{\hyperlink{if__urndisreg_8h_aee080bfebb9af8704c63d373ced77d64}{RNDIS\_RESPONSE\_LEN}}] \mbox{\hyperlink{structurndis__softc_afa4fab43d851fac17ef32ef56ed47258}{\_\_aligned}}(4);}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00051}00051 \};}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00053}\mbox{\hyperlink{if__urndisreg_8h_ab25cda2ccf9d3900f1c5f37da0d33fb5}{00053}} \textcolor{preprocessor}{\#define URNDIS\_LOCK(sc) mtx\_lock(\&(sc)-\/>sc\_mtx)}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00054}\mbox{\hyperlink{if__urndisreg_8h_a1f312c181578d13c7c8465668966c022}{00054}} \textcolor{preprocessor}{\#define URNDIS\_UNLOCK(sc) mtx\_unlock(\&(sc)-\/>sc\_mtx)}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00055}\mbox{\hyperlink{if__urndisreg_8h_a46968c8852c4093a176502585054bad2}{00055}} \textcolor{preprocessor}{\#define URNDIS\_LOCK\_ASSERT(sc, what) mtx\_assert(\&(sc)-\/>sc\_mtx, (what))}}
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{if__urndisreg_8h_source_l00057}00057 \textcolor{preprocessor}{\#endif                                  }\textcolor{comment}{/* \_IF\_URNDISREG\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
