Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
s5p_mfc_opr.h
Go to the documentation of this file.
1 /*
2  * drivers/media/platform/s5p-mfc/s5p_mfc_opr.h
3  *
4  * Header file for Samsung MFC (Multi Function Codec - FIMV) driver
5  * Contains declarations of hw related functions.
6  *
7  * Kamil Debski, Copyright (C) 2012 Samsung Electronics Co., Ltd.
8  * http://www.samsung.com/
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  */
14 
15 #ifndef S5P_MFC_OPR_H_
16 #define S5P_MFC_OPR_H_
17 
18 #include "s5p_mfc_common.h"
19 
32  int buf_addr, unsigned int start_num_byte,
33  unsigned int buf_size);
36  unsigned long addr, unsigned int size);
38  unsigned long y_addr, unsigned long c_addr);
40  unsigned long *y_addr, unsigned long *c_addr);
45  void (*try_run)(struct s5p_mfc_dev *dev);
46  void (*cleanup_queue)(struct list_head *lh,
47  struct vb2_queue *vq);
49  void (*write_info)(struct s5p_mfc_ctx *ctx, unsigned int data,
50  unsigned int ofs);
51  unsigned int (*read_info)(struct s5p_mfc_ctx *ctx,
52  unsigned int ofs);
62  int (*err_dec)(unsigned int err);
63  int (*err_dspl)(unsigned int err);
76  unsigned int (*get_pic_type_top)(struct s5p_mfc_ctx *ctx);
77  unsigned int (*get_pic_type_bot)(struct s5p_mfc_ctx *ctx);
78  unsigned int (*get_crop_info_h)(struct s5p_mfc_ctx *ctx);
79  unsigned int (*get_crop_info_v)(struct s5p_mfc_ctx *ctx);
80 };
81 
82 void s5p_mfc_init_hw_ops(struct s5p_mfc_dev *dev);
83 
84 #endif /* S5P_MFC_OPR_H_ */