2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
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.
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
15 #ifndef _SH_CSS_FIRMWARE_H_
16 #define _SH_CSS_FIRMWARE_H_
18 #include <system_types.h>
20 #include <ia_css_err.h>
21 #include <ia_css_acc_types.h>
23 /* This is for the firmware loaded from user space */
24 struct sh_css_fw_bi_file_h {
25 char version[64]; /* branch tag + week day + time */
26 int binary_nr; /* Number of binaries */
27 unsigned int h_size; /* sizeof(struct sh_css_fw_bi_file_h) */
30 extern struct ia_css_fw_info sh_css_sp_fw;
32 extern struct ia_css_fw_info sh_css_bl_fw;
34 extern struct ia_css_blob_descr *sh_css_blob_info;
35 extern unsigned sh_css_num_binaries;
38 *sh_css_get_fw_version(void);
41 sh_css_check_firmware_version(const char *fw_data);
44 sh_css_load_firmware(const char *fw_data,
45 unsigned int fw_size);
47 void sh_css_unload_firmware(void);
49 hrt_vaddress sh_css_load_blob(const unsigned char *blob, unsigned size);
52 sh_css_load_blob_info(const char *fw, const struct ia_css_fw_info *bi, struct ia_css_blob_descr *bd, unsigned int i);
54 #endif /* _SH_CSS_FIRMWARE_H_ */