My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
drm_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 DRM task implementation
25  */
26 
27 #ifndef __OTZ_APP_DRM_TASK_H__
28 #define __OTZ_APP_DRM_TASK_H__
29 
30 #include <sw_types.h>
31 #include <secure_api.h>
32 
38 typedef struct drm_global
39 {
40 #ifdef OTZONE_ASYNC_NOTIFY_SUPPORT
41  int data_available;
42 #endif
43 }drm_global;
44 
45 
46 
59 int drm_task_init(sa_config_t *psa_config);
60 
71 int drm_task_exit(void* data);
72 
82 void drm_task(int task_id, sw_tls* tls);
83 
84 
85 #ifdef OTZONE_ASYNC_NOTIFY_SUPPORT
86 
96 void drm_task_handler(struct timer_event* tevent);
97 
116 int process_otz_drm_async_send_cmd(void *req_buf, u32 req_buf_len,
117  void *res_buf, u32 res_buf_len,
118  struct otzc_encode_meta *meta_data,
119  u32 *ret_res_buf_len);
120 #endif
121 
139 int process_otz_drm_send_cmd(void *req_buf, u32 req_buf_len,
140  void *res_buf, u32 res_buf_len,
141  struct otzc_encode_meta *meta_data,
142  u32 *ret_res_buf_len);
143 
161 int process_otz_drm_send_cmd_shared_buf(void *req_buf, u32 req_buf_len,
162  void *res_buf, u32 res_buf_len,
163  struct otzc_encode_meta *meta_data,
164  u32 *ret_res_buf_len);
165 
183 int process_otz_drm_ipi_send_cmd(void *req_buf, u32 req_buf_len,
184  void *res_buf, u32 res_buf_len,
185  struct otzc_encode_meta *meta_data,
186  u32 *ret_res_buf_len);
187 
205 int process_otz_drm_svc(u32 svc_cmd_id,
206  void *req_buf, u32 req_buf_len,
207  void *resp_buf, u32 res_buf_len,
208  struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len);
209 #endif /* __OTZ_APP_TASK2_H__ */
Task local storage.
Definition: task.h:79
int drm_task_exit(void *data)
DRM task exit.
Definition: drm_task.c:325
int process_otz_drm_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)
DRM the data for IPI testing.
global variables for the task should be defined as a member of the global structure ...
Definition: drm_task.h:38
Secure API configuration details for task.
Definition: task.h:40
int process_otz_drm_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 drm service.
Definition: drm_task.c:223
struct drm_global drm_global
global variables for the task should be defined as a member of the global structure ...
u8 * data
Definition: fat32.c:40
Metadata used for encoding/decoding.
Definition: otz_common.h:93
int process_otz_drm_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)
DRM the data for the user supplied buffer.
Definition: drm_task.c:65
Definition: sw_timer.h:118
void drm_task(int task_id, sw_tls *tls)
DRM task entry point.
Definition: drm_task.c:266
int process_otz_drm_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)
DRM the data for the shared buffer.
Definition: drm_task.c:140
int drm_task_init(sa_config_t *psa_config)
: DRM task init
Definition: drm_task.c:295