Commit 6c889242 authored by Valentin's avatar Valentin

fix(ldpc-offload-xdma): remove debuging prints from the driver

parent 65fea7a1
...@@ -133,7 +133,6 @@ ssize_t read_to_buffer(char* fname, int fd, char* buffer, uint64_t size, uint64_ ...@@ -133,7 +133,6 @@ ssize_t read_to_buffer(char* fname, int fd, char* buffer, uint64_t size, uint64_
while (count < size) { while (count < size) {
uint64_t bytes = size - count; uint64_t bytes = size - count;
printf("[read_buf]size = %d, count = %d, bytes = %d\n", size, count, bytes);
if (bytes > RW_MAX_SIZE) if (bytes > RW_MAX_SIZE)
bytes = RW_MAX_SIZE; bytes = RW_MAX_SIZE;
...@@ -176,8 +175,6 @@ ssize_t write_from_buffer(char* fname, int fd, char* buffer, uint64_t size, uint ...@@ -176,8 +175,6 @@ ssize_t write_from_buffer(char* fname, int fd, char* buffer, uint64_t size, uint
while (count < size) { while (count < size) {
uint64_t bytes = size - count; uint64_t bytes = size - count;
printf("[write_buf]size = %d, count = %d, bytes = %d\n", size, count, bytes);
if (bytes > RW_MAX_SIZE) if (bytes > RW_MAX_SIZE)
bytes = RW_MAX_SIZE; bytes = RW_MAX_SIZE;
...@@ -193,7 +190,6 @@ ssize_t write_from_buffer(char* fname, int fd, char* buffer, uint64_t size, uint ...@@ -193,7 +190,6 @@ ssize_t write_from_buffer(char* fname, int fd, char* buffer, uint64_t size, uint
/* write data to file from memory buffer */ /* write data to file from memory buffer */
rc = write(fd, buf, bytes); rc = write(fd, buf, bytes);
printf("bytes = %d\n", bytes);
if (rc != bytes) { if (rc != bytes) {
fprintf(stderr, "%s, W off 0x%lx, 0x%lx != 0x%lx.\n", fname, offset, rc, bytes); fprintf(stderr, "%s, W off 0x%lx, 0x%lx != 0x%lx.\n", fname, offset, rc, bytes);
perror("write file"); perror("write file");
...@@ -693,11 +689,6 @@ void test_dma_init() ...@@ -693,11 +689,6 @@ void test_dma_init()
fd_enc_read = open(DEVICE_NAME_DEFAULT_ENC_READ, O_RDWR); fd_enc_read = open(DEVICE_NAME_DEFAULT_ENC_READ, O_RDWR);
fd_dec_write = open(DEVICE_NAME_DEFAULT_DEC_WRITE, O_RDWR); fd_dec_write = open(DEVICE_NAME_DEFAULT_DEC_WRITE, O_RDWR);
fd_dec_read = open(DEVICE_NAME_DEFAULT_DEC_READ, O_RDWR); fd_dec_read = open(DEVICE_NAME_DEFAULT_DEC_READ, O_RDWR);
printf("----------\ntest_dma_init\n----------\n");
printf("fd_enc_write = %d\n", fd_enc_write);
printf("fd_enc_read = %d\n", fd_enc_read);
printf("fd_dec_write = %d\n", fd_dec_write);
printf("fd_dec_read = %d\n", fd_dec_read);
fflush(stdout); fflush(stdout);
...@@ -802,7 +793,6 @@ int nrLDPC_decoder_FPGA_PYM(int8_t* buf_in, int8_t* buf_out, DecIFConf dec_conf) ...@@ -802,7 +793,6 @@ int nrLDPC_decoder_FPGA_PYM(int8_t* buf_in, int8_t* buf_out, DecIFConf dec_conf)
nRows = dec_conf.nRows; // number of Rows nRows = dec_conf.nRows; // number of Rows
baseGraph = dec_conf.BG; // base graph baseGraph = dec_conf.BG; // base graph
CB_num = dec_conf.numCB; // 31 number of code block CB_num = dec_conf.numCB; // 31 number of code block
printf("CB_num = %d\n", CB_num);
numChannelLlrs = dec_conf.numChannelLls; // input soft bits length, Zc x 66 - length of filler bits numChannelLlrs = dec_conf.numChannelLls; // input soft bits length, Zc x 66 - length of filler bits
numFillerBits = dec_conf.numFillerBits; // filler bits length numFillerBits = dec_conf.numFillerBits; // filler bits length
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment