OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.application/] [vopd/] [1.0/] [src/] [common.h] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
/**
2
 *
3
 * @file   common.h
4
 * @author Lasse Lehtonen
5
 *
6
 * @brief VOPD - Common stuff for all nodes.
7
 *
8
 */
9
 
10
#ifndef COMMON_H
11
#define COMMON_H
12
 
13
#include <mcapi.h>
14
 
15
#define WAIT_TIMEOUT 0xFFFFFFFF
16
 
17
#define mcapi_assert_success(s) \
18
        if (s != MCAPI_SUCCESS) { printf("%s:%d status %d\n", __FILE__, __LINE__, s); abort(); }
19
 
20
 
21
/** Connects port 'tx_port' on local to port 'rx_port' on remote node
22
 *  and return handle
23
 */
24
void connect_fwd(int local, int tx_port, mcapi_pktchan_recv_hndl_t* send_hndl,
25
                 int remote, int rx_port);
26
 
27
/** Opens local endpoint tx_port for receiving and returns handle
28
 */
29
void connect_rev(int local, int rx_port, mcapi_pktchan_recv_hndl_t* recv_hndl);
30
 
31
 
32
/** Cleans things
33
 */
34
void cleanup();
35
 
36
#endif
37
 
38
// Local Variables:
39
// mode: c++
40
// c-file-style: "ellemtel"
41
// c-basic-offset: 3
42
// End:
43
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.