shared data structs for llcontrol. More...
Go to the source code of this file.
Data Structures | |
struct | Card |
defines resources dedicated to each card. More... | |
struct | TimingStats |
defines timing of the shot. More... | |
struct | TestDescription |
defines a test [shot] . More... | |
struct | TestDescription::ARG |
Defines | |
#define | MAXTEST 12 |
#define | ACQ196_BIGBUF_AREA 0x1000000 |
#define | MAXCARDS 16 |
#define | MAXAO32 6 |
#define | LLC200_INIT_SZ sizeof(struct LLC200_INIT) |
#define | V2_NOBUF 1 |
no buffer required, 0 offset may be valid! | |
#define | IS_SYNC_2V(mode) |
#define | EACHCARD_INIT int icard |
#define | EACHCARD(td) (&(td)->cards[icard]) |
#define | EACHMBX(td) ((td)->cards[icard].mbx) |
#define | EACHBUF(td) ((td)->cards[icard].buf) |
#define | EACHSLOT(td) ((td)->cards[icard].slot) |
#define | FOREACHCARD for (icard = 0; icard != td->ncards; ++icard) |
#define | FIRSTCARD(td) (&(td)->cards[0]) |
#define | FIRSTMBX(td) ((td)->cards[0].mbx) |
#define | FIRSTBUF(td) ((td)->cards[0].buf) |
#define | FIRSTSLOT(td) ((td)->cards[0].slot) |
#define | THIS_CARD icard |
#define | MASTER (icard == 0) |
Functions | |
int | runTest (struct TestDescription *td) |
generic top level text exec. | |
void | setupAbortHandler (struct TestDescription *td) |
void | setupMonitor (int millisec) |
void | initCardResource (struct Card *card) |
static int | td_sample_size (struct TestDescription *td) |
static int | td_dss (struct TestDescription *td) |
static int | isAcq216 (void) |
static int | isAcq216HS (void) |
void | updateTimingStats (struct TimingStats *buffer, int iter, struct TimingStats *stats) |
Variables | |
int | verbose |
int | G_quit |
shared data structs for llcontrol.
Definition in file llcontrol.h.
#define ACQ196_BIGBUF_AREA 0x1000000 |
Definition at line 130 of file llcontrol.h.
Referenced by initCardResource().
#define EACHBUF | ( | td | ) | ((td)->cards[icard].buf) |
Definition at line 224 of file llcontrol.h.
Referenced by appEnterLLC_SYNC_2V(), appEnterLLC_SYNC_2VAO32(), appEnterLLC_SYNC_ECM(), do_run(), doApplicationWork(), doApplicationWork216(), doDmaBufDataOutput(), initV2Stats(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), and runSYNC_ECM().
#define EACHCARD | ( | td | ) | (&(td)->cards[icard]) |
Definition at line 222 of file llcontrol.h.
Referenced by do_run(), main(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_2VRFM(), and runSYNC_ECM().
#define EACHCARD_INIT int icard |
Definition at line 220 of file llcontrol.h.
#define EACHMBX | ( | td | ) | ((td)->cards[icard].mbx) |
Definition at line 223 of file llcontrol.h.
Referenced by do_run(), measureBridgeStats(), quit_handler(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_2VRFM(), runSYNC_ECM(), and runTest().
#define EACHSLOT | ( | td | ) | ((td)->cards[icard].slot) |
Definition at line 225 of file llcontrol.h.
Referenced by doDmaBufDataOutput(), doWorkBufDataOutput(), dumpTimingStats(), and selectBoards().
#define FIRSTBUF | ( | td | ) | ((td)->cards[0].buf) |
Definition at line 234 of file llcontrol.h.
Referenced by do_run(), runSYNC_2V(), runSYNC_2VAO32(), and runSYNC_ECM().
#define FIRSTCARD | ( | td | ) | (&(td)->cards[0]) |
Definition at line 232 of file llcontrol.h.
#define FIRSTMBX | ( | td | ) | ((td)->cards[0].mbx) |
Definition at line 233 of file llcontrol.h.
Referenced by do_run(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), and runSYNC_ECM().
#define FIRSTSLOT | ( | td | ) | ((td)->cards[0].slot) |
Definition at line 235 of file llcontrol.h.
#define FOREACHCARD for (icard = 0; icard != td->ncards; ++icard) |
Definition at line 230 of file llcontrol.h.
Referenced by do_run(), doApplicationWork(), doApplicationWork216(), doDmaBufDataOutput(), doWorkBufDataOutput(), dumpTimingStats(), dumpTimingStatsBin(), initV2Stats(), initWorkBuf(), main(), measureBridgeStats(), quit_handler(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_ECM(), runTest(), and selectBoards().
#define IS_SYNC_2V | ( | mode | ) |
((mode) == M_SYNC_2V || (mode) == M_SYNC_2VAO32 || \ (mode) == M_SYNC_2VRFM)
Definition at line 209 of file llcontrol.h.
Referenced by main().
#define LLC200_INIT_SZ sizeof(struct LLC200_INIT) |
Definition at line 205 of file llcontrol.h.
Referenced by initBuf(), loadPramfile(), and writeOutput().
#define MASTER (icard == 0) |
Definition at line 238 of file llcontrol.h.
Referenced by appEnterLLC_SYNC_2VAO32().
#define MAXAO32 6 |
Definition at line 132 of file llcontrol.h.
Referenced by main().
#define MAXCARDS 16 |
Definition at line 131 of file llcontrol.h.
#define MAXTEST 12 |
Definition at line 101 of file llcontrol.h.
#define THIS_CARD icard |
Definition at line 237 of file llcontrol.h.
Referenced by runSCM216(), runSYNC_2VAO32(), and runTest().
#define V2_NOBUF 1 |
no buffer required, 0 offset may be valid!
Definition at line 207 of file llcontrol.h.
Referenced by initV2Stats().
void initCardResource | ( | struct Card * | card | ) |
Definition at line 851 of file llcontrol-core.c.
References ACQ196_BIGBUF_AREA, Card::buf, get_cpu_clock_speed(), hbPrimeBuffer(), Card::mbx, mmapBigBuffer(), mmapMbox(), and Card::slot.
Referenced by main().
static int isAcq216 | ( | void | ) | [inline, static] |
Definition at line 267 of file llcontrol.h.
Referenced by dumpTimingStats(), extractTprocess(), loadPramfile(), runTest(), and setDefaults().
static int isAcq216HS | ( | void | ) | [inline, static] |
Definition at line 270 of file llcontrol.h.
Referenced by initPrams(), main(), and makeChannelMask().
int runTest | ( | struct TestDescription * | td | ) |
generic top level text exec.
Definition at line 646 of file llcontrol-core.c.
References acq32_enableInts(), acq32_maskInts(), appEnterLLC_SYNC_2V(), appEnterLLC_SYNC_2VAO32(), appEnterLLC_SYNC_2VRFM(), appEnterLLC_SYNC_ECM(), TestDescription::arg, TestDescription::clkpos, commandModifiers(), TestDescription::ARG::divisor, EACHMBX, enterLLCExtClock(), enterLLCSoftClock(), FOREACHCARD, G_env, icard, TestDescription::internal_loopback, isAcq216(), TestDescription::iterations, leaveLLC(), TestDescription::mask_ints, TestDescription::mask_ints_mask, measureBridge(), measureBridgeStats(), TestDescription::mode, PRINTF, runECM(), runSCM(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_2VRFM(), runSYNC_ECM(), TestDescription::stats_buf, THIS_CARD, TestDescription::tlog, and TestDescription::trpos.
Referenced by main().
void setupAbortHandler | ( | struct TestDescription * | td | ) |
void setupMonitor | ( | int | millisec | ) |
Definition at line 839 of file llcontrol-core.c.
References monitor_handler().
Referenced by main(), and monitor_handler().
static int td_dss | ( | struct TestDescription * | td | ) | [inline, static] |
Definition at line 261 of file llcontrol.h.
References TestDescription::iterations, and td_sample_size().
Referenced by main().
static int td_sample_size | ( | struct TestDescription * | td | ) | [inline, static] |
Definition at line 256 of file llcontrol.h.
References TestDescription::sample_size.
Referenced by do_run(), doApplicationWork(), doDmaBufDataOutput(), doWorkBufDataOutput(), initWorkBuf(), main(), runSCM216(), and td_dss().
void updateTimingStats | ( | struct TimingStats * | buffer, | |
int | iter, | |||
struct TimingStats * | stats | |||
) |
Definition at line 561 of file llcontrol.c.
References TimingStats::iter.
Referenced by do_run(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_2VRFM(), and runSYNC_ECM().
int G_quit |
Definition at line 409 of file llcontrol.c.
Referenced by do_run(), monitor_handler(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_2VRFM(), and runSYNC_ECM().
int verbose |
Definition at line 400 of file llcontrol.c.