Subversion Repositories shark

Rev

Rev 10 | Go to most recent revision | 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
 
21
#ifndef __TRACE_QUDP_H
22
#define __TRACE_QUDP_H
23
 
10 pj 24
#include <kernel/model.h>
2 pj 25
#include <drivers/udpip.h>
80 pj 26
#include "ll/sys/cdefs.h"
2 pj 27
 
80 pj 28
__BEGIN_DECLS
29
 
2 pj 30
typedef struct TAGtrc_udp_queue_args_t {
10 pj 31
  int size;
32
  UDP_ADDR local,remote;
33
  TASK_MODEL *model;
2 pj 34
} TRC_UDP_PARMS;
35
 
10 pj 36
#define trc_udp_default_parms(m,l,r) (m).size=8192, \
37
                                     (m).model = NULL, \
38
                                     (m).local = (l), \
39
                                     (m).remote = (r);
2 pj 40
 
10 pj 41
#define trc_udp_def_size(m,s)    (m).size=(s)
42
#define trc_udp_def_local(m,l)   (m).local=(l)
43
#define trc_udp_def_remote(m,r)  (m).remote=(r)
44
#define trc_udp_def_model(m,mod) (m).model=(mod)
2 pj 45
 
10 pj 46
 
2 pj 47
int trc_register_udp_queue(void);
48
 
80 pj 49
__END_DECLS
2 pj 50
#endif