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_VERSION_H
8 #define __IA_CSS_VERSION_H
9 
10 /* @file
11  * This file contains functions to retrieve CSS-API version information
12  */
13 
14 #include <ia_css_err.h>
15 
16 /* a common size for the version arrays */
17 #define MAX_VERSION_SIZE	500
18 
19 /* @brief Retrieves the current CSS version
20  * @param[out]	version		A pointer to a buffer where to put the generated
21  *				version string. NULL is ignored.
22  * @param[in]	max_size	Size of the version buffer. If version string
23  *				would be larger than max_size, an error is
24  *				returned by this function.
25  *
26  * This function generates and returns the version string. If FW is loaded, it
27  * attaches the FW version.
28  */
29 int
30 ia_css_get_version(char *version, int max_size);
31 
32 #endif /* __IA_CSS_VERSION_H */
33