1/**
2 * \file
3 * \brief Network server thread of the bulk server
4 */
5
6/*
7 * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15
16
17#ifndef BS_USER_BENCHMARK_H
18#define BS_USER_BENCHMARK_H
19
20#include <bulk_transfer/bulk_transfer.h>
21
22#include "bs_connector.h"
23
24#define BS_BENCH_NUM_RUNS 10
25
26#define BS_BENCH_NUM_BUFS 0x10
27
28#define BS_BENCH_BUF_SIZE 0x1000
29
30#define BS_BENCH_MAX_BLOCKS 10
31
32#define BS_BENCH_DEBUG(fmt, msg...) debug_printf("%s: "fmt"\n", __func__, msg);
33//#define BS_BENCH_DEBUG(fmt, msg...)
34
35struct bulk_channel_callbacks *bench_get_rx_cb(void);
36
37struct bulk_channel_callbacks *bench_get_tx_cb(void);
38
39void bench_signal(errval_t err,
40                  uint32_t seqn,
41                  uint32_t req);
42
43errval_t bench_init(struct bs_connection *conn);
44
45errval_t bench_run(void);
46
47#endif /* BS_USER_BENCHMARK_H */
48