blob: 6df49a0af72c43a64365491a8151dbc707151d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* Copyright (C) 2012 Spreadtrum Communications Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* 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 _IMG_SCALE_H_
#define _IMG_SCALE_H_
#include "scale_drv.h"
#include <asm/ioctl.h>
#include <linux/types.h>
struct scale_k_private{
struct semaphore start_sem;
void *coeff_addr;
};
enum scale_k_status{
SCALE_K_IDLE,
SCALE_K_RUNNING,
SCALE_K_DONE,
SCALE_K_MAX
};
struct scale_k_file{
struct scale_k_private *scale_private;
struct semaphore scale_done_sem;
struct scale_drv_private drv_private;
struct device_node *dn;
};
#endif
|