]>
Commit | Line | Data |
---|---|---|
a49d2536 AC |
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 __IA_CSS_PRBS_H | |
16 | #define __IA_CSS_PRBS_H | |
17 | ||
d929fb4e | 18 | /* @file |
a49d2536 AC |
19 | * This file contains support for Pseudo Random Bit Sequence (PRBS) inputs |
20 | */ | |
21 | ||
d929fb4e | 22 | /* Enumerate the PRBS IDs. |
a49d2536 AC |
23 | */ |
24 | enum ia_css_prbs_id { | |
25 | IA_CSS_PRBS_ID0, | |
26 | IA_CSS_PRBS_ID1, | |
27 | IA_CSS_PRBS_ID2 | |
28 | }; | |
29 | ||
30 | /** | |
31 | * Maximum number of PRBS IDs. | |
32 | * | |
33 | * Make sure the value of this define gets changed to reflect the correct | |
34 | * number of ia_css_prbs_id enum if you add/delete an item in the enum. | |
35 | */ | |
36 | #define N_CSS_PRBS_IDS (IA_CSS_PRBS_ID2+1) | |
37 | ||
38 | /** | |
39 | * PRBS configuration structure. | |
40 | * | |
41 | * Seed the for the Pseudo Random Bit Sequence. | |
42 | * | |
43 | * @deprecated{This interface is deprecated, it is not portable -> move to input system API} | |
44 | */ | |
45 | struct ia_css_prbs_config { | |
46 | enum ia_css_prbs_id id; | |
d929fb4e MCC |
47 | unsigned int h_blank; /** horizontal blank */ |
48 | unsigned int v_blank; /** vertical blank */ | |
49 | int seed; /** random seed for the 1st 2-pixel-components/clock */ | |
50 | int seed1; /** random seed for the 2nd 2-pixel-components/clock */ | |
a49d2536 AC |
51 | }; |
52 | ||
53 | #endif /* __IA_CSS_PRBS_H */ |