GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> VXW / V7-2-0 > vxw_flight / rad750


Interface   Data Structures   File List   Data Fields   Globals  

ppciMCP.c File Reference

Power PCI bridge MCP (machine check) routines. More...

#include "vxWorks.h"
#include "config.h"
#include "vxLib.h"
#include "intLib.h"
#include "drv/ppci/asmFns.h"
#include "drv/ppci/ppciRegs.h"
#include "drv/ppci/ppciMCP.h"

Functions

int ppciMCPClear (void)
 Clear MCP in the Power PCI bridge.
STATUS sysMemProbe (char *adrs, int mode, int length, char *pVal)
 Safely probe memory addresses.
void ppciMCPInit (void)
 Initialize PowerPCI bridge MCP related resources.


Detailed Description

Power PCI bridge MCP (machine check) routines.

-----------------------------------------------------------------------------

Restrictions:

Change History:

Date Pgm Description -------- --- ------------------------------------------------------ 02/07/00 DS Created.

-----------------------------------------------------------------------------


Function Documentation

int ppciMCPClear ( void   ) 

Clear MCP in the Power PCI bridge.

----------------------------------------------------------------------------

This routine clears the conditions generating the machine check signal in the Power PCI bridge by clearing the 60X error status reg.

Note: If at some time in the future it is determined that further action should be taken upon a machine check (e.g., querying and clear other Power PCI error status regs), this is the place to do it.

Returns:
The contents of the 60X error status prior to being cleared.
----------------------------------------------------------------------------

void ppciMCPInit ( void   ) 

Initialize PowerPCI bridge MCP related resources.

----------------------------------------------------------------------------

This routine is called from ppciInit() to initialize the MCP resources.

----------------------------------------------------------------------------

STATUS sysMemProbe ( char *  adrs,
int  mode,
int  length,
char *  pVal 
)

Safely probe memory addresses.

----------------------------------------------------------------------------

This routine is hooked into VxWorks so that it is called by vxMemProbe rather than vxMemArchProbe. The Power PC vxMemArchProbe has a couple shortcomings when it comes to accessing PCI resources:

Parameters:
adrs Address to probe.
mode Read (0) or write (1).
length Number of bytes: 1, 2 or 4.
pVal Dest for read, data for write.
----------------------------------------------------------------------------


Generated on Fri Jul 24 11:32:24 2009 by  doxygen 1.5.3