Rev 1063 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
352 | 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 | |||
1063 | tullio | 21 | /* |
22 | * This program is free software; you can redistribute it and/or modify |
||
23 | * it under the terms of the GNU General Public License as published by |
||
24 | * the Free Software Foundation; either version 2 of the License, or |
||
25 | * (at your option) any later version. |
||
26 | * |
||
27 | * This program is distributed in the hope that it will be useful, |
||
28 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
29 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
30 | * GNU General Public License for more details. |
||
31 | * |
||
32 | * You should have received a copy of the GNU General Public License |
||
33 | * along with this program; if not, write to the Free Software |
||
34 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
35 | * |
||
36 | */ |
||
37 | |||
352 | giacomo | 38 | #ifndef __TRACE_QUDP_H |
39 | #define __TRACE_QUDP_H |
||
40 | |||
41 | #include <kernel/model.h> |
||
42 | #include <drivers/udpip.h> |
||
1689 | fabio | 43 | #include <arch/sys/cdefs.h> |
352 | giacomo | 44 | |
45 | __BEGIN_DECLS |
||
46 | |||
47 | typedef struct TAGtrc_udp_queue_args_t { |
||
48 | int size; |
||
49 | UDP_ADDR local,remote; |
||
50 | TASK_MODEL *model; |
||
51 | } TRC_UDP_PARMS; |
||
52 | |||
53 | #define trc_udp_default_parms(m,l,r) (m).size=8192, \ |
||
54 | (m).model = NULL, \ |
||
55 | (m).local = (l), \ |
||
56 | (m).remote = (r); |
||
57 | |||
58 | #define trc_udp_def_size(m,s) (m).size=(s) |
||
59 | #define trc_udp_def_local(m,l) (m).local=(l) |
||
60 | #define trc_udp_def_remote(m,r) (m).remote=(r) |
||
61 | #define trc_udp_def_model(m,mod) (m).model=(mod) |
||
62 | |||
63 | |||
64 | int trc_register_udp_queue(void); |
||
65 | |||
66 | __END_DECLS |
||
67 | #endif |