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] - Rev 145

Compare with Previous | Blame | View Log

/**
 *
 * @file   common.h
 * @author Lasse Lehtonen
 *
 * @brief VOPD - Common stuff for all nodes.
 *
 */
 
#ifndef COMMON_H
#define COMMON_H
 
#include <mcapi.h>
 
#define WAIT_TIMEOUT 0xFFFFFFFF
 
#define mcapi_assert_success(s) \
        if (s != MCAPI_SUCCESS) { printf("%s:%d status %d\n", __FILE__, __LINE__, s); abort(); }
 
 
/** Connects port 'tx_port' on local to port 'rx_port' on remote node 
 *  and return handle
 */
void connect_fwd(int local, int tx_port, mcapi_pktchan_recv_hndl_t* send_hndl,
                 int remote, int rx_port);
 
/** Opens local endpoint tx_port for receiving and returns handle 
 */
void connect_rev(int local, int rx_port, mcapi_pktchan_recv_hndl_t* recv_hndl);
 
 
/** Cleans things
 */
void cleanup();
 
#endif
 
// Local Variables:
// mode: c++
// c-file-style: "ellemtel"
// c-basic-offset: 3
// End:
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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