GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > SIB / V1-3-0

Constituent: sib     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

SIB.h File Reference

SIB Utility Driver. More...

#include "SIB/SIB_msg.h"

Include dependency graph for SIB.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Data Structures

struct  _SIB_Info

Typedefs

typedef _SIB_Info SIB_Info

Functions

unsigned int SIB_query (SIB_Info *info)
 Get SIB addressing information.


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.


Typedef Documentation

SIB_Info
 

The typedef for _SIB_Info.


Function Documentation

unsigned int SIB_query SIB_Info info  ) 
 

Get SIB addressing information.

Obtain the addresses and sizes of the SIB board memory regions and registers. The BSP function pciFindDevice() 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 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 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 cPCI bus and byte ordering must be taken into account on PPC targets.

This function is optimized so that the cPCI bus scan is only done on the first call. Thereafter, a cached copy of the SIB_Info structure is kept.

Parameters:
info Pointer to an SIB information structure filled in upon return.
Returns:
An SIB MSG code.

Here is the call graph for this function:


Generated on Sun Jul 17 03:19:01 2005 by doxygen 1.3.3