/*********************************************************************************

Copyright(c) 2007 Analog Devices, Inc. All Rights Reserved.

This software is proprietary and confidential.  By using this software you agree
to the terms of the associated Analog Devices License Agreement.

$RCSfile: CmdTst_Com.h,v $
$Revision: 1.1 $
$Date: 2008/03/17 14:56:29 $

Description:
            This is test source code for Filesystem support.

*********************************************************************************/

#ifndef _CMDTST_COM_H_
#define _CMDTST_COM_H_


typedef struct _trout_args{
u32         Verbosity;          // Flag for defining how much data to output
u32         dFileFlag;    		// Delete file at end of test flag (1 = delete)
u32         SetVbufFlag;	    // vbuf flag size (0 = set to zero - default).
u32         ulFileCount;        // Number of files to access/create/delete 
u32         ulSeekCount;        // Number of seeks to perform
u32         TestFileSize;       // Size of test files to create
u32         DefaultDirLevel;    // Depth Number of sub-directories' to create
u32         oTFlag;             // Optional test flag. Use defined by test.
u32         IncCount;           // Optional test increment value.
u32         ReportErrors;       // Flag for reporting incidental errors
u32         TotalErrorCount;    // Location to accumulate total error count 
u32         ErrorCountLimit;    // Number of errors to print before halting output
u32         TotalErrorLimit;    // TEL Total number or errors allowed
                                // before exiting test 0=no limit.

} TROUT_ARGS, *PTROUT_ARGS;


#define HALFK    512
#define ONEK     1024
#define TWOK     (1024 * 2)
#define FOURK    (1024 * 4)
#define EIGHTK   (1024 * 8)
#define SIXTEENK (1024 * 16)
#define THRTY2K  (1024 * 32)
#define S64K     (1024 * 64)
#define ONEMEG   (1024 * 1024)

#define OBBUFSIZE        S64K
#define CBUF_SIZE        0x4000


#define _MAX_DIR_LEVEL 28
#define _MAX_DIR_PATH  256

#define MY_BLANKLINE    "  "
#define MY_NEWLINE      '\n'
#define MY_LINEFEED     '\n'
#define MY_CR           '\r'
#define MY_CRLF     	"\n"



#endif // _CMDTST_COM_H_
