GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FILE / V3-8-1

Constituent: file_tools     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

tffs_show.c File Reference

Utility to display internal format of a TFFS partition. More...

#include "vxWorks.h"
#include "stdio.h"
#include "string.h"
#include "tffs/tffsDrv.h"
#include "tffs/fatlite.h"
#include "PBS/BSWP.h"
#include "ftl.h"

Include dependency graph for tffs_show.c:


Defines

#define BLOCK_FREE   0x7f
#define BLOCK_UPDATING   0x7e
#define BLOCK_DIRTY   0x00

Functions

int tffs_show (int drv, unsigned int offset)

Variables

static const char dumpLine []
static const unsigned char linkTargetTuple [5]
static const unsigned char dataOrgTuple [10]

Detailed Description

Utility to display internal format of a TFFS partition.

Author:
D.L. Wood

Define Documentation

#define BLOCK_DIRTY   0x00
 

BAM code for block consumed.

#define BLOCK_FREE   0x7f
 

BAM code for free block.

#define BLOCK_UPDATING   0x7e
 

BAM code for write in progress.


Function Documentation

int tffs_show int  drv,
unsigned int  offset
 

This function displays the internal formatting details of a TFFS partition. The erase unit header (EUH) is shown for each erase unit in the partition. The block address map (BAM) is shown for each erase unit in the partition.

Parameters:
drv The TFFS drive number for the partition.
offset The offset in bytes from the beginning of the media to the start of the TFFS partition.
Return values:
0 Success.
-1 Failure.


Variable Documentation

dataOrgTuple [static]
 

Initial value:

 
{
        0x46, 0x39, 0x00, 0x46, 0x54, 0x4c, 0x31, 0x30, 0x30, 0x00
}
Value contained in valid EUH data organization tuple field.

dumpLine [static]
 

Initial value:

 
        "-------------------------------------------------------------------------------\n"
A separator line for displays.

linkTargetTuple [static]
 

Initial value:

 
{
        0x13, 0x03, 0x43, 0x49, 0x53
}
Value contained in valid EUH link target tuple field.


Generated on Tue Oct 25 22:44:55 2005 by  doxygen 1.4.4