19d4fa1a1SMauro Carvalho Chehab /* 29d4fa1a1SMauro Carvalho Chehab * Support for Intel Camera Imaging ISP subsystem. 39d4fa1a1SMauro Carvalho Chehab * Copyright (c) 2015, Intel Corporation. 49d4fa1a1SMauro Carvalho Chehab * 59d4fa1a1SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify it 69d4fa1a1SMauro Carvalho Chehab * under the terms and conditions of the GNU General Public License, 79d4fa1a1SMauro Carvalho Chehab * version 2, as published by the Free Software Foundation. 89d4fa1a1SMauro Carvalho Chehab * 99d4fa1a1SMauro Carvalho Chehab * This program is distributed in the hope it will be useful, but WITHOUT 109d4fa1a1SMauro Carvalho Chehab * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 119d4fa1a1SMauro Carvalho Chehab * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 129d4fa1a1SMauro Carvalho Chehab * more details. 139d4fa1a1SMauro Carvalho Chehab */ 149d4fa1a1SMauro Carvalho Chehab 159d4fa1a1SMauro Carvalho Chehab #ifndef __IA_CSS_VERSION_H 169d4fa1a1SMauro Carvalho Chehab #define __IA_CSS_VERSION_H 179d4fa1a1SMauro Carvalho Chehab 189d4fa1a1SMauro Carvalho Chehab /* @file 199d4fa1a1SMauro Carvalho Chehab * This file contains functions to retrieve CSS-API version information 209d4fa1a1SMauro Carvalho Chehab */ 219d4fa1a1SMauro Carvalho Chehab 229d4fa1a1SMauro Carvalho Chehab #include <ia_css_err.h> 239d4fa1a1SMauro Carvalho Chehab 249d4fa1a1SMauro Carvalho Chehab /* a common size for the version arrays */ 259d4fa1a1SMauro Carvalho Chehab #define MAX_VERSION_SIZE 500 269d4fa1a1SMauro Carvalho Chehab 279d4fa1a1SMauro Carvalho Chehab /* @brief Retrieves the current CSS version 289d4fa1a1SMauro Carvalho Chehab * @param[out] version A pointer to a buffer where to put the generated 299d4fa1a1SMauro Carvalho Chehab * version string. NULL is ignored. 309d4fa1a1SMauro Carvalho Chehab * @param[in] max_size Size of the version buffer. If version string 319d4fa1a1SMauro Carvalho Chehab * would be larger than max_size, an error is 329d4fa1a1SMauro Carvalho Chehab * returned by this function. 339d4fa1a1SMauro Carvalho Chehab * 349d4fa1a1SMauro Carvalho Chehab * This function generates and returns the version string. If FW is loaded, it 359d4fa1a1SMauro Carvalho Chehab * attaches the FW version. 369d4fa1a1SMauro Carvalho Chehab */ 379d4fa1a1SMauro Carvalho Chehab enum ia_css_err 389d4fa1a1SMauro Carvalho Chehab ia_css_get_version(char *version, int max_size); 399d4fa1a1SMauro Carvalho Chehab 409d4fa1a1SMauro Carvalho Chehab #endif /* __IA_CSS_VERSION_H */ 41