My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mutex_test_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  * Header for mutex test task implementation
25  */
26 
27 
28 #ifndef __TZ_APP_MUTEX_TEST_TASK_H__
29 #define __TZ_APP_MUTEX_TEST_TASK_H__
30 
31 #include <sw_types.h>
32 #include <otz_api.h>
33 
34 
40 typedef struct otz_mutex_test_global {
41  int a; // temp variable added to fix warning
43 
56 int mutex_test_task_init(sa_config_t *psa_config);
57 
68 int mutex_test_task_exit(void* data);
69 
79 void mutex_test_task(int task_id, sw_tls* tls);
80 
99 int process_otz_mutex_test_svc(u32 svc_cmd_id, void *req_buf, u32 req_buf_len,
100  void *resp_buf, u32 res_buf_len,
101  struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len);
102 
119 int process_otz_mutex_test_cmd(void *req_buf, u32 req_buf_len,
120  void *res_buf, u32 res_buf_len,
121  struct otzc_encode_meta *meta_data,
122  u32 *ret_res_buf_len);
123 
124 #endif
125 
Task local storage.
Definition: task.h:79
struct otz_mutex_test_global otz_mutex_test_global
global variables for the task should be defined as a member of the global structure ...
int mutex_test_task_init(sa_config_t *psa_config)
: Mutex test task init
Definition: mutex_test_task.c:223
void mutex_test_task(int task_id, sw_tls *tls)
Mutex test task entry point.
Definition: mutex_test_task.c:202
Secure API configuration details for task.
Definition: task.h:40
int process_otz_mutex_test_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 mutex test data commands.
Definition: mutex_test_task.c:171
u8 * data
Definition: fat32.c:40
Metadata used for encoding/decoding.
Definition: otz_common.h:93
int mutex_test_task_exit(void *data)
Mutex test task exit.
Definition: mutex_test_task.c:251
int a
Definition: mutex_test_task.h:41
global variables for the task should be defined as a member of the global structure ...
Definition: mutex_test_task.h:40
int process_otz_mutex_test_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)
Test the mutex operations.
Definition: mutex_test_task.c:76