Subversion Repositories shark

Rev

Rev 3 | Rev 80 | 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>
26
 
27
typedef struct TAGtrc_udp_queue_args_t {
10 pj 28
  int size;
29
  UDP_ADDR local,remote;
30
  TASK_MODEL *model;
2 pj 31
} TRC_UDP_PARMS;
32
 
10 pj 33
#define trc_udp_default_parms(m,l,r) (m).size=8192, \
34
                                     (m).model = NULL, \
35
                                     (m).local = (l), \
36
                                     (m).remote = (r);
2 pj 37
 
10 pj 38
#define trc_udp_def_size(m,s)    (m).size=(s)
39
#define trc_udp_def_local(m,l)   (m).local=(l)
40
#define trc_udp_def_remote(m,r)  (m).remote=(r)
41
#define trc_udp_def_model(m,mod) (m).model=(mod)
2 pj 42
 
10 pj 43
 
2 pj 44
int trc_register_udp_queue(void);
45
 
46
#endif