\hypertarget{ahd__pci_8c}{}\doxysection{dev/aic7xxx/ahd\+\_\+pci.c File Reference}
\label{ahd__pci_8c}\index{dev/aic7xxx/ahd\_pci.c@{dev/aic7xxx/ahd\_pci.c}}
{\ttfamily \#include $<$sys/cdefs.\+h$>$}\newline
{\ttfamily \#include $<$dev/aic7xxx/aic79xx\+\_\+osm.\+h$>$}\newline
Include dependency graph for ahd\+\_\+pci.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d72/ahd__pci_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{ahd__pci_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
static int \mbox{\hyperlink{ahd__pci_8c_addcf2410b6f6e7ab2cbf508e3332af0e}{ahd\+\_\+pci\+\_\+probe}} (device\+\_\+t dev)
\item 
static int \mbox{\hyperlink{ahd__pci_8c_ace5f55b64c24f8c225102b1a43e69845}{ahd\+\_\+pci\+\_\+attach}} (device\+\_\+t dev)
\item 
\mbox{\hyperlink{ahd__pci_8c_a73fe6d6000e0a23cc1d191e2372f1cf1}{DRIVER\+\_\+\+MODULE}} (ahd, pci, \mbox{\hyperlink{ahd__pci_8c_a77303293162c2f4c9c9e1a46e4fd32eb}{ahd\+\_\+pci\+\_\+driver}}, \mbox{\hyperlink{ahd__pci_8c_acc50462fde874a6d1ef73e124b4cde7a}{ahd\+\_\+devclass}}, 0, 0)
\item 
\mbox{\hyperlink{ahd__pci_8c_afcba28ff0abdb8b4b0e381f835854fe9}{MODULE\+\_\+\+DEPEND}} (ahd\+\_\+pci, ahd, 1, 1, 1)
\item 
\mbox{\hyperlink{ahd__pci_8c_ac788169f625140c1f921cb435d5f3ba9}{MODULE\+\_\+\+VERSION}} (ahd\+\_\+pci, 1)
\item 
int \mbox{\hyperlink{ahd__pci_8c_a3f83f835799c31e5d243cc8c5ddbc7bd}{ahd\+\_\+pci\+\_\+map\+\_\+registers}} (struct \mbox{\hyperlink{structahd__softc}{ahd\+\_\+softc}} $\ast$ahd)
\item 
int \mbox{\hyperlink{ahd__pci_8c_a15e38dcc0d71eace511496cb210a0e34}{ahd\+\_\+pci\+\_\+map\+\_\+int}} (struct \mbox{\hyperlink{structahd__softc}{ahd\+\_\+softc}} $\ast$ahd)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static device\+\_\+method\+\_\+t \mbox{\hyperlink{ahd__pci_8c_aece312a5facd4bf8ec2776c1e2831d7a}{ahd\+\_\+pci\+\_\+device\+\_\+methods}} \mbox{[}$\,$\mbox{]}
\item 
static driver\+\_\+t \mbox{\hyperlink{ahd__pci_8c_a77303293162c2f4c9c9e1a46e4fd32eb}{ahd\+\_\+pci\+\_\+driver}}
\item 
static devclass\+\_\+t \mbox{\hyperlink{ahd__pci_8c_acc50462fde874a6d1ef73e124b4cde7a}{ahd\+\_\+devclass}}
\end{DoxyCompactItemize}


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

\mbox{\Hypertarget{ahd__pci_8c_ace5f55b64c24f8c225102b1a43e69845}\label{ahd__pci_8c_ace5f55b64c24f8c225102b1a43e69845}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_pci\_attach@{ahd\_pci\_attach}}
\index{ahd\_pci\_attach@{ahd\_pci\_attach}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_pci\_attach()}{ahd\_pci\_attach()}}
{\footnotesize\ttfamily static int ahd\+\_\+pci\+\_\+attach (\begin{DoxyParamCaption}\item[{device\+\_\+t}]{dev }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00076}{76}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.



References \mbox{\hyperlink{aic79xx_8h_source_l00373}{AHD\+\_\+39\+BIT\+\_\+\+ADDRESSING}}, \mbox{\hyperlink{aic79xx_8c_source_l05223}{ahd\+\_\+alloc()}}, \mbox{\hyperlink{aic79xx__osm_8c_source_l00213}{ahd\+\_\+attach()}}, \mbox{\hyperlink{aic79xx__pci_8c_source_l00288}{ahd\+\_\+find\+\_\+pci\+\_\+device()}}, \mbox{\hyperlink{aic79xx_8c_source_l05360}{ahd\+\_\+free()}}, \mbox{\hyperlink{aic79xx_8h_source_l00167}{AHD\+\_\+\+MAXTRANSFER\+\_\+\+SIZE}}, \mbox{\hyperlink{aic79xx__osm_8h_source_l00109}{AHD\+\_\+\+NSEG}}, \mbox{\hyperlink{aic79xx__pci_8c_source_l00337}{ahd\+\_\+pci\+\_\+config()}}, \mbox{\hyperlink{aic79xx_8c_source_l05346}{ahd\+\_\+set\+\_\+unit()}}, \mbox{\hyperlink{aic79xx__osm_8c_source_l00153}{ahd\+\_\+sysctl()}}, \mbox{\hyperlink{aic__osm__lib_8h_source_l00115}{aic\+\_\+dma\+\_\+tag\+\_\+create}}, \mbox{\hyperlink{aic79xx_8h_source_l01142}{ahd\+\_\+softc\+::dev\+\_\+softc}}, \mbox{\hyperlink{aic79xx_8h_source_l01197}{ahd\+\_\+softc\+::flags}}, \mbox{\hyperlink{aic79xx_8h_source_l01290}{ahd\+\_\+softc\+::name}}, and \mbox{\hyperlink{aic79xx_8h_source_l01262}{ahd\+\_\+softc\+::parent\+\_\+dmat}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/d5e/ahd__pci_8c_ace5f55b64c24f8c225102b1a43e69845_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ahd__pci_8c_a15e38dcc0d71eace511496cb210a0e34}\label{ahd__pci_8c_a15e38dcc0d71eace511496cb210a0e34}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_pci\_map\_int@{ahd\_pci\_map\_int}}
\index{ahd\_pci\_map\_int@{ahd\_pci\_map\_int}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_pci\_map\_int()}{ahd\_pci\_map\_int()}}
{\footnotesize\ttfamily int ahd\+\_\+pci\+\_\+map\+\_\+int (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structahd__softc}{ahd\+\_\+softc}} $\ast$}]{ahd }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00238}{238}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.



