GNU Linux-libre 4.14.332-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / sh_css_uds.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef _SH_CSS_UDS_H_
16 #define _SH_CSS_UDS_H_
17
18 #include <type_support.h>
19
20 #define SIZE_OF_SH_CSS_UDS_INFO_IN_BITS (4 * 16)
21 #define SIZE_OF_SH_CSS_CROP_POS_IN_BITS (2 * 16)
22
23 /* Uds types, used in pipeline_global.h and sh_css_internal.h */
24
25 struct sh_css_uds_info {
26         uint16_t curr_dx;
27         uint16_t curr_dy;
28         uint16_t xc;
29         uint16_t yc;
30 };
31
32 struct sh_css_crop_pos {
33         uint16_t x;
34         uint16_t y;
35 };
36
37 #endif /* _SH_CSS_UDS_H_ */