diff options
Diffstat (limited to 'drivers/media/sprd_scale/common/img_scale.h')
| -rw-r--r-- | drivers/media/sprd_scale/common/img_scale.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/media/sprd_scale/common/img_scale.h b/drivers/media/sprd_scale/common/img_scale.h new file mode 100644 index 00000000..6df49a0a --- /dev/null +++ b/drivers/media/sprd_scale/common/img_scale.h @@ -0,0 +1,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 |