References \mbox{\hyperlink{aic79xx__osm_8c_source_l00195}{ahd\+\_\+map\+\_\+int()}}, \mbox{\hyperlink{aic79xx_8h_source_l01142}{ahd\+\_\+softc\+::dev\+\_\+softc}}, \mbox{\hyperlink{aic79xx__osm_8h_source_l00128}{ahd\+\_\+platform\+\_\+data\+::irq}}, \mbox{\hyperlink{aic79xx__osm_8h_source_l00126}{ahd\+\_\+platform\+\_\+data\+::irq\+\_\+res\+\_\+type}}, and \mbox{\hyperlink{aic79xx_8h_source_l01137}{ahd\+\_\+softc\+::platform\+\_\+data}}.



Referenced by \mbox{\hyperlink{aic79xx__pci_8c_source_l00337}{ahd\+\_\+pci\+\_\+config()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{d3/d5e/ahd__pci_8c_a15e38dcc0d71eace511496cb210a0e34_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/d5e/ahd__pci_8c_a15e38dcc0d71eace511496cb210a0e34_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ahd__pci_8c_a3f83f835799c31e5d243cc8c5ddbc7bd}\label{ahd__pci_8c_a3f83f835799c31e5d243cc8c5ddbc7bd}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_pci\_map\_registers@{ahd\_pci\_map\_registers}}
\index{ahd\_pci\_map\_registers@{ahd\_pci\_map\_registers}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_pci\_map\_registers()}{ahd\_pci\_map\_registers()}}
{\footnotesize\ttfamily int ahd\+\_\+pci\+\_\+map\+\_\+registers (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structahd__softc}{ahd\+\_\+softc}} $\ast$}]{ahd }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00142}{142}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.



