\hypertarget{SIB_8h}{
\section{SIB.h File Reference}
\label{SIB_8h}\index{SIB.h@{SIB.h}}
}
SIB Utility Driver.  


{\tt \#include \char`\"{}SIB/SIB\_\-msg.h\char`\"{}}\par


Include dependency graph for SIB.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{SIB_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=35pt]{SIB_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct \hyperlink{struct__SIB__Info}{\_\-SIB\_\-Info}
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef \hyperlink{struct__SIB__Info}{\_\-SIB\_\-Info} \hyperlink{SIB_8h_a0}{SIB\_\-Info}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{SIB_8h_a1}{SIB\_\-query} (\hyperlink{struct__SIB__Info}{SIB\_\-Info} $\ast$info)
\begin{CompactList}\small\item\em Get SIB addressing information. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
SIB Utility Driver. 

This driver provides a small set of functions for handling the interface to the SIB. Because the SIB board contains such a diverse set of hardware functions, this driver simply provides the basics, such a board discovery and address configuration.

\subsection{Typedef Documentation}
\hypertarget{SIB_8h_a0}{
\index{SIB.h@{SIB.h}!SIB_Info@{SIB\_\-Info}}
\index{SIB_Info@{SIB\_\-Info}!SIB.h@{SIB.h}}
\subsubsection[SIB\_\-Info]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{struct__SIB__Info}{SIB\_\-Info}}}
\label{SIB_8h_a0}


The typedef for \hyperlink{struct__SIB__Info}{\_\-SIB\_\-Info}. 

\subsection{Function Documentation}
\hypertarget{SIB_8h_a1}{
\index{SIB.h@{SIB.h}!SIB_query@{SIB\_\-query}}
\index{SIB_query@{SIB\_\-query}!SIB.h@{SIB.h}}
\subsubsection[SIB\_\-query]{\setlength{\rightskip}{0pt plus 5cm}unsigned int SIB\_\-query (\hyperlink{struct__SIB__Info}{SIB\_\-Info} $\ast$ {\em info})}}
\label{SIB_8h_a1}


Get SIB addressing information. 

Obtain the addresses and sizes of the SIB board memory regions and registers. The BSP function pci\-Find\-Device() is used to scan the bus for an SIB board. Both the flight/EM model and evaluation model SIB boards are recognized. This function only supports a single instance of the SIB board on the PCI bus, so the first board found is queried. The {\em info\/} structure is filled in with the SIB hardware values upon success. Because the evaluation model SIB board does not include the PDU/GASU or heater control hardware, those registers are marked with address 0xffffffff.

The addresses which are returned in the {\em info\/} structure are already mapped into CPU local address space and ready for direct use by client drivers. Users should note, however, that the SIB memory regions reside on the little-endian c\-PCI bus and byte ordering must be taken into account on PPC targets.

This function is optimized so that the c\-PCI bus scan is only done on the first call. Thereafter, a cached copy of the \hyperlink{SIB_8h_a0}{SIB\_\-Info} structure is kept.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em info}]Pointer to an SIB information structure filled in upon return.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]An SIB MSG code.\end{Desc}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=104pt]{SIB_8h_a1_cgraph}
\end{center}
\end{figure}
