Fixed extern declaration from pointer to array
[minix.git] / servers / inet / osdep_eth.h
blobc19c3171f69d6f00d04443ad785d9a7be9406b8f
1 /*
2 inet/osdep_eth.h
4 Created: Dec 30, 1991 by Philip Homburg
6 Copyright 1995 Philip Homburg
7 */
9 #ifndef INET__OSDEP_ETH_H
10 #define INET__OSDEP_ETH_H
12 #include "generic/event.h"
14 #define IOVEC_NR 16
15 #define RD_IOVEC ((ETH_MAX_PACK_SIZE + BUF_S -1)/BUF_S)
17 typedef struct osdep_eth_port
19 int etp_state;
20 int etp_flags;
21 int etp_task;
22 int etp_port;
23 int etp_recvconf;
24 int etp_send_ev;
25 iovec_s_t etp_wr_iovec[IOVEC_NR];
26 cp_grant_id_t etp_wr_vec_grant;
27 iovec_s_t etp_rd_iovec[RD_IOVEC];
28 cp_grant_id_t etp_rd_vec_grant;
29 event_t etp_recvev;
30 message etp_sendrepl;
31 message etp_recvrepl;
32 cp_grant_id_t etp_stat_gid;
33 eth_stat_t *etp_stat_buf;
34 } osdep_eth_port_t;
36 #define OEPS_INIT 0 /* Not initialized */
37 #define OEPS_CONF_SENT 1 /* Conf. request has been sent */
38 #define OEPS_IDLE 2 /* Device is ready to accept requests */
39 #define OEPS_RECV_SENT 3 /* Recv. request has been sent */
40 #define OEPS_SEND_SENT 4 /* Send request has been sent */
41 #define OEPS_GETSTAT_SENT 5 /* GETSTAT request has been sent */
43 #define OEPF_EMPTY 0
44 #define OEPF_NEED_RECV 1 /* Issue recv. request when the state becomes
45 * idle
47 #define OEPF_NEED_SEND 2 /* Issue send request when the state becomes
48 * idle
50 #define OEPF_NEED_CONF 4 /* Issue conf request when the state becomes
51 * idle
53 #define OEPF_NEED_STAT 8 /* Issue getstat request when the state becomes
54 * idle
57 #endif /* INET__OSDEP_ETH_H */
60 * $PchId: osdep_eth.h,v 1.6 2001/04/20 06:39:54 philip Exp $