References \mbox{\hyperlink{aic79xx_8h_source_l01080}{AHD\+\_\+\+CORRECTABLE\+\_\+\+ERROR}}, \mbox{\hyperlink{aic79xx_8h_source_l01368}{AHD\+\_\+\+PCI\+\_\+\+IOADDR0}}, \mbox{\hyperlink{aic79xx_8h_source_l01370}{AHD\+\_\+\+PCI\+\_\+\+IOADDR1}}, \mbox{\hyperlink{aic79xx_8h_source_l01369}{AHD\+\_\+\+PCI\+\_\+\+MEMADDR}}, \mbox{\hyperlink{aic79xx__pci_8c_source_l00460}{ahd\+\_\+pci\+\_\+test\+\_\+register\+\_\+access()}}, \mbox{\hyperlink{aic79xx_8h_source_l00265}{AHD\+\_\+\+PCIX\+\_\+\+MMAPIO\+\_\+\+BUG}}, \mbox{\hyperlink{aic79xx_8h_source_l01082}{AHD\+\_\+\+UNCORRECTABLE\+\_\+\+ERROR}}, \mbox{\hyperlink{aic79xx_8h_source_l01102}{ahd\+\_\+softc\+::bshs}}, \mbox{\hyperlink{aic79xx_8h_source_l01196}{ahd\+\_\+softc\+::bugs}}, \mbox{\hyperlink{aic79xx_8h_source_l01142}{ahd\+\_\+softc\+::dev\+\_\+softc}}, \mbox{\hyperlink{aic79xx_8h_source_l01137}{ahd\+\_\+softc\+::platform\+\_\+data}}, \mbox{\hyperlink{aic79xx__osm_8h_source_l00127}{ahd\+\_\+platform\+\_\+data\+::regs}}, \mbox{\hyperlink{aic79xx__osm_8h_source_l00125}{ahd\+\_\+platform\+\_\+data\+::regs\+\_\+res\+\_\+id}}, \mbox{\hyperlink{aic79xx__osm_8h_source_l00124}{ahd\+\_\+platform\+\_\+data\+::regs\+\_\+res\+\_\+type}}, and \mbox{\hyperlink{aic79xx_8h_source_l01101}{ahd\+\_\+softc\+::tags}}.



