GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > SIB / V1-3-0
Constituent: sib_boot     Tag: rad750
#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:
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. |
|
Configuration-dependent message signaller. For boot configuration, a no-op. For application configuration, calls MSG_signal().
|
|
A value to use for a missing register address. |
|
The size in bytes of the Summit internal register memory space. |
|
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.
|
Here is the call graph for this function:
|
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.
|