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