blob: 0c93ef2e4208d942f7473552a62d701f22c3cf52 [file] [log] [blame]
Mona Hossain8c21a3f2012-10-15 09:41:35 -07001/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __QSEECOM_KERNEL_H_
14#define __QSEECOM_KERNEL_H_
15
16#include <linux/types.h>
17/*
18 * struct qseecom_handle -
19 * Handle to the qseecom device for kernel clients
20 * @sbuf - shared buffer pointer
21 * @sbbuf_len - shared buffer size
22 */
23struct qseecom_handle {
24 void *dev; /* in/out */
25 unsigned char *sbuf; /* in/out */
26 uint32_t sbuf_len; /* in/out */
27};
28
29int qseecom_start_app(struct qseecom_handle **handle,
30 char *app_name, uint32_t size);
31int qseecom_shutdown_app(struct qseecom_handle **handle);
32int qseecom_send_command(struct qseecom_handle *handle, void *send_buf,
33 uint32_t sbuf_len, void *resp_buf, uint32_t rbuf_len);
Mona Hossain1b92b2b2012-11-07 19:58:30 -080034int qseecom_set_bandwidth(struct qseecom_handle *handle, bool high);
Mona Hossain8c21a3f2012-10-15 09:41:35 -070035
36#endif /* __QSEECOM_KERNEL_H_ */