1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef __IA_CSS_PRBS_H
8 #define __IA_CSS_PRBS_H
9 
10 /* @file
11  * This file contains support for Pseudo Random Bit Sequence (PRBS) inputs
12  */
13 
14 /* Enumerate the PRBS IDs.
15  */
16 enum ia_css_prbs_id {
17 	IA_CSS_PRBS_ID0,
18 	IA_CSS_PRBS_ID1,
19 	IA_CSS_PRBS_ID2
20 };
21 
22 /**
23  * Maximum number of PRBS IDs.
24  *
25  * Make sure the value of this define gets changed to reflect the correct
26  * number of ia_css_prbs_id enum if you add/delete an item in the enum.
27  */
28 #define N_CSS_PRBS_IDS (IA_CSS_PRBS_ID2 + 1)
29 
30 /**
31  * PRBS configuration structure.
32  *
33  * Seed the for the Pseudo Random Bit Sequence.
34  *
35  * @deprecated{This interface is deprecated, it is not portable -> move to input system API}
36  */
37 struct ia_css_prbs_config {
38 	enum ia_css_prbs_id	id;
39 	unsigned int		h_blank;	/** horizontal blank */
40 	unsigned int		v_blank;	/** vertical blank */
41 	int			seed;	/** random seed for the 1st 2-pixel-components/clock */
42 	int			seed1;	/** random seed for the 2nd 2-pixel-components/clock */
43 };
44 
45 #endif /* __IA_CSS_PRBS_H */
46