comparison src/g23m-fad/tcpip/rnet.c @ 174:90eb61ecd093

src/g23m-fad: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2016 05:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
173:bf64d785238a 174:90eb61ecd093
1 /*---------------------------------------------------------------------------
2 * Adaption of Riviera Net (RNET) TCP/IP to GPF and DTI2
3 *-------------------------------------------------------------------------*/
4
5 /* Here we define some dummy Riviera Frame functions
6 * so that we can link an executable,
7 * only to be sure that we've copied all we need. */
8
9 /*-------------------------------------------------------------------------*/
10
11 #include "rnet.h"
12
13 /*-------------------------------------------------------------------------*/
14
15
16 #include "atp_cmd.h"
17
18 /* from /ti/release/ti_5.4.0_p1/code/services/atp/atp_sw_ent.c */
19
20 T_ATP_RET atp_reg (
21 T_ATP_SW_ENTITY_NAME name,
22 T_ATP_CALLBACK return_path,
23 T_ATP_ENTITY_MODE mode ,
24 T_ATP_SW_ENTITY_ID * sw_id_p
25 ) {
26 return RV_OK;
27 }
28
29 T_ATP_RET atp_dereg (T_ATP_SW_ENTITY_ID sw_id)
30 {
31 return RV_OK;
32 }
33
34 /*-------------------------------------------------------------------------*/
35
36 /* from /ti/release/ti_5.4.0_p1/code/services/atp/atp_services.c */
37
38 T_ATP_RET atp_send_data (
39 T_ATP_SW_ENTITY_ID sender_sw_id,
40 T_ATP_PORT_NB sender_port_nb,
41 void * data_buffer_p,
42 UINT32 buffer_size,
43 UINT32 * nb_bytes_left_p
44 ) {
45 return RV_OK;
46 }
47
48 T_ATP_RET atp_get_data (
49 T_ATP_SW_ENTITY_ID receiver_sw_id,
50 T_ATP_PORT_NB receiver_port_nb,
51 UINT8 * data_buffer,
52 UINT32 nb_to_read,
53 UINT32 * nb_read_p,
54 UINT32 * nb_left_p
55 ) {
56 return RV_OK;
57 }
58
59 T_ATP_RET atp_open_port_rsp (
60 T_ATP_SW_ENTITY_ID initiator_id,
61 T_ATP_PORT_NB initiator_port_nb,
62 T_ATP_SW_ENTITY_ID target_id,
63 T_ATP_PORT_NB target_port_nb,
64 T_ATP_PORT_INFO port_info,
65 T_ATP_NO_COPY_INFO no_copy_info,
66 T_ATP_CUSTOM_INFO * custom_info_p,
67 T_ATP_OPEN_PORT_RESULT result
68 ) {
69 return RV_OK;
70 }
71
72 T_ATP_RET atp_free_buffer (void * buffer_p)
73 {
74 return RV_OK;
75 }
76