genode/ports-foc/include/genode/net.h
2012-01-03 15:35:05 +01:00

41 lines
1.1 KiB
C

/*
* \brief Genode C API network functions needed by OKLinux
* \author Stefan Kalkowski
* \date 2009-09-10
*/
/*
* Copyright (C) 2009-2012 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _INCLUDE__GENODE__NET_H_
#define _INCLUDE__GENODE__NET_H_
#include <l4/sys/compiler.h>
#include <l4/sys/types.h>
#include <genode/linkage.h>
#ifdef __cplusplus
extern "C" {
#endif
L4_CV l4_cap_idx_t genode_net_irq_cap (void);
L4_CV int genode_net_ready (void);
L4_CV void genode_net_start (void *dev, FASTCALL void (*func)(void*, void*, unsigned long));
L4_CV void genode_net_stop (void);
L4_CV void genode_net_mac (void* mac_addr, unsigned long size);
L4_CV int genode_net_tx (void* addr, unsigned long len, void *skb);
L4_CV int genode_net_tx_ack_avail(void);
L4_CV void* genode_net_tx_ack (void);
L4_CV void genode_net_rx_receive (void);
#ifdef __cplusplus
}
#endif
#endif /* _INCLUDE__GENODE__NET_H_ */