comparison src/g23m-fad/tcpip/rnet/rnet_rt/rnet_rt_message.h @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
1 /**
2 * @file rnet_rt_message.h
3 *
4 * Data structures:
5 * 1) used to send messages to the RNET_RT SWE,
6 * 2) RNET_RT can receive.
7 *
8 * @author Jose Yp-Tcha (j-yp-tcha@ti.com)
9 * @version 0.1
10 */
11
12 /*
13 * $Id: rnet_rt_message.h,v 1.2 2002/10/30 15:23:34 rf Exp $
14 * $Name: ti_20021030 $
15 *
16 * History:
17 *
18 * Date Author Modification
19 * -------------------------------------------------------------------
20 * 3/19/2002 Jose Yp-Tcha (j-yp-tcha@ti.com) Create.
21 * 3/29/2002 Regis Feneon NexGenIP messages
22 *
23 * (C) Copyright 2002 by TI, All Rights Reserved
24 */
25
26 #include "rnet_cfg.h"
27 #ifdef RNET_CFG_REAL_TRANSPORT
28
29 #ifndef __RNET_RT_MESSAGE_H_
30 #define __RNET_RT_MESSAGE_H_
31
32 #include "rv_general.h"
33
34 #include "rnet_rt_cfg.h"
35
36 #include "ngip.h"
37
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif
42
43 /**
44 * The message offset must differ for each SWE in order to have
45 * unique msg_id in the system.
46 */
47 #define RNET_RT_MESSAGE_OFFSET BUILD_MESSAGE_OFFSET(RNET_RT_USE_ID)
48
49 /**
50 * @name RNET_RT_NGIP_INPUT
51 */
52 /*@{*/
53 /** Message ID. */
54 #define RNET_RT_NGIP_INPUT (RNET_RT_MESSAGE_OFFSET | 0x001)
55
56 /** Message structure. */
57 typedef struct {
58 /** Message header. */
59 T_RV_HDR hdr;
60 /** Pointer to network buffer. */
61 NGbuf *bufp;
62 } T_RNET_RT_NGIP_INPUT;
63 /*@}*/
64
65 /**
66 * @name RNET_RT_NGIP_IF_MSG
67 */
68 /*@{*/
69 /** Message ID. */
70 #define RNET_RT_NGIP_NETIF_MSG (RNET_RT_MESSAGE_OFFSET | 0x002)
71
72 /** Message structure. */
73 typedef struct {
74 /** Message header. */
75 T_RV_HDR hdr;
76 /** Pointer to network interface. */
77 NGifnet *netp;
78 /** Pointer to encapsulated message. */
79 T_RV_HDR *msgp;
80 } T_RNET_RT_NGIP_NETIF_MSG;
81 /*@}*/
82
83 #ifdef __cplusplus
84 }
85 #endif
86
87 #endif /* __RNET_RT_MESSAGE_H_ */
88
89 #endif /* ifdef RNET_CFG_REAL_TRANSPORT */
90