GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-4-1
Constituent: mem_unit_test     Tag: mv2304
#include "MEM/MEM_dump.h"
#include "MEM/MEM_load.h"
#include "MEM/MEM_pubdefs.h"
Include dependency graph for mem_unit_test.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _test_Test_Descriptor |
Description of a test state. More... | |
Defines | |
#define | MEM_APID_LAT_MEM_LOAD (0x644) |
Memory Load APID. | |
#define | MEM_APID_LAT_MEM_DUMP (0x644) |
Memory Dump APID. | |
#define | MEM_FC_MEM_LOAD_MEMORY (4) |
Memory Write function code. | |
#define | MEM_FC_MEM_LOAD_PCI (5) |
PCI Device Header Write function code. | |
#define | MEM_FC_MEM_LOAD_REGISTER (6) |
CPU Register Write function code. | |
#define | MEM_FC_MEM_DUMP_MEMORY (0) |
Memory Dump function code. | |
#define | MEM_FC_MEM_DUMP_PCI (2) |
PCI Device Header Dump function code. | |
#define | MEM_FC_MEM_DUMP_REGISTER (3) |
CPU Register Dump function code. | |
#define | DIM(a) (sizeof (a) / sizeof ((a)[0])) |
Dimension of an array. | |
Typedefs | |
typedef _test_Test_Descriptor | test_Test_Descriptor |
Typedef for _test_Test_Descriptor. | |
Functions | |
void | test_Push_State (test_Test_Descriptor *td_p, const char *desc, const int index) |
Enter a new test state. | |
void | test_Pop_State (test_Test_Descriptor *td_p) |
Return for a test state. | |
void | test_Show (const test_Test_Descriptor *td_p, const int level, const char *item_1, const char *item_2) |
Display text with indentation. | |
void | test_Show_Msg_OK (const test_Test_Descriptor *td_p) |
Indicate that the next error message is expected. | |
int | test_Status_Compare (const test_Test_Descriptor *td_p, const unsigned int expect, const unsigned int actual, const char *func) |
Check a status value returned from a MEM library function. | |
int | test_Value32_Compare (const test_Test_Descriptor *td_p, const unsigned int expect, const unsigned int actual, const char *desc) |
Check a 32-bit value. | |
int | test_Descriptor_Compare (const test_Test_Descriptor *td_p, const MEM_Descriptor *expect, const MEM_Descriptor *actual, const char *desc) |
Verify the contents of a memory descriptor. | |
int | test_LoadInfo_Compare (const test_Test_Descriptor *td_p, const MEM_LoadInfo *expect, MEM_LoadInfo *actual) |
Verify the contents of a MEM_LoadInfo object. | |
int | test_DumpInfo_Compare (const test_Test_Descriptor *td_p, const MEM_DumpInfo *expect, MEM_DumpInfo *actual) |
Verify the contents of a MEM_DumpInfo object. | |
int | test_Info_Compare (const test_Test_Descriptor *td_p, const MEM_Info *expect, MEM_Info *actual) |
Verify the contents of a MEM_Info object. | |
int | test_Memory_Compare (const test_Test_Descriptor *td_p, const void *expect_p, const void *actual_p, const void *mask_p, const size_t num_bytes) |
Verify the contents of a buffer in memory. | |
void | test_Show_Item (const test_Test_Descriptor *td_p, const char *name, const char *fmt, const char *str_param, const unsigned int int_param) |
Display an item of data. | |
void | test_Show_Dump_Progress (const test_Test_Descriptor *td_p, const char *name, const size_t chunk_size, const caddr_t addr, const size_t progress, const size_t full_size) |
Display dump progress. | |
void | test_PrnFill32 (void *startAddr, const unsigned long nWords) |
PRN fill. | |
unsigned long | test_PrnVerify32 (const void *startAddr, const unsigned long nWords, unsigned long *firstFailure, unsigned long *expect, unsigned long *found) |
PRN verify. |
CVS $Id: mem_unit_test.h,v 1.6 2005/02/28 21:19:49 dmay Exp $
Interface to the common mem_unit_test functions.
|
Verify the contents of a memory descriptor. This function verifies the contents of a memory descriptor and reports an error if the values are not as expected.
|
Here is the call graph for this function:
|
Verify the contents of a MEM_DumpInfo object. This function verifies the contents of a MEM_DumpInfo object and reports an error if the values are not as expected.
|
Here is the call graph for this function:
|
Verify the contents of a MEM_Info object. This function verifies the contents of a MEM_Info object and reports an error if the values are not as expected.
|
Here is the call graph for this function:
|
Verify the contents of a MEM_LoadInfo object. This function verifies the contents of a MEM_LoadInfo object and reports an error if the values are not as expected.
|
Here is the call graph for this function:
|
Verify the contents of a buffer in memory. This function verifies the contents of a memory buffer and reports an error if the values are not as expected. An optional mask can be used to indicate which bits should be verified.
|
Here is the call graph for this function:
|
Return for a test state. Pop a test state description from a test's state stack.
|
Here is the call graph for this function:
|
PRN fill. Fills a buffer in memory with a pseudo-random sequence of numbers. The PRN is based on this polynomial: 8 7 5 3 h(x) = x + x + x + x + 1
|
|
PRN verify. Verifies a pseudo-random sequence of numbers and reports number of errors found and details about the first error. The PRN is based on this polynomial: 8 7 5 3 h(x) = x + x + x + x + 1
|
|
Enter a new test state. Push a new test state description onto a test's state stack. This state stack provides a trace of the execution of the test.
|
Here is the call graph for this function:
|
Display text with indentation. Display text with indentation appropriate for the specified level.
|
Here is the call graph for this function:
|
Display dump progress. This function displays the progress of a dump.
|
Here is the call graph for this function:
|
Display an item of data. This function displays an item of data in a predefined format.
|
Here is the call graph for this function:
|
Indicate that the next error message is expected. Display text that indicates that the next error message is expected.
|
Here is the call graph for this function:
|
Check a status value returned from a MEM library function. Compare actual and expected status values returned from a MEM library function and display a message if they differ.
|
Here is the call graph for this function:
|
Check a 32-bit value. Compare actual and expected 32-bit values and display a message if they differ.
|
Here is the call graph for this function: