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