My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
echo_task.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Heade for Echo task implementation
25  */
26 
27 #ifndef __OTZ_APP_ECHO_TASK_H__
28 #define __OTZ_APP_ECHO_TASK_H__
29 
30 #include <sw_types.h>
31 #include <secure_api.h>
32 
39 typedef struct echo_global
40 {
41 //#ifdef OTZONE_ASYNC_NOTIFY_SUPPORT
43 //#endif
45 
46 
47 
60 int echo_task_init(sa_config_t *psa_config);
61 
72 int echo_task_exit(void* data);
73 
83 void echo_task(int task_id, sw_tls* tls);
84 
85 
86 #ifdef OTZONE_ASYNC_NOTIFY_SUPPORT
87 
97 void echo_task_handler(struct timer_event* tevent);
98 
117 int process_otz_echo_async_send_cmd(void *req_buf, u32 req_buf_len,
118  void *res_buf, u32 res_buf_len,
119  struct otzc_encode_meta *meta_data,
120  u32 *ret_res_buf_len);
121 #endif
122 
140 int process_otz_echo_send_cmd(void *req_buf, u32 req_buf_len,
141  void *res_buf, u32 res_buf_len,
142  struct otzc_encode_meta *meta_data,
143  u32 *ret_res_buf_len);
144 
162 int process_otz_echo_send_cmd_shared_buf(void *req_buf, u32 req_buf_len,
163  void *res_buf, u32 res_buf_len,
164  struct otzc_encode_meta *meta_data,
165  u32 *ret_res_buf_len);
166 
184 int process_otz_echo_ipi_send_cmd(void *req_buf, u32 req_buf_len,
185  void *res_buf, u32 res_buf_len,
186  struct otzc_encode_meta *meta_data,
187  u32 *ret_res_buf_len);
188 
206 int process_otz_echo_svc(u32 svc_cmd_id,
207  void *req_buf, u32 req_buf_len,
208  void *resp_buf, u32 res_buf_len,
209  struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len);
210 #endif /* __OTZ_APP_TASK2_H__ */
Task local storage.
Definition: task.h:79
global variables for the task should be defined as a member of the global structure ...
Definition: echo_task.h:39
int echo_task_init(sa_config_t *psa_config)
: Echo task init
Definition: echo_task.c:719
Secure API configuration details for task.
Definition: task.h:40
u8 * data
Definition: fat32.c:40
int echo_task_exit(void *data)
Echo task exit.
Definition: echo_task.c:747
Metadata used for encoding/decoding.
Definition: otz_common.h:93
void echo_task(int task_id, sw_tls *tls)
Echo task entry point.
Definition: echo_task.c:670
int process_otz_echo_send_cmd_shared_buf(void *req_buf, u32 req_buf_len, void *res_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
Echo the data for the shared buffer.
Definition: echo_task.c:287
Definition: sw_timer.h:118
int process_otz_echo_svc(u32 svc_cmd_id, void *req_buf, u32 req_buf_len, void *resp_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
Process echo service.
Definition: echo_task.c:458
struct echo_global echo_global
global variables for the task should be defined as a member of the global structure ...
int process_otz_echo_ipi_send_cmd(void *req_buf, u32 req_buf_len, void *res_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
Echo the data for IPI testing.
Definition: echo_task.c:386
int data_available
Definition: echo_task.h:42
int process_otz_echo_send_cmd(void *req_buf, u32 req_buf_len, void *res_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
Echo the data for the user supplied buffer.
Definition: echo_task.c:204