LLC2_API
|
shared data structs for llcontrol. More...
Go to the source code of this file.
Classes | |
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(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 (int 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 | |
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) |
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 222 of file llcontrol.h.
Referenced by appEnterLLC_SYNC_2VAO32(), LL_ControlSystemI::Arm(), and doDmaBufDataOutput().
#define EACHCARD | ( | td | ) | (&(td)->cards[icard]) |
Definition at line 220 of file llcontrol.h.
Referenced by LL_ControlSystemI::Arm(), and LL_ControlSystemI::IO().
#define EACHMBX | ( | td | ) | ((td)->cards[icard].mbx) |
Definition at line 221 of file llcontrol.h.
Referenced by LL_ControlSystemI::Arm(), quit_handler(), and LL_ControlSystemI::Stop().
#define EACHSLOT | ( | td | ) | ((td)->cards[icard].slot) |
Definition at line 223 of file llcontrol.h.
Referenced by LL_ControlSystemI::Arm(), doDmaBufDataOutput(), doWorkBufDataOutput(), dumpTimingStats(), measureBridgeStats(), and LL_ControlSystemI::Stop().
#define FIRSTBUF | ( | td | ) | ((td)->cards[0].buf) |
Definition at line 232 of file llcontrol.h.
#define FIRSTCARD | ( | td | ) | (&(td)->cards[0]) |
Definition at line 230 of file llcontrol.h.
#define FIRSTMBX | ( | td | ) | ((td)->cards[0].mbx) |
Definition at line 231 of file llcontrol.h.
#define FIRSTSLOT | ( | td | ) | ((td)->cards[0].slot) |
Definition at line 233 of file llcontrol.h.
#define FOREACHCARD for (int icard = 0; icard != td->ncards; ++icard) |
Definition at line 228 of file llcontrol.h.
Referenced by LL_ControlSystemI::Arm(), doDmaBufDataOutput(), doWorkBufDataOutput(), dumpTimingStats(), dumpTimingStatsBin(), LL_ControlSystemI::IO(), measureBridgeStats(), quit_handler(), and LL_ControlSystemI::Stop().
#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.
#define LLC200_INIT_SZ sizeof(struct LLC200_INIT) |
Definition at line 205 of file llcontrol.h.
#define MASTER (icard == 0) |
Definition at line 236 of file llcontrol.h.
Referenced by appEnterLLC_SYNC_2VAO32().
#define MAXAO32 6 |
Definition at line 132 of file llcontrol.h.
#define MAXCARDS 16 |
Definition at line 131 of file llcontrol.h.
Referenced by dumpTimingStats(), and dumpTimingStatsBin().
#define MAXTEST 12 |
Definition at line 100 of file llcontrol.h.
Referenced by dumpTimingStats().
#define THIS_CARD icard |
Definition at line 235 of file llcontrol.h.
Referenced by LL_ControlSystemI::Arm().
#define V2_NOBUF 1 |
no buffer required, 0 offset may be valid!
Definition at line 207 of file llcontrol.h.
void initCardResource | ( | struct Card * | card | ) |
Definition at line 319 of file llcontrol-core.cpp.
References ACQ196_BIGBUF_AREA, Card::buf, get_cpu_clock_speed(), hbPrimeBuffer(), Card::mbx, mmapBigBuffer(), mmapMbox(), and Card::slot.
Referenced by ACQ196::init().
void setupAbortHandler | ( | struct TestDescription * | td | ) |
Definition at line 264 of file llcontrol-core.cpp.
References quit_handler().
Referenced by LL_ControlSystemI::Arm().
void setupMonitor | ( | int | millisec | ) |
Definition at line 307 of file llcontrol-core.cpp.
References monitor_handler().
Referenced by LL_ControlSystemI::Arm(), and monitor_handler().
static int td_dss | ( | struct TestDescription * | td | ) | [inline, static] |
Definition at line 255 of file llcontrol.h.
References TestDescription::iterations, and td_sample_size().
static int td_sample_size | ( | struct TestDescription * | td | ) | [inline, static] |
Definition at line 250 of file llcontrol.h.
References TestDescription::sample_size.
Referenced by doDmaBufDataOutput(), doWorkBufDataOutput(), and td_dss().
void updateTimingStats | ( | struct TimingStats * | buffer, |
int | iter, | ||
struct TimingStats * | stats | ||
) |
Definition at line 668 of file llcontrol-core.cpp.
References TimingStats::iter.
int G_quit |
Definition at line 104 of file llcontrol-core.cpp.
Referenced by monitor_handler().
int verbose |
Definition at line 60 of file llif26.cpp.
Referenced by LL_ControlSystemI::init(), and monitor_handler().