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_PROPERTIES_H
17 #define __IA_CSS_PROPERTIES_H
18 
19 /* @file
20  * This file contains support for retrieving properties of some hardware the CSS system
21  */
22 
23 #include <type_support.h> /* bool */
24 #include <ia_css_types.h> /* ia_css_vamem_type */
25 
26 struct ia_css_properties {
27 	int  gdc_coord_one;
28 	bool l1_base_is_index; /** Indicate whether the L1 page base
29 				    is a page index or a byte address. */
30 	enum ia_css_vamem_type vamem_type;
31 };
32 
33 /* @brief Get hardware properties
34  * @param[in,out]	properties The hardware properties
35  * @return	None
36  *
37  * This function returns a number of hardware properties.
38  */
39 void
40 ia_css_get_properties(struct ia_css_properties *properties);
41 
42 #endif /* __IA_CSS_PROPERTIES_H */
43