GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCS / V1-5-4 > lcs_test / linux-gcc
#include "PBS/FORK.h"
#include "PBS/FPA.h"
#include "PBS/WUT.h"
#include "IMM/FPM_pubdefs.h"
#include "LCS/LCS_drvdefs.h"
#include "LCS/LCS_pubdefs.h"
Classes | |
struct | _LCS_CmdParam |
Command parameters. More... | |
struct | _LCS_Cmd |
Message structure that can be queued to a fork. More... | |
struct | _LCS_TestQueue |
Message reception statistics. More... | |
struct | _LCS_TestTask |
Task block for LCS testing. More... | |
struct | _LCS_TestControl |
Control block for LCS testing. More... | |
Defines | |
#define | LCS_PAT_K_WORD ( 0xdeafbede ) |
Pattern word (detect overwrites ...). | |
Typedefs | |
typedef struct _LCS_CmdParam | LCS_CmdParam |
Typedef for struct _LCS_CmdParam. | |
typedef struct _LCS_Cmd | LCS_Cmd |
Typedef for struct _LCS_Cmd. | |
typedef struct _LCS_TestQueue | LCS_TestQueue |
Typedef for struct _LCS_TestQueue. | |
typedef struct _LCS_TestTask | LCS_TestTask |
Typedef for struct _LCS_TestTask. | |
typedef struct _LCS_TestControl | LCS_TestControl |
Typedef for struct _LCS_TestControl. | |
Functions | |
unsigned int | LCS_accumRcv (void *prm, const ITC_QueueItem *qitem, void *pay, unsigned int len) |
Raw packet processing. | |
unsigned int | LCS_copyRxEngine (ITC_NodeID nid, ITC_QueueID qid, LRX_Engine *rxe) |
Copy an LRX engine control block. | |
unsigned int | LCS_copyTxEngine (ITC_TaskID tid, ITC_QueueID eid, LTX_Engine *txe) |
Copy an LTX engine control block. | |
void | LCS_dumpHex (const void *buf, int bef, int aft) |
Simple hex dump. | |
void | LCS_dumpRxDStats (LRX_Engine *beg, LRX_Engine *end) |
Dump out differential receiver statistics. | |
void | LCS_dumpRxStats (LRX_Engine *rxe) |
Dump out the statistical instrumentation for an LRX engine. | |
void | LCS_dumpTxDTiming (LTX_Engine *beg, LTX_Engine *end) |
Dump out differential timing for an LTX engine. | |
void | LCS_dumpTxEngine (LTX_Engine *txe) |
Dump out the contents of an engine control block. | |
void | LCS_dumpTxTiming (LTX_Engine *txe) |
Dump out the contents of an engine control block. | |
unsigned int | LCS_fragment (ITC_NodeID dnid, ITC_TaskID dtid, ITC_QueueID dqid, ITC_ProtID pid, ITC_TaskID stid) |
Main routine for LCS message (hardware) fragmentation test. | |
void | LCS_freeBuffer (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx) |
Free allocated buffer. | |
void | LCS_freeCCSDS (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx) |
Free allocated buffer. | |
unsigned int | LCS_integrity (ITC_NodeID dnid, ITC_TaskID dtid, ITC_QueueID dqid, ITC_ProtID pid, ITC_TaskID stid) |
Main routine for LCS protocol integrity tests. | |
unsigned int | LCS_priority (ITC_NodeID dnid, ITC_TaskID dtid, ITC_QueueID qmin, ITC_QueueID qmax, ITC_TaskID stid) |
Main routine for LCS message through message test. | |
unsigned int | LCS_sendCCSDS (unsigned int tst, unsigned int apid, int fst, int lst, int pgs, int beg, int end, ITC_cb_Completion *rtn, FPA_fcb *fcb, unsigned char *buf, LCS_Cmd *cmd) |
Send a message (no memory allocation). | |
unsigned int | LCS_sendCPU (ITC_NodeID nid, ITC_TaskID tid, ITC_QueueID qid, ITC_ProtID pid, int pgs, int beg, int end) |
Send a message (automatic memory allocation). | |
unsigned int | LCS_sendMessage (unsigned int tst, ITC_NodeID nid, ITC_TaskID tid, ITC_QueueID qid, ITC_ProtID pid, int pgs, int beg, int end, ITC_cb_Completion *rtn, FPA_fcb *fcb, unsigned char *buf, LCS_Cmd *cmd) |
Send a message (no memory allocation). | |
unsigned int | LCS_sendSDI (unsigned int apid, int fst, int lst, int pgs, int beg, int end) |
Send a message (automatic memory allocation). | |
unsigned int | LCS_speed (ITC_NodeID dnid, ITC_TaskID dtid, ITC_TaskID stid) |
Main routine for LCS message through message test. | |
unsigned int | LCS_testLength (ITC_QueueID qid) |
Deliberately damage a message length. | |
unsigned int | LCS_testSequence (ITC_QueueID qid, int tgt) |
Deliberately damage a packet sequence count. | |
unsigned int | LCS_testStall (ITC_QueueID qid, int tgt) |
Deliberately stall a transmission. | |
unsigned int | LCS_testTransaction (ITC_QueueID qid, int tgt) |
Deliberately damage a packet transaction number. | |
Variables | |
LCS_TestControl * | LCS_tcb |
Control block for LCS testing. |
CVS $Id: LCS_prvtest.h,v 1.6 2005/09/21 01:28:11 apw Exp $
unsigned int LCS_accumRcv | ( | void * | prm, | |
const ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Raw packet processing.
prm | (in) User context parameter | |
qitem | (in) Queue item | |
pay | (in) Queue item payload pointer | |
len | (in) Queue item payload length |
LCS_SUCCESS | Success |
unsigned int LCS_copyRxEngine | ( | ITC_NodeID | nid, | |
ITC_QueueID | qid, | |||
LRX_Engine * | rxe | |||
) |
Copy an LRX engine control block.
nid | (in) ITC node ID | |
qid | (in) ITC queue ID | |
rxe | (out) LRX engine control block |
LCS_GENERROR | Failure (not reported) | |
LCS_SUCCESS | Success |
unsigned int LCS_copyTxEngine | ( | ITC_TaskID | tid, | |
ITC_QueueID | eid, | |||
LTX_Engine * | txe | |||
) |
Copy an LTX engine control block.
tid | (in) ITC task ID (for this service task) | |
eid | (in) Engine ID | |
txe | (out) LTX engine control block |
LCS_GENERROR | Failure (not reported) | |
LCS_SUCCESS | Success |
void LCS_dumpHex | ( | const void * | buf, | |
int | bef, | |||
int | aft | |||
) |
Simple hex dump.
buf | Reference address | |
bef | Offset from buf to begin dump (inclusive) | |
aft | Offset from buf to end dump (exclusive) |
void LCS_dumpRxDStats | ( | LRX_Engine * | beg, | |
LRX_Engine * | end | |||
) |
Dump out differential receiver statistics.
beg | (in) LRX engine control block (period begin) | |
end | (in) LRX engine control block (period end) |
void LCS_dumpRxStats | ( | LRX_Engine * | rxe | ) |
Dump out the statistical instrumentation for an LRX engine.
rxe | (in) LRX engine control block |
void LCS_dumpTxDTiming | ( | LTX_Engine * | beg, | |
LTX_Engine * | end | |||
) |
Dump out differential timing for an LTX engine.
beg | (in) LTX engine control block (period begin) | |
end | (in) LTX engine control block (period end) |
void LCS_dumpTxEngine | ( | LTX_Engine * | ecb | ) |
Dump out the contents of an engine control block.
ecb | (in) Engine control block |
void LCS_dumpTxTiming | ( | LTX_Engine * | txe | ) |
Dump out the contents of an engine control block.
txe | (in) LTX engine control block |
static unsigned int LCS_fragment | ( | ITC_NodeID | dnid, | |
ITC_TaskID | dtid, | |||
ITC_QueueID | dqid, | |||
ITC_ProtID | pid, | |||
ITC_TaskID | stid | |||
) |
Main routine for LCS message (hardware) fragmentation test.
dnid | (in) Destination ITC node ID | |
dtid | (in) Destination ITC task ID | |
dqid | (in) Destination ITC queue ID | |
pid | (in) Message protocol | |
stid | (in) Source ITC task ID |
void LCS_freeBuffer | ( | ITC_QueueItem * | qitem, | |
unsigned int | status, | |||
void * | prm0, | |||
void * | prm1, | |||
void * | prm2, | |||
unsigned int | tx | |||
) |
Free allocated buffer.
qitem | (in) Queue item (unused) | |
status | (in) Processing completion code (unused) | |
prm0 | (in) User parameter 0 (unused) | |
prm1 | (in) User parameter 1 (unused) | |
prm2 | (in) User parameter 2 (unused) | |
tx | (in) Tx/Rx free (1/0) |
void LCS_freeCCSDS | ( | ITC_QueueItem * | qitem, | |
unsigned int | status, | |||
void * | prm0, | |||
void * | prm1, | |||
void * | prm2, | |||
unsigned int | tx | |||
) |
Free allocated buffer.
qitem | (in) Queue item (unused) | |
status | (in) Processing completion code (unused) | |
prm0 | (in) User parameter 0 (unused) | |
prm1 | (in) User parameter 1 (unused) | |
prm2 | (in) User parameter 2 (unused) | |
tx | (in) Tx/Rx free (1/0) |
unsigned int LCS_integrity | ( | ITC_NodeID | dnid, | |
ITC_TaskID | dtid, | |||
ITC_QueueID | dqid, | |||
ITC_ProtID | pid, | |||
ITC_TaskID | stid | |||
) |
Main routine for LCS protocol integrity tests.
dnid | (in) Destination ITC node ID | |
dtid | (in) Destination ITC task ID | |
dqid | (in) Destination ITC queue ID | |
pid | (in) Protocol ID | |
stid | (in) Source ITC task ID |
static unsigned int LCS_priority | ( | ITC_NodeID | dnid, | |
ITC_TaskID | dtid, | |||
ITC_QueueID | qmin, | |||
ITC_QueueID | qmax, | |||
ITC_TaskID | stid | |||
) |
Main routine for LCS message through message test.
dnid | (in) Destination ITC node ID | |
dtid | (in) Destination ITC task ID | |
qmin | (in) Queue to send the small message on | |
qmax | (in) Queue to send the large message on | |
stid | (in) Source ITC task ID |
unsigned int LCS_sendCCSDS | ( | unsigned int | tst, | |
unsigned int | apid, | |||
int | fst, | |||
int | lst, | |||
int | pgs, | |||
int | beg, | |||
int | end, | |||
ITC_cb_Completion * | rtn, | |||
FPA_fcb * | fcb, | |||
unsigned char * | buf, | |||
LCS_Cmd * | cmd | |||
) |
Send a message (no memory allocation).
tst | (in) Test ID | |
apid | (in) APID | |
fst | (in) If true, set the "first" bit in CCSDS sequence flags | |
lst | (in) If true, set the "last" bit in CCSDS sequence flags | |
pgs | (in) Number of 512 byte pages to send | |
beg | (in) Offset from perfect alignment at send head | |
end | (in) Offset from perfect alignment at send tail | |
rtn | (in) ITC completion routine | |
fcb | (in) FPA control block | |
buf | (in) Message buffer | |
cmd | (in) Command buffer (can be null) |
LCS_GENERROR | Failure | |
LCS_SUCCESS | Success |
unsigned int LCS_sendCPU | ( | ITC_NodeID | nid, | |
ITC_TaskID | tid, | |||
ITC_QueueID | qid, | |||
ITC_ProtID | pid, | |||
int | pgs, | |||
int | beg, | |||
int | end | |||
) |
Send a message (automatic memory allocation).
nid | (in) Destination node ID | |
tid | (in) Destination task ID | |
qid | (in) Destination queue ID | |
pid | (in) Hardware protocol ID | |
pgs | (in) Number of 512 byte pages to send | |
beg | (in) Offset from perfect alignment at send head | |
end | (in) Offset from perfect alignment at send tail |
LCS_GENERROR | Failure | |
LCS_SUCCESS | Success |
unsigned int LCS_sendMessage | ( | unsigned int | tst, | |
ITC_NodeID | nid, | |||
ITC_TaskID | tid, | |||
ITC_QueueID | qid, | |||
ITC_ProtID | pid, | |||
int | pgs, | |||
int | beg, | |||
int | end, | |||
ITC_cb_Completion * | rtn, | |||
FPA_fcb * | fcb, | |||
unsigned char * | buf, | |||
LCS_Cmd * | cmd | |||
) |
Send a message (no memory allocation).
tst | (in) Test ID | |
nid | (in) Destination node ID | |
tid | (in) Destination task ID | |
qid | (in) Destination queue ID | |
pid | (in) Hardware protocol ID | |
pgs | (in) Number of 512 byte pages to send | |
beg | (in) Offset from perfect alignment at send head | |
end | (in) Offset from perfect alignment at send tail | |
rtn | (in) ITC completion routine | |
fcb | (in) FPA control block | |
buf | (in) Message buffer | |
cmd | (in) Command buffer (can be null) |
LCS_GENERROR | Failure | |
LCS_SUCCESS | Success |
unsigned int LCS_sendSDI | ( | unsigned int | apid, | |
int | fst, | |||
int | lst, | |||
int | pgs, | |||
int | beg, | |||
int | end | |||
) |
Send a message (automatic memory allocation).
apid | (in) APID | |
fst | (in) If true, set the "first" bit in CCSDS sequence flags | |
lst | (in) If true, set the "last" bit in CCSDS sequence flags | |
pgs | (in) Number of 512 byte pages to send | |
beg | (in) Offset from perfect alignment at send head | |
end | (in) Offset from perfect alignment at send tail |
LCS_GENERROR | Failure | |
LCS_SUCCESS | Success |
unsigned int LCS_speed | ( | ITC_NodeID | dnid, | |
ITC_TaskID | dtid, | |||
ITC_TaskID | stid | |||
) |
Main routine for LCS message through message test.
dnid | (in) Destination ITC node ID | |
dtid | (in) Destination ITC task ID | |
stid | (in) Source ITC task ID |
static unsigned int LCS_testLength | ( | ITC_QueueID | qid | ) |
Deliberately damage a message length.
qid | (in) Queue/engine to corrupt |
static unsigned int LCS_testSequence | ( | ITC_QueueID | qid, | |
int | tgt | |||
) |
Deliberately damage a packet sequence count.
qid | (in) Queue/engine to corrupt | |
tgt | (in) Target packet to corrupt |
static unsigned int LCS_testStall | ( | ITC_QueueID | qid, | |
int | tgt | |||
) |
Deliberately stall a transmission.
qid | (in) Queue/engine to stall | |
tgt | (in) Target packet to stall |
static unsigned int LCS_testTransaction | ( | ITC_QueueID | qid, | |
int | tgt | |||
) |
Deliberately damage a packet transaction number.
qid | (in) Queue/engine to corrupt | |
tgt | (in) Target packet to corrupt |