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

Constituent: sib_boot     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

SIB.c File Reference

Function definitions for SIB utility driver. More...

#include "vxWorks.h"
#include "pci.h"
#include "mv2600.h"
#include "string.h"
#include "drv/pci/pciConfigLib.h"
#include "drv/sib/sib.h"
#include "SIB/SIB.h"
#include "MSG/MSG_pubdefs.h"

Include dependency graph for SIB.c:

Include dependency graph

Defines

#define SIB_MSG(_status, _param)   _msg_report((_status), 0, 1, (_param))
#define SIB_NULL_ADDR   0xffffffff
#define SIB_SUMT_REG_SIZE   0x80

Functions

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


Detailed Description

Function definitions for SIB utility driver.

Author:
D.L. Wood

Define Documentation

#define SIB_MSG _status,
_param   )     _msg_report((_status), 0, 1, (_param))
 

Configuration-dependent message signaller. For boot configuration, a no-op. For application configuration, calls MSG_signal().

Parameters:
_status The variable holding the status code.
_param The message specific parameter value.

#define SIB_NULL_ADDR   0xffffffff
 

A value to use for a missing register address.

#define SIB_SUMT_REG_SIZE   0x80
 

The size in bytes of the Summit internal register memory space.


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:

unsigned int SIB_scan SIB_Info info  )  [static]
 

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. The SIB mapping information is taken from the board PCI configuration header, and any addresses are mapped to local CPU addresses.

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


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