Referenced by \mbox{\hyperlink{aic79xx__pci_8c_source_l00337}{ahd\+\_\+pci\+\_\+config()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/d5e/ahd__pci_8c_a3f83f835799c31e5d243cc8c5ddbc7bd_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/d5e/ahd__pci_8c_a3f83f835799c31e5d243cc8c5ddbc7bd_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ahd__pci_8c_addcf2410b6f6e7ab2cbf508e3332af0e}\label{ahd__pci_8c_addcf2410b6f6e7ab2cbf508e3332af0e}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_pci\_probe@{ahd\_pci\_probe}}
\index{ahd\_pci\_probe@{ahd\_pci\_probe}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_pci\_probe()}{ahd\_pci\_probe()}}
{\footnotesize\ttfamily static int ahd\+\_\+pci\+\_\+probe (\begin{DoxyParamCaption}\item[{device\+\_\+t}]{dev }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00063}{63}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.



References \mbox{\hyperlink{aic79xx__pci_8c_source_l00288}{ahd\+\_\+find\+\_\+pci\+\_\+device()}}, and \mbox{\hyperlink{aic79xx_8h_source_l01377}{ahd\+\_\+pci\+\_\+identity\+::name}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/d5e/ahd__pci_8c_addcf2410b6f6e7ab2cbf508e3332af0e_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ahd__pci_8c_a73fe6d6000e0a23cc1d191e2372f1cf1}\label{ahd__pci_8c_a73fe6d6000e0a23cc1d191e2372f1cf1}} 
\index{ahd\_pci.c@{ahd\_pci.c}!DRIVER\_MODULE@{DRIVER\_MODULE}}
\index{DRIVER\_MODULE@{DRIVER\_MODULE}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{DRIVER\_MODULE()}{DRIVER\_MODULE()}}
{\footnotesize\ttfamily DRIVER\+\_\+\+MODULE (\begin{DoxyParamCaption}\item[{ahd}]{,  }\item[{pci}]{,  }\item[{\mbox{\hyperlink{ahd__pci_8c_a77303293162c2f4c9c9e1a46e4fd32eb}{ahd\+\_\+pci\+\_\+driver}}}]{,  }\item[{\mbox{\hyperlink{ahd__pci_8c_acc50462fde874a6d1ef73e124b4cde7a}{ahd\+\_\+devclass}}}]{,  }\item[{0}]{,  }\item[{0}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{ahd__pci_8c_afcba28ff0abdb8b4b0e381f835854fe9}\label{ahd__pci_8c_afcba28ff0abdb8b4b0e381f835854fe9}} 
\index{ahd\_pci.c@{ahd\_pci.c}!MODULE\_DEPEND@{MODULE\_DEPEND}}
\index{MODULE\_DEPEND@{MODULE\_DEPEND}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{MODULE\_DEPEND()}{MODULE\_DEPEND()}}
{\footnotesize\ttfamily MODULE\+\_\+\+DEPEND (\begin{DoxyParamCaption}\item[{ahd\+\_\+pci}]{,  }\item[{ahd}]{,  }\item[{1}]{,  }\item[{1}]{,  }\item[{1}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{ahd__pci_8c_ac788169f625140c1f921cb435d5f3ba9}\label{ahd__pci_8c_ac788169f625140c1f921cb435d5f3ba9}} 
\index{ahd\_pci.c@{ahd\_pci.c}!MODULE\_VERSION@{MODULE\_VERSION}}
\index{MODULE\_VERSION@{MODULE\_VERSION}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{MODULE\_VERSION()}{MODULE\_VERSION()}}
{\footnotesize\ttfamily MODULE\+\_\+\+VERSION (\begin{DoxyParamCaption}\item[{ahd\+\_\+pci}]{,  }\item[{1}]{ }\end{DoxyParamCaption})}



\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{ahd__pci_8c_acc50462fde874a6d1ef73e124b4cde7a}\label{ahd__pci_8c_acc50462fde874a6d1ef73e124b4cde7a}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_devclass@{ahd\_devclass}}
\index{ahd\_devclass@{ahd\_devclass}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_devclass}{ahd\_devclass}}
{\footnotesize\ttfamily devclass\+\_\+t ahd\+\_\+devclass\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00056}{56}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.

\mbox{\Hypertarget{ahd__pci_8c_aece312a5facd4bf8ec2776c1e2831d7a}\label{ahd__pci_8c_aece312a5facd4bf8ec2776c1e2831d7a}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_pci\_device\_methods@{ahd\_pci\_device\_methods}}
\index{ahd\_pci\_device\_methods@{ahd\_pci\_device\_methods}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_pci\_device\_methods}{ahd\_pci\_device\_methods}}
{\footnotesize\ttfamily device\+\_\+method\+\_\+t ahd\+\_\+pci\+\_\+device\+\_\+methods\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        }
\DoxyCodeLine{        DEVMETHOD(device\_probe,         \mbox{\hyperlink{ahd__pci_8c_addcf2410b6f6e7ab2cbf508e3332af0e}{ahd\_pci\_probe}}),}
\DoxyCodeLine{        DEVMETHOD(device\_attach,        \mbox{\hyperlink{ahd__pci_8c_ace5f55b64c24f8c225102b1a43e69845}{ahd\_pci\_attach}}),}
\DoxyCodeLine{        DEVMETHOD(device\_detach,        \mbox{\hyperlink{aic79xx__osm_8c_abea2aa474e970b0b9ca6d5bb89cf1267}{ahd\_detach}}),}
\DoxyCodeLine{        \{ 0, 0 \}}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00042}{42}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.

\mbox{\Hypertarget{ahd__pci_8c_a77303293162c2f4c9c9e1a46e4fd32eb}\label{ahd__pci_8c_a77303293162c2f4c9c9e1a46e4fd32eb}} 
\index{ahd\_pci.c@{ahd\_pci.c}!ahd\_pci\_driver@{ahd\_pci\_driver}}
\index{ahd\_pci\_driver@{ahd\_pci\_driver}!ahd\_pci.c@{ahd\_pci.c}}
\doxysubsubsection{\texorpdfstring{ahd\_pci\_driver}{ahd\_pci\_driver}}
{\footnotesize\ttfamily driver\+\_\+t ahd\+\_\+pci\+\_\+driver\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{        \textcolor{stringliteral}{"{}ahd"{}},}
\DoxyCodeLine{        \mbox{\hyperlink{ahd__pci_8c_aece312a5facd4bf8ec2776c1e2831d7a}{ahd\_pci\_device\_methods}},}
\DoxyCodeLine{        \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct }\mbox{\hyperlink{structahd__softc}{ahd\_softc}})}
\DoxyCodeLine{\}}

\end{DoxyCode}


Definition at line \mbox{\hyperlink{ahd__pci_8c_source_l00050}{50}} of file \mbox{\hyperlink{ahd__pci_8c_source}{ahd\+\_\+pci.\+c}}.

