Rev 633 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
633 | giacomo | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | ------------ |
||
23 | CVS : $Id: net.h,v 1.1 2004-05-11 15:14:48 giacomo Exp $ |
||
24 | |||
25 | File: $File$ |
||
26 | Revision: $Revision: 1.1 $ |
||
27 | Last update: $Date: 2004-05-11 15:14:48 $ |
||
28 | ------------ |
||
29 | |||
30 | **/ |
||
31 | |||
32 | /* |
||
33 | * Copyright (C) 2000 Luca Abeni |
||
34 | * |
||
35 | * This program is free software; you can redistribute it and/or modify |
||
36 | * it under the terms of the GNU General Public License as published by |
||
37 | * the Free Software Foundation; either version 2 of the License, or |
||
38 | * (at your option) any later version. |
||
39 | * |
||
40 | * This program is distributed in the hope that it will be useful, |
||
41 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
42 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
43 | * GNU General Public License for more details. |
||
44 | * |
||
45 | * You should have received a copy of the GNU General Public License |
||
46 | * along with this program; if not, write to the Free Software |
||
47 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
48 | * |
||
49 | */ |
||
50 | |||
51 | /* Project: HARTIK 3.0 Network Library */ |
||
52 | /* Description: Hard Real TIme Kernel for 8086 compatible */ |
||
53 | /* Author: Luca Abeni */ |
||
54 | /* Date: 4/12/1997 */ |
||
55 | |||
56 | /* File: Net.H */ |
||
57 | /* Revision: 1.00 */ |
||
58 | |||
59 | #ifndef __NET_H__ |
||
60 | #define __NET_H__ |
||
61 | |||
62 | #ifdef __cplusplus |
||
63 | extern "C" { |
||
64 | #endif |
||
65 | |||
66 | /***************************************************************************/ |
||
67 | /* */ |
||
68 | /* NetInit interface */ |
||
69 | /* */ |
||
70 | /***************************************************************************/ |
||
71 | #define NET_MAX_PROTOCOLS 10 |
||
72 | #define TXTASK 1 |
||
73 | #define TXMEM 0 |
||
74 | #define LOOPBACK 2 |
||
75 | |||
76 | #define net_setmode(m,mode) m.lowlevparm=mode |
||
77 | |||
78 | typedef struct protocol { |
||
79 | void (*initfun)(void *parm); |
||
80 | void *initparms; |
||
81 | } PROTOCOL; |
||
82 | |||
83 | typedef struct net_model { |
||
84 | int lowlevparm; |
||
85 | int numprotocol; |
||
86 | struct protocol protocol[NET_MAX_PROTOCOLS]; |
||
87 | } NET_MODEL; |
||
88 | |||
89 | extern struct net_model net_base /*= {0, 0, {NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
||
90 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
||
91 | NULL, NULL, NULL, NULL, NULL, NULL}}*/; |
||
92 | |||
93 | /*void set(struct net_model *m);*/ |
||
94 | void net_setprotocol(struct net_model *m, void (*initfun)(void *parm), void *initparms); |
||
95 | int net_init(struct net_model *m); |
||
96 | |||
97 | /* The UDP/IP stack definition now are in the exported header "UDPIP.H" */ |
||
98 | |||
99 | #ifdef __cplusplus |
||
100 | }; |
||
101 | #endif |
||
102 | |||
103 | #endif |
||
104 |