GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> VXW / dev > vxw_symbol / rad750


Interface   Data Structures   File List   Data Fields   Globals  

sibSocket.c File Reference

TFFS socket driver for LAT SIB board EEPROM banks. More...

#include <vxWorks.h>
#include <semLib.h>
#include <pci.h>
#include <Memmap.h>
#include <mv2600.h>
#include <tffs/flsocket.h>
#include <tffs/tffsDrv.h>
#include <drv/pci/pciConfigLib.h>
#include <drv/sib/sib.h>

Classes

struct  _SibBoardControl
 SIB board level control structure. More...
struct  _SibBankControl
 SIB/TFFS EEPROM bank control structures. More...
struct  _SibVolumeControl
 SIB/TFFS volume control structure. More...

Defines

#define SIB_SOCKET_LOG(_lev, _msg, _x0, _x1, _x2, _x3, _x4, _x5)
#define SIB_L_EEPROM_BANKS   (2)
#define SIB_L_EEPROM_VOLUMES   (4)
#define SIB_L_EEPROM_KEY   (12)

Typedefs

typedef struct _SibBoardControl SibBoardControl
 Typedef for struct _SibBoardControl.
typedef struct _SibBankControl SibBankControl
 Typedef for struct _SibBankControl.
typedef struct _SibVolumeControl SibVolumeControl
 Typedef for struct _SibVolumeControl.

Functions

LOCAL FLBoolean sibCardDetected (FLSocket *sok)
LOCAL void sibVccOn (FLSocket *sok)
LOCAL void sibVccOff (FLSocket *sok)
LOCAL FLBoolean sibGetAndClearCardChangeIndicator (FLSocket *sok)
LOCAL FLBoolean sibWriteProtected (FLSocket *sok)
LOCAL void sibSetWindow (FLSocket *sok)
LOCAL void sibSetMappingContext (FLSocket *sok, unsigned page)
LOCAL FLStatus sibSocketInit (FLSocket *sok)
LOCAL FLStatus sibVppOn (FLSocket *sok)
LOCAL void sibVppOff (FLSocket *sok)
FLStatus sibRegister (int bus, int dev, int func, int id)
LOCAL void sibSetMappingContext (FLSocket *sok, unsigned int page)

Variables

SibBoardControl sibBoardControl
 Code for unlocking an EEPROM bank for write access.
SibBankControl sibBankControl [SIB_L_EEPROM_BANKS]
 The control blocks for the two EEPROM banks.
SibVolumeControl sibVolumeControl [SIB_L_EEPROM_VOLUMES]
 The control blocks for the four SIB/TTFS volumes.


Detailed Description

TFFS socket driver for LAT SIB board EEPROM banks.

CVS $Id: sibSocket.c,v 1.10 2011/03/24 19:55:14 apw Exp $
Author:
D.L.Wood

A.P.Waite

This is a TFFS socket driver to support the LAT SIB board. Each SIB provides two EEPROM banks. Each bank is mapped twice. The more familiar mapping is the "/ee" mapping which is later fomatted and mounted as a TFFS file system. The second mapping overlays the "boot" section of the "/ee" mapping, providing memory access to the boot partition after the "/ee" mapping is mounted.

Support for the SIB hardware level write locks (one per bank) is provided by the sibVppOn() and sibVppOff() routines.

Warning:
While other parts of the code continue to support the "SIB evaluation board", the routines in this file do not.

Variable Documentation

SibBankControl sibBankControl[SIB_L_EEPROM_BANKS]

Initial value:

The control blocks for the two EEPROM banks.

SibVolumeControl sibVolumeControl[SIB_L_EEPROM_VOLUMES]


Generated on Thu Mar 24 13:04:40 2011 by  doxygen 1.5.8