static int hexMode = HEXMODE;
-static const char trbcmd_version[] = "$Revision: 2.75 $";
+static const char trbcmd_version[] = "$Revision: 2.76 $";
#define BACKLOG 10
static uint16_t tcp_port = 55555;
fprintf(stdout,
" -H hex-mode: all arguments will be interpreted "
"as hexadecimal-numbers\n");
- fprintf(stdout, " -e put an EOF marker \"<EOF>\" at end of output\n");
fprintf(stdout, " -V version number\n");
fprintf(stdout, "\nCommands:\n");
fprintf(stdout, " r <trbaddress> <register> -> "
int loop = 1;
int sleepTime = 0;
int loopCtr = 0;
- int eof_marker = 0;
uint16_t trgCtr = 0; /* counter for the %ctr option */
int opt;
int i;
case 'H':
hexMode = 1;
break;
- case 'e':
- eof_marker = 1;
- break;
case 'V':
printf("%s %s, using libtrbnet %s\n",
basename(argv[0]), trbcmd_version, trbnet_version);
logError(ERROR, "Invalid command, try -h option\n");
return -1;
}
- if (eof_marker == 1) {
- fprintf(stdout, "<EOF>\n");
+ if (loop != 1) {
+ fprintf(stdout, "---\n");
+ fflush(stdout);
}
} /* End script-file-loop */
trgCtr++;
if (sleepTime > 0) {
- printf("---\n");
- fflush(stdout);
usleep(sleepTime);
}
} /* End repeat-loop */
-const char trbnet_version[] = "$Revision: 4.15 $ Local";
+const char trbnet_version[] = "$Revision: 4.16 $ Local";
#include <stdlib.h>
#include <signal.h>
#define PCIBAR 0
-#define DATA_BUFFER_SIZE 1048576 /* in 32-Bit words */
-static uint32_t dataBuffer[DATA_BUFFER_SIZE];
-//static uint32_t* dataBuffer = NULL;
+static uint32_t dataBuffer[DMA_BUFFER_NUM_PAGES * 1024];
static unsigned int dataBufferSize = 0;
static struct pexor_trbnet_io pexorDescriptor;