GNU Linux-libre 4.14.324-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / ia_css_version.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef __IA_CSS_VERSION_H
16 #define __IA_CSS_VERSION_H
17
18 /** @file
19  * This file contains functions to retrieve CSS-API version information
20  */
21
22 #include <ia_css_err.h>
23
24 /** a common size for the version arrays */
25 #define MAX_VERSION_SIZE        500
26
27 /** @brief Retrieves the current CSS version
28  * @param[out]  version         A pointer to a buffer where to put the generated
29  *                              version string. NULL is ignored.
30  * @param[in]   max_size        Size of the version buffer. If version string
31  *                              would be larger than max_size, an error is
32  *                              returned by this function.
33  *
34  * This function generates and returns the version string. If FW is loaded, it
35  * attaches the FW version.
36  */
37 enum ia_css_err
38 ia_css_get_version(char *version, int max_size);
39
40 #endif /* __IA_CSS_VERSION_H */