#include "local.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <popt.h>
#include "acq32ioctl.h"
#include "acq32busprot.h"
#include "llif.h"
#include "llprotocol.h"
#include "llcontrol.h"
#include "x86timer.h"
#include "llcontrol-core.h"
Go to the source code of this file.
Defines | |
#define | FLAVOR "ACQ196" |
#define | SAMPLE_SIZE (96*2) |
#define | icard 0 |
Functions | |
static void | sync_2v_updateTstats (u32 cmd, struct Card *card, struct TimingStats *tstats) |
updates timing stats from embedded host buffer data | |
static u32 | card_sync_2v_WaitDmaDone (struct Card *card) |
void | appEnterLLC_SYNC_2VRFM (void) |
set up LLCV2_INIT buffer and enter mode. | |
int | runSYNC_2VRFM (struct TestDescription *td, int soft_clock) |
runs the test SYNC_2V mode. |
#define FLAVOR "ACQ196" |
Definition at line 67 of file llcontrol-sync2VRFM-core.c.
#define icard 0 |
#define SAMPLE_SIZE (96*2) |
void appEnterLLC_SYNC_2VRFM | ( | void | ) |
set up LLCV2_INIT buffer and enter mode.
Buffer set up as 4K block at offset 0
Definition at line 90 of file llcontrol-sync2VRFM-core.c.
Referenced by runTest().
Definition at line 82 of file llcontrol-sync2VRFM-core.c.
References Card::buf, getVaddr(), llv2WaitDmaDone_2v(), Card::mbx, Card::sync_2v_offset_status_hsbt, and Card::tlatch.
int runSYNC_2VRFM | ( | struct TestDescription * | td, | |
int | soft_clock | |||
) |
runs the test SYNC_2V mode.
PSEUDO-CODE:
Definition at line 99 of file llcontrol-sync2VRFM-core.c.
References TestDescription::decimation, TestDescription::do_work, doApplicationWork(), EACHCARD, EACHMBX, G_quit, getMboxPollcount(), icard, TestDescription::iter, TestDescription::iterations, LLC_MAKE_DECIM, MARK_TIME, TestDescription::min_latency_test, TestDescription::stats_buf, TimingStats::target_poll, TimingStats::tlatch, TestDescription::tlog, updateTimingStats(), updateTstats, and waitDmaDone.
Referenced by runTest().
static void sync_2v_updateTstats | ( | u32 | cmd, | |
struct Card * | card, | |||
struct TimingStats * | tstats | |||
) | [static] |
updates timing stats from embedded host buffer data
Definition at line 71 of file llcontrol-sync2VRFM-core.c.
References Card::buf, getVaddr(), LLC_GET_TCYCLE, LLC_SYNC2V_IN_MBOX0, LLC_SYNC2V_IN_MBOX2, LLC_SYNC2V_IN_TINST, llv2_extend32(), Card::sync_2v_offset_status_hsbt, TimingStats::tinst, and TimingStats::tprocess.