\hypertarget{usb__fdt__support_8h_source}{}\doxysection{usb\+\_\+fdt\+\_\+support.\+h}
\label{usb__fdt__support_8h_source}\index{dev/usb/usb\_fdt\_support.h@{dev/usb/usb\_fdt\_support.h}}
\mbox{\hyperlink{usb__fdt__support_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2019 Ian Lepore <ian@FreeBSD.org>}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00006}00006 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00007}00007 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00008}00008 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00009}00009 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00010}00010 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00011}00011 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00012}00012 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00013}00013 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00014}00014 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00015}00015 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00016}00016 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00017}00017 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00018}00018 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00019}00019 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00020}00020 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00021}00021 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00022}00022 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00023}00023 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00024}00024 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00025}00025 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00026}00026 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00027}00027 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00028}00028 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00029}00029 }
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00030}00030 \textcolor{preprocessor}{\#ifndef \_USB\_FDT\_SUPPORT\_H\_}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00031}00031 \textcolor{preprocessor}{\#define \_USB\_FDT\_SUPPORT\_H\_}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00033}00033 \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__device}{usb\_device}};}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00034}00034 \textcolor{keyword}{struct }\mbox{\hyperlink{structusb__ether}{usb\_ether}};}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00035}00035 }
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00036}00036 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00037}00037 \textcolor{comment}{ * Get the device's MAC address from the FDT data.  Fills in ue-\/>ue\_eaddr and}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00038}00038 \textcolor{comment}{ * returns 0 on success, otherwise leaves ue\_eaddr untouched and returns}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00039}00039 \textcolor{comment}{ * non-\/zero.  This first attempts to get the address from the "{}mac-\/address"{}}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00040}00040 \textcolor{comment}{ * property, and if that's not valid it tries the "{}local-\/mac-\/address"{} property;}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00041}00041 \textcolor{comment}{ * this matches the linux interpretation of the precedence of those properties.}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00042}00042 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00043}00043 \textcolor{keywordtype}{int} \mbox{\hyperlink{usb__fdt__support_8h_a0a62eef292afd13e4156bebb48a8bd4a}{usb\_fdt\_get\_mac\_addr}}(device\_t dev, \textcolor{keyword}{struct} \mbox{\hyperlink{structusb__ether}{usb\_ether}}* ue);}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00045}00045 \textcolor{comment}{/* Get the FDT node for dev.  Returns -\/1 if dev is not in the FDT data. */}}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00046}00046 phandle\_t \mbox{\hyperlink{usb__fdt__support_8h_ab59b59b51cc78ce83605377c9e95e9f7}{usb\_fdt\_get\_node}}(device\_t dev, \textcolor{keyword}{struct} \mbox{\hyperlink{structusb__device}{usb\_device}}* udev);}
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00047}00047 }
\DoxyCodeLine{\Hypertarget{usb__fdt__support_8h_source_l00048}00048 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
