2005-04-21 16:53:53 +02:00
|
|
|
/*
|
|
|
|
inet/osdep_eth.h
|
|
|
|
|
|
|
|
Created: Dec 30, 1991 by Philip Homburg
|
|
|
|
|
|
|
|
Copyright 1995 Philip Homburg
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INET__OSDEP_ETH_H
|
|
|
|
#define INET__OSDEP_ETH_H
|
|
|
|
|
|
|
|
#include "generic/event.h"
|
|
|
|
|
|
|
|
#define IOVEC_NR 16
|
|
|
|
#define RD_IOVEC ((ETH_MAX_PACK_SIZE + BUF_S -1)/BUF_S)
|
|
|
|
|
|
|
|
typedef struct osdep_eth_port
|
|
|
|
{
|
|
|
|
int etp_task;
|
|
|
|
int etp_port;
|
|
|
|
int etp_recvconf;
|
2006-07-10 14:55:33 +02:00
|
|
|
iovec_s_t etp_wr_iovec[IOVEC_NR];
|
|
|
|
cp_grant_id_t etp_wr_vec_grant;
|
|
|
|
iovec_s_t etp_rd_iovec[RD_IOVEC];
|
|
|
|
cp_grant_id_t etp_rd_vec_grant;
|
2005-04-21 16:53:53 +02:00
|
|
|
event_t etp_recvev;
|
|
|
|
message etp_sendrepl;
|
|
|
|
message etp_recvrepl;
|
|
|
|
} osdep_eth_port_t;
|
|
|
|
|
|
|
|
#endif /* INET__OSDEP_ETH_H */
|
|
|
|
|
|
|
|
/*
|
2005-06-28 17:19:58 +02:00
|
|
|
* $PchId: osdep_eth.h,v 1.6 2001/04/20 06:39:54 philip Exp $
|
2005-04-21 16:53:53 +02:00
|
|
|
*/
|