GNU Linux-libre 4.14.332-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / runtime / inputfifo / interface / ia_css_inputfifo.h
1 #ifndef ISP2401
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 #else
16 /**
17 Support for Intel Camera Imaging ISP subsystem.
18 Copyright (c) 2010 - 2015, Intel Corporation.
19
20 This program is free software; you can redistribute it and/or modify it
21 under the terms and conditions of the GNU General Public License,
22 version 2, as published by the Free Software Foundation.
23
24 This program is distributed in the hope it will be useful, but WITHOUT
25 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
26 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
27 more details.
28 */
29 #endif
30
31 #ifndef _IA_CSS_INPUTFIFO_H
32 #define _IA_CSS_INPUTFIFO_H
33
34 #include <sp.h>
35 #include <isp.h>
36
37 #include "ia_css_stream_format.h"
38
39 /* SP access */
40 void ia_css_inputfifo_send_input_frame(
41         const unsigned short    *data,
42         unsigned int    width,
43         unsigned int    height,
44         unsigned int    ch_id,
45         enum ia_css_stream_format       input_format,
46         bool                    two_ppc);
47
48 void ia_css_inputfifo_start_frame(
49         unsigned int    ch_id,
50         enum ia_css_stream_format       input_format,
51         bool                    two_ppc);
52
53 void ia_css_inputfifo_send_line(
54         unsigned int    ch_id,
55         const unsigned short    *data,
56         unsigned int    width,
57         const unsigned short    *data2,
58         unsigned int    width2);
59
60 void ia_css_inputfifo_send_embedded_line(
61         unsigned int    ch_id,
62         enum ia_css_stream_format       data_type,
63         const unsigned short    *data,
64         unsigned int    width);
65
66 void ia_css_inputfifo_end_frame(
67         unsigned int    ch_id);
68
69 #endif /* _IA_CSS_INPUTFIFO_H */