\hypertarget{dwmmc__altera_8c}{}\doxysection{dev/mmc/host/dwmmc\+\_\+altera.c File Reference}
\label{dwmmc__altera_8c}\index{dev/mmc/host/dwmmc\_altera.c@{dev/mmc/host/dwmmc\_altera.c}}
{\ttfamily \#include $<$sys/cdefs.\+h$>$}\newline
{\ttfamily \#include $<$sys/param.\+h$>$}\newline
{\ttfamily \#include $<$sys/kernel.\+h$>$}\newline
{\ttfamily \#include $<$sys/bus.\+h$>$}\newline
{\ttfamily \#include $<$sys/module.\+h$>$}\newline
{\ttfamily \#include $<$sys/queue.\+h$>$}\newline
{\ttfamily \#include $<$sys/taskqueue.\+h$>$}\newline
{\ttfamily \#include $<$machine/bus.\+h$>$}\newline
{\ttfamily \#include $<$dev/mmc/bridge.\+h$>$}\newline
{\ttfamily \#include $<$dev/mmc/mmc\+\_\+fdt\+\_\+helpers.\+h$>$}\newline
{\ttfamily \#include $<$dev/ofw/ofw\+\_\+bus\+\_\+subr.\+h$>$}\newline
{\ttfamily \#include $<$dev/mmc/host/dwmmc\+\_\+var.\+h$>$}\newline
{\ttfamily \#include \char`\"{}opt\+\_\+mmccam.\+h\char`\"{}}\newline
Include dependency graph for dwmmc\+\_\+altera.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d5/dbc/dwmmc__altera_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{dwmmc__altera_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
static int \mbox{\hyperlink{dwmmc__altera_8c_a393e3a7a0fc458b154fbc319168f9ddf}{altera\+\_\+dwmmc\+\_\+probe}} (device\+\_\+t dev)
\item 
static int \mbox{\hyperlink{dwmmc__altera_8c_af7213e4101fcc89ee1b3438baac39617}{altera\+\_\+dwmmc\+\_\+attach}} (device\+\_\+t dev)
\item 
\mbox{\hyperlink{dwmmc__altera_8c_a8bb6b4b05ae3d65a3df141524ab5d2d1}{DEFINE\+\_\+\+CLASS\+\_\+1}} (altera\+\_\+dwmmc, altera\+\_\+dwmmc\+\_\+driver, \mbox{\hyperlink{dwmmc__altera_8c_a5314d1d928083bcf03cfc5b3338cda41}{altera\+\_\+dwmmc\+\_\+methods}}, sizeof(struct \mbox{\hyperlink{structdwmmc__softc}{dwmmc\+\_\+softc}}), dwmmc\+\_\+driver)
\item 
\mbox{\hyperlink{dwmmc__altera_8c_a56a47c22c779c534c6bd19bb9af28e9c}{DRIVER\+\_\+\+MODULE}} (altera\+\_\+dwmmc, simplebus, altera\+\_\+dwmmc\+\_\+driver, \mbox{\hyperlink{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}{altera\+\_\+dwmmc\+\_\+devclass}}, 0, 0)
\item 
\mbox{\hyperlink{dwmmc__altera_8c_a9ae8bea5f9b420689b4d7dfee703797e}{DRIVER\+\_\+\+MODULE}} (altera\+\_\+dwmmc, ofwbus, altera\+\_\+dwmmc\+\_\+driver, \mbox{\hyperlink{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}{altera\+\_\+dwmmc\+\_\+devclass}}, NULL, NULL)
\item 
\mbox{\hyperlink{dwmmc__altera_8c_ac6a46171cde29453766da31c07575252}{MMC\+\_\+\+DECLARE\+\_\+\+BRIDGE}} (altera\+\_\+dwmmc)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static struct ofw\+\_\+compat\+\_\+data \mbox{\hyperlink{dwmmc__altera_8c_ab1bb129b8c62d8033fbb3adf82f284a0}{compat\+\_\+data}} \mbox{[}$\,$\mbox{]}
\item 
static device\+\_\+method\+\_\+t \mbox{\hyperlink{dwmmc__altera_8c_a5314d1d928083bcf03cfc5b3338cda41}{altera\+\_\+dwmmc\+\_\+methods}} \mbox{[}$\,$\mbox{]}
\item 
static devclass\+\_\+t \mbox{\hyperlink{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}{altera\+\_\+dwmmc\+\_\+devclass}}
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{dwmmc__altera_8c_a8c3ef283470a68cd30afe9b8a72cb60f}\label{dwmmc__altera_8c_a8c3ef283470a68cd30afe9b8a72cb60f}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!\_\_FBSDID@{\_\_FBSDID}}
\index{\_\_FBSDID@{\_\_FBSDID}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{\_\_FBSDID()}{\_\_FBSDID()}}
{\footnotesize\ttfamily \+\_\+\+\_\+\+FBSDID (\begin{DoxyParamCaption}\item[{\char`\"{}\$Free\+BSD\$\char`\"{}}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{dwmmc__altera_8c_af7213e4101fcc89ee1b3438baac39617}\label{dwmmc__altera_8c_af7213e4101fcc89ee1b3438baac39617}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!altera\_dwmmc\_attach@{altera\_dwmmc\_attach}}
\index{altera\_dwmmc\_attach@{altera\_dwmmc\_attach}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{altera\_dwmmc\_attach()}{altera\_dwmmc\_attach()}}
{\footnotesize\ttfamily static int altera\+\_\+dwmmc\+\_\+attach (\begin{DoxyParamCaption}\item[{device\+\_\+t}]{dev }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{dwmmc__altera_8c_source_l00070}{70}} of file \mbox{\hyperlink{dwmmc__altera_8c_source}{dwmmc\+\_\+altera.\+c}}.



References \mbox{\hyperlink{dwmmc__var_8h_source_l00087}{dwmmc\+\_\+softc\+::bus\+\_\+hz}}, \mbox{\hyperlink{dwmmc__var_8h_source_l00054}{dwmmc\+\_\+softc\+::dev}}, \mbox{\hyperlink{dwmmc_8c_source_l00672}{dwmmc\+\_\+attach()}}, \mbox{\hyperlink{dwmmc__var_8h_source_l00067}{dwmmc\+\_\+softc\+::hwtype}}, \mbox{\hyperlink{dwmmc__var_8h_source_l00046}{HWTYPE\+\_\+\+ALTERA}}, and \mbox{\hyperlink{dwmmc__var_8h_source_l00069}{dwmmc\+\_\+softc\+::use\+\_\+pio}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/dd3/dwmmc__altera_8c_af7213e4101fcc89ee1b3438baac39617_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{dwmmc__altera_8c_a393e3a7a0fc458b154fbc319168f9ddf}\label{dwmmc__altera_8c_a393e3a7a0fc458b154fbc319168f9ddf}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!altera\_dwmmc\_probe@{altera\_dwmmc\_probe}}
\index{altera\_dwmmc\_probe@{altera\_dwmmc\_probe}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{altera\_dwmmc\_probe()}{altera\_dwmmc\_probe()}}
{\footnotesize\ttfamily static int altera\+\_\+dwmmc\+\_\+probe (\begin{DoxyParamCaption}\item[{device\+\_\+t}]{dev }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{dwmmc__altera_8c_source_l00054}{54}} of file \mbox{\hyperlink{dwmmc__altera_8c_source}{dwmmc\+\_\+altera.\+c}}.



References \mbox{\hyperlink{dwmmc__altera_8c_source_l00048}{compat\+\_\+data}}.

\mbox{\Hypertarget{dwmmc__altera_8c_a8bb6b4b05ae3d65a3df141524ab5d2d1}\label{dwmmc__altera_8c_a8bb6b4b05ae3d65a3df141524ab5d2d1}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!DEFINE\_CLASS\_1@{DEFINE\_CLASS\_1}}
\index{DEFINE\_CLASS\_1@{DEFINE\_CLASS\_1}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{DEFINE\_CLASS\_1()}{DEFINE\_CLASS\_1()}}
{\footnotesize\ttfamily DEFINE\+\_\+\+CLASS\+\_\+1 (\begin{DoxyParamCaption}\item[{altera\+\_\+dwmmc}]{,  }\item[{altera\+\_\+dwmmc\+\_\+driver}]{,  }\item[{\mbox{\hyperlink{dwmmc__altera_8c_a5314d1d928083bcf03cfc5b3338cda41}{altera\+\_\+dwmmc\+\_\+methods}}}]{,  }\item[{sizeof(struct \mbox{\hyperlink{structdwmmc__softc}{dwmmc\+\_\+softc}})}]{,  }\item[{dwmmc\+\_\+driver}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{dwmmc__altera_8c_a9ae8bea5f9b420689b4d7dfee703797e}\label{dwmmc__altera_8c_a9ae8bea5f9b420689b4d7dfee703797e}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!DRIVER\_MODULE@{DRIVER\_MODULE}}
\index{DRIVER\_MODULE@{DRIVER\_MODULE}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{DRIVER\_MODULE()}{DRIVER\_MODULE()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily DRIVER\+\_\+\+MODULE (\begin{DoxyParamCaption}\item[{altera\+\_\+dwmmc}]{,  }\item[{ofwbus}]{,  }\item[{altera\+\_\+dwmmc\+\_\+driver}]{,  }\item[{\mbox{\hyperlink{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}{altera\+\_\+dwmmc\+\_\+devclass}}}]{,  }\item[{NULL}]{,  }\item[{NULL}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{dwmmc__altera_8c_a56a47c22c779c534c6bd19bb9af28e9c}\label{dwmmc__altera_8c_a56a47c22c779c534c6bd19bb9af28e9c}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!DRIVER\_MODULE@{DRIVER\_MODULE}}
\index{DRIVER\_MODULE@{DRIVER\_MODULE}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{DRIVER\_MODULE()}{DRIVER\_MODULE()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily DRIVER\+\_\+\+MODULE (\begin{DoxyParamCaption}\item[{altera\+\_\+dwmmc}]{,  }\item[{simplebus}]{,  }\item[{altera\+\_\+dwmmc\+\_\+driver}]{,  }\item[{\mbox{\hyperlink{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}{altera\+\_\+dwmmc\+\_\+devclass}}}]{,  }\item[{0}]{,  }\item[{0}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{dwmmc__altera_8c_ac6a46171cde29453766da31c07575252}\label{dwmmc__altera_8c_ac6a46171cde29453766da31c07575252}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!MMC\_DECLARE\_BRIDGE@{MMC\_DECLARE\_BRIDGE}}
\index{MMC\_DECLARE\_BRIDGE@{MMC\_DECLARE\_BRIDGE}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{MMC\_DECLARE\_BRIDGE()}{MMC\_DECLARE\_BRIDGE()}}
{\footnotesize\ttfamily MMC\+\_\+\+DECLARE\+\_\+\+BRIDGE (\begin{DoxyParamCaption}\item[{altera\+\_\+dwmmc}]{ }\end{DoxyParamCaption})}



\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}\label{dwmmc__altera_8c_a0b5bbf55f6f33e1e98bbfb8c6c3a2f52}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!altera\_dwmmc\_devclass@{altera\_dwmmc\_devclass}}
\index{altera\_dwmmc\_devclass@{altera\_dwmmc\_devclass}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{altera\_dwmmc\_devclass}{altera\_dwmmc\_devclass}}
{\footnotesize\ttfamily devclass\+\_\+t altera\+\_\+dwmmc\+\_\+devclass\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{dwmmc__altera_8c_source_l00096}{96}} of file \mbox{\hyperlink{dwmmc__altera_8c_source}{dwmmc\+\_\+altera.\+c}}.

\mbox{\Hypertarget{dwmmc__altera_8c_a5314d1d928083bcf03cfc5b3338cda41}\label{dwmmc__altera_8c_a5314d1d928083bcf03cfc5b3338cda41}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!altera\_dwmmc\_methods@{altera\_dwmmc\_methods}}
\index{altera\_dwmmc\_methods@{altera\_dwmmc\_methods}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{altera\_dwmmc\_methods}{altera\_dwmmc\_methods}}
{\footnotesize\ttfamily device\+\_\+method\+\_\+t altera\+\_\+dwmmc\+\_\+methods\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        }
\DoxyCodeLine{        DEVMETHOD(device\_probe, \mbox{\hyperlink{dwmmc__altera_8c_a393e3a7a0fc458b154fbc319168f9ddf}{altera\_dwmmc\_probe}}),}
\DoxyCodeLine{        DEVMETHOD(device\_attach, \mbox{\hyperlink{dwmmc__altera_8c_af7213e4101fcc89ee1b3438baac39617}{altera\_dwmmc\_attach}}),}
\DoxyCodeLine{}
\DoxyCodeLine{        DEVMETHOD\_END}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{dwmmc__altera_8c_source_l00088}{88}} of file \mbox{\hyperlink{dwmmc__altera_8c_source}{dwmmc\+\_\+altera.\+c}}.

\mbox{\Hypertarget{dwmmc__altera_8c_ab1bb129b8c62d8033fbb3adf82f284a0}\label{dwmmc__altera_8c_ab1bb129b8c62d8033fbb3adf82f284a0}} 
\index{dwmmc\_altera.c@{dwmmc\_altera.c}!compat\_data@{compat\_data}}
\index{compat\_data@{compat\_data}!dwmmc\_altera.c@{dwmmc\_altera.c}}
\doxysubsubsection{\texorpdfstring{compat\_data}{compat\_data}}
{\footnotesize\ttfamily struct ofw\+\_\+compat\+\_\+data compat\+\_\+data\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        \{\textcolor{stringliteral}{"{}altr,socfpga-\/dw-\/mshc"{}},        1\},}
\DoxyCodeLine{        \{NULL,                          0\},}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{dwmmc__altera_8c_source_l00048}{48}} of file \mbox{\hyperlink{dwmmc__altera_8c_source}{dwmmc\+\_\+altera.\+c}}.



Referenced by \mbox{\hyperlink{dwmmc__altera_8c_source_l00054}{altera\+\_\+dwmmc\+\_\+probe()}}.

