-const char trbnet_version[] = "$Revision: 4.24 $ Local";
+const char trbnet_version[] = "$Revision: 4.25 $ Local";
#include <stdlib.h>
#include <signal.h>
#define PCIBAR 0
static uint32_t dataBuffer[DMA_BUFFER_NUM_PAGES * 1024];
-static unsigned int dataBufferSize = 0; /* Size of dataBuffer in BYTES */
+static unsigned int dataBufferSize = 0; /* Size of dataBuffer in 32bit words */
static struct pexor_trbnet_io pexorDescriptor;
int dma_size = 0;
static uint16_t udpBuffer[750]; /* Maxminum is payload of one Ethernet-Frame */
static uint16_t dataBuffer[4096 * 1024];
-static unsigned int dataBufferSize = 0; /* Size of dataBuffer in BYTES */
+static unsigned int dataBufferSize = 0; /* Size of dataBuffer in 16BIt words */
static int trb3_sockfd = -1;
static int trb3_sockfd_in = -1;
static uint16_t trb3_port = 25000;
: TRB_TRB3_SOCKET_ERROR;
return -1;
}
- dataBufferSize = status;
+ dataBufferSize = status / 2;
/* Adjust endianess ... */
if (trb_debug > 2) {
}
#endif
} /* end while () */
-
+
/* Copy StatusBits and Sequenze of TerminationPackage */
trb_term.status_common = package.F2;
trb_term.status_channel = package.F1;