GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FBS / V0-3-1 > fbs_rtos / rad750


Interface   Data Structures   File List   Data Fields   Globals  

FBS_map.c.vx-xxx-cpci File Reference

Pseudo device driver for the memory mapped files. More...

#include <ioLib.h>
#include <string.h>
#include <sys/stat.h>
#include <tffs/tffsDrv.h>
#include <Memmap.h>
#include <FBS/FBS_msgs.h>
#include <FBS/FBS_pubrtos.h>
#include <MDB/MDB_pubdefs.h>
#include <FBS_mapdefs.h>
#include <FBS_prvrtos.h>

Functions

static int memFileClose (FILE_MemFile *fil)
static int memFileCreate (FILE_MemDevice *dvc, const char *sfx, int flg, int mod)
static int memFileDelete (void)
static int memFileIoctl (FILE_MemFile *fil, int fnc, int arg)
static int memFileOpen (FILE_MemDevice *dvc, const char *sfx, int flg, int mod)
static int memFileRead (FILE_MemFile *fil, unsigned char *buf, size_t byt)
static int memFileWrite (FILE_MemFile *fil, unsigned char *buf, size_t byt)
static int ramIO (FILE_MemFile *fil, unsigned char *buf, size_t byt)
static int sibIO (FILE_MemFile *fil, unsigned char *buf, size_t byt)
const char * FILE_getMemDeviceName (unsigned int ddx)
FILE_MemFileControlFILE_getMemFileControl ()
const char * FILE_getMemFileName (unsigned int fdx)
unsigned int FILE_sysMemMount ()

Variables

static const FILE_MemFileConfig memFileConfigRam [FILE_L_MEM_FILES]
 How to get at the offsets/sizes for the memory mapped segments in RAM.
static const FILE_MemFileConfig memFileConfigTffs [FILE_L_MEM_FILES]
 How to get at the offsets/sizes for the memory mapped segments in TFFS.
const char * FILE_memDeviceName [FILE_L_MEM_DEVICES]
 Names of the known devices.
const char * FILE_memFileName [FILE_L_MEM_FILES]
 Names of the known memory mapped files in memory map order.
static FILE_MemFileControl FILE_memFileControl
 The memory mapped file control block instantiation.
static FILE_MemFileControlmcb
 The memory mapped file control block pointer.


Detailed Description

Pseudo device driver for the memory mapped files.

CVS $Id: FBS_map.c.vx-xxx-cpci,v 1.3 2011/03/24 21:24:42 apw Exp $
Author:
A.P.Waite

Variable Documentation

const char * FILE_memDeviceName[FILE_L_MEM_DEVICES]

Initial value:

 
{
    FILE_DEV_NAME_MEM,   
    FILE_DEV_NAME_MM0,   
    FILE_DEV_NAME_MM1    
}
Names of the known devices.

const char * FILE_memFileName[FILE_L_MEM_FILES]

Initial value:

 
{
    "/d001/f0000000",    
    "/d009/f0000000",    
    "/d008/f0000000"     
}
Names of the known memory mapped files in memory map order.

static const FILE_MemFileConfig memFileConfigRam[FILE_L_MEM_FILES] [static]

Initial value:

{
  {    PBC_RAM_LAST_RTOS_ADRS,           PBC_RAM_LAST_RTOS_SIZE             },
  {  MEMMAP_SBC_RAM_MOD0_ADRS,           MEMMAP_SBC_RAM_MOD0_SIZE           },
  {  MEMMAP_SBC_RAM_MOD1_ADRS,           MEMMAP_SBC_RAM_MOD1_SIZE           },
}
How to get at the offsets/sizes for the memory mapped segments in RAM.

static const FILE_MemFileConfig memFileConfigTffs[FILE_L_MEM_FILES] [static]

Initial value:

{
  { (MEMMAP_BHDR_RTOS_PTR_OFFSET >> 2), (MEMMAP_BHDR_RTOS_SIZE_OFFSET >> 2) },
  { (MEMMAP_BHDR_SEG0_PTR_OFFSET >> 2), (MEMMAP_BHDR_SEG0_SIZE_OFFSET >> 2) },
  { (MEMMAP_BHDR_SEG1_PTR_OFFSET >> 2), (MEMMAP_BHDR_SEG1_SIZE_OFFSET >> 2) },
}
How to get at the offsets/sizes for the memory mapped segments in TFFS.


Generated on Wed Nov 21 17:55:20 2012 by  doxygen 1.5.8