Subversion Repositories shark

Rev

Rev 1063 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 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
 
2 pj 38
#ifndef __TRACE_QUDP_H
39
#define __TRACE_QUDP_H
40
 
10 pj 41
#include <kernel/model.h>
2 pj 42
#include <drivers/udpip.h>
1689 fabio 43
#include <arch/sys/cdefs.h>
2 pj 44
 
80 pj 45
__BEGIN_DECLS
46
 
2 pj 47
typedef struct TAGtrc_udp_queue_args_t {
10 pj 48
  int size;
49
  UDP_ADDR local,remote;
50
  TASK_MODEL *model;
2 pj 51
} TRC_UDP_PARMS;
52
 
10 pj 53
#define trc_udp_default_parms(m,l,r) (m).size=8192, \
54
                                     (m).model = NULL, \
55
                                     (m).local = (l), \
56
                                     (m).remote = (r);
2 pj 57
 
10 pj 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)
2 pj 62
 
10 pj 63
 
2 pj 64
int trc_register_udp_queue(void);
65
 
80 pj 66
__END_DECLS
2 pj 67
#endif