mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
4a226f77f3
Add API to allow kernel space clients to bump up CE clks for improved performance Change-Id: Iecd13cf4efe9b2b1415be56d3ec9e4dc040918f8 Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __QSEECOM_KERNEL_H_
|
|
#define __QSEECOM_KERNEL_H_
|
|
|
|
#include <linux/types.h>
|
|
/*
|
|
* struct qseecom_handle -
|
|
* Handle to the qseecom device for kernel clients
|
|
* @sbuf - shared buffer pointer
|
|
* @sbbuf_len - shared buffer size
|
|
*/
|
|
struct qseecom_handle {
|
|
void *dev; /* in/out */
|
|
unsigned char *sbuf; /* in/out */
|
|
uint32_t sbuf_len; /* in/out */
|
|
};
|
|
|
|
int qseecom_start_app(struct qseecom_handle **handle,
|
|
char *app_name, uint32_t size);
|
|
int qseecom_shutdown_app(struct qseecom_handle **handle);
|
|
int qseecom_send_command(struct qseecom_handle *handle, void *send_buf,
|
|
uint32_t sbuf_len, void *resp_buf, uint32_t rbuf_len);
|
|
int qseecom_set_bandwidth(struct qseecom_handle *handle, bool high);
|
|
|
|
#endif /* __QSEECOM_KERNEL_H_ */
|