\hypertarget{dwc__hdmi_8h_source}{}\doxysection{dwc\+\_\+hdmi.\+h}
\label{dwc__hdmi_8h_source}\index{dev/hdmi/dwc\_hdmi.h@{dev/hdmi/dwc\_hdmi.h}}
\mbox{\hyperlink{dwc__hdmi_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00002}00002 \textcolor{comment}{ * Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca>}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00004}00004 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00005}00005 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00006}00006 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00007}00007 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00008}00008 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00009}00009 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00010}00010 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00011}00011 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00012}00012 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00013}00013 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00014}00014 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00015}00015 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00016}00016 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00017}00017 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00018}00018 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00019}00019 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00020}00020 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00021}00021 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00022}00022 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00023}00023 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00024}00024 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00025}00025 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00026}00026 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00027}00027 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00028}00028 \textcolor{preprocessor}{\#ifndef \_\_DWC\_HDMI\_H\_\_}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00029}00029 \textcolor{preprocessor}{\#define \_\_DWC\_HDMI\_H\_\_}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00030}00030 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00031}\mbox{\hyperlink{structdwc__hdmi__softc}{00031}} \textcolor{keyword}{struct }\mbox{\hyperlink{structdwc__hdmi__softc}{dwc\_hdmi\_softc}} \{}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00032}\mbox{\hyperlink{structdwc__hdmi__softc_a288bd95d1ccd3c18015fe0e0d164b421}{00032}}         device\_t                \mbox{\hyperlink{structdwc__hdmi__softc_a288bd95d1ccd3c18015fe0e0d164b421}{sc\_dev}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00033}\mbox{\hyperlink{structdwc__hdmi__softc_ab6effead6e69e0ee6d27eaf8b70f3cfc}{00033}}         \textcolor{keyword}{struct }resource         *\mbox{\hyperlink{structdwc__hdmi__softc_ab6effead6e69e0ee6d27eaf8b70f3cfc}{sc\_mem\_res}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00034}\mbox{\hyperlink{structdwc__hdmi__softc_a98678d212330db788a6f8e6077148611}{00034}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{structdwc__hdmi__softc_a98678d212330db788a6f8e6077148611}{sc\_mem\_rid}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00035}\mbox{\hyperlink{structdwc__hdmi__softc_a1b192faa10b4760659c0c3b5e7013f70}{00035}}         uint32\_t                \mbox{\hyperlink{structdwc__hdmi__softc_a1b192faa10b4760659c0c3b5e7013f70}{sc\_reg\_shift}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00036}\mbox{\hyperlink{structdwc__hdmi__softc_a75e8881a39ec1df7bdb6fd36b84145f9}{00036}}         device\_t                (*\mbox{\hyperlink{structdwc__hdmi__softc_a75e8881a39ec1df7bdb6fd36b84145f9}{sc\_get\_i2c\_dev}})(device\_t);}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00038}\mbox{\hyperlink{structdwc__hdmi__softc_adfc014e30fff71abf22b7c3e3ef34767}{00038}}         uint8\_t                 *\mbox{\hyperlink{structdwc__hdmi__softc_adfc014e30fff71abf22b7c3e3ef34767}{sc\_edid}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00039}\mbox{\hyperlink{structdwc__hdmi__softc_a49db1f3616bd0e8df7dadba0b8c8188f}{00039}}         uint8\_t                 \mbox{\hyperlink{structdwc__hdmi__softc_a49db1f3616bd0e8df7dadba0b8c8188f}{sc\_edid\_len}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00040}\mbox{\hyperlink{structdwc__hdmi__softc_a72439a3d181429f1c533c54c4a1a2101}{00040}}         \textcolor{keyword}{struct }intr\_config\_hook \mbox{\hyperlink{structdwc__hdmi__softc_a72439a3d181429f1c533c54c4a1a2101}{sc\_mode\_hook}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00041}\mbox{\hyperlink{structdwc__hdmi__softc_a67544c56d1db419edb792208e2540490}{00041}}         \textcolor{keyword}{struct }\mbox{\hyperlink{hdmi__if_8m_a9ef7c39904c852efd8463752a6e6576e}{videomode}}       \mbox{\hyperlink{structdwc__hdmi__softc_a67544c56d1db419edb792208e2540490}{sc\_mode}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00043}\mbox{\hyperlink{structdwc__hdmi__softc_a08a08f0e68cd8f941ab62ef1e3623b2e}{00043}}         \textcolor{keyword}{struct }edid\_info        \mbox{\hyperlink{structdwc__hdmi__softc_a08a08f0e68cd8f941ab62ef1e3623b2e}{sc\_edid\_info}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00044}\mbox{\hyperlink{structdwc__hdmi__softc_acf790c8b610a3002bf92398fb5430387}{00044}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{structdwc__hdmi__softc_acf790c8b610a3002bf92398fb5430387}{sc\_has\_audio}};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00045}00045 \};}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00047}00047 \textcolor{keyword}{static} \textcolor{keyword}{inline} uint8\_t}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00048}\mbox{\hyperlink{dwc__hdmi_8h_a0e573436ea5f643a519d165e55b91ced}{00048}} \mbox{\hyperlink{dwc__hdmi_8h_a0e573436ea5f643a519d165e55b91ced}{RD1}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structdwc__hdmi__softc}{dwc\_hdmi\_softc}} *sc, bus\_size\_t off)}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00049}00049 \{}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00050}00050         \textcolor{keywordflow}{return} (bus\_read\_1(sc-\/>\mbox{\hyperlink{structdwc__hdmi__softc_ab6effead6e69e0ee6d27eaf8b70f3cfc}{sc\_mem\_res}}, off << sc-\/>\mbox{\hyperlink{structdwc__hdmi__softc_a1b192faa10b4760659c0c3b5e7013f70}{sc\_reg\_shift}}));}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00051}00051 \}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00053}00053 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00054}\mbox{\hyperlink{dwc__hdmi_8h_a4fd1f56db6ecf2db5341f14a4117a4db}{00054}} \mbox{\hyperlink{dwc__hdmi_8h_a4fd1f56db6ecf2db5341f14a4117a4db}{WR1}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structdwc__hdmi__softc}{dwc\_hdmi\_softc}} *sc, bus\_size\_t off, uint8\_t val)}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00055}00055 \{}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00056}00056         bus\_write\_1(sc-\/>\mbox{\hyperlink{structdwc__hdmi__softc_ab6effead6e69e0ee6d27eaf8b70f3cfc}{sc\_mem\_res}}, off << sc-\/>\mbox{\hyperlink{structdwc__hdmi__softc_a1b192faa10b4760659c0c3b5e7013f70}{sc\_reg\_shift}}, val);}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00057}00057 \}}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00059}00059 \textcolor{keywordtype}{int}     \mbox{\hyperlink{dwc__hdmi_8h_ae869dfc5a01414d65f26950371c9da91}{dwc\_hdmi\_get\_edid}}(device\_t, uint8\_t **, uint32\_t *);}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00060}00060 \textcolor{keywordtype}{int}     \mbox{\hyperlink{dwc__hdmi_8h_a14e0db80dc05f93ee2a92201fd478c6a}{dwc\_hdmi\_set\_videomode}}(device\_t, \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{hdmi__if_8m_a9ef7c39904c852efd8463752a6e6576e}{videomode}} *);}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00061}00061 \textcolor{keywordtype}{int}     \mbox{\hyperlink{dwc__hdmi_8h_ab9020cbe3283b8154af697ada0d1917b}{dwc\_hdmi\_init}}(device\_t);}
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00062}00062 }
\DoxyCodeLine{\Hypertarget{dwc__hdmi_8h_source_l00063}00063 \textcolor{preprocessor}{\#endif  }\textcolor{comment}{/* \_\_DWC\_HDMI\_H\_\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
