#include <linux/string.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include "hmm.h"
#include <math_support.h>
#include "platform_support.h"
#include "sh_css_firmware.h"
#include "sh_css_defs.h"
#include "ia_css_debug.h"
#include "sh_css_internal.h"
#include "ia_css_isp_param.h"
#include "assert_support.h"
#include "isp.h"
#include "ia_css_isp_params.h"
#include "ia_css_isp_configs.h"
#include "ia_css_isp_states.h"
#define _STR(x) …
#define STR(x) …
struct firmware_header { … };
struct fw_param { … };
static struct firmware_header *firmware_header;
static const char *release_version_2401 = …;
static const char *release_version_2400 = …;
#define MAX_FW_REL_VER_NAME …
static char FW_rel_ver_name[MAX_FW_REL_VER_NAME] = …;
struct ia_css_fw_info sh_css_sp_fw;
struct ia_css_blob_descr *sh_css_blob_info;
unsigned int sh_css_num_binaries;
static struct fw_param *fw_minibuffer;
char *sh_css_get_fw_version(void)
{ … }
static int
setup_binary(struct ia_css_fw_info *fw, const char *fw_data,
struct ia_css_fw_info *sh_css_fw, unsigned int binary_id)
{ … }
int
sh_css_load_blob_info(const char *fw, const struct ia_css_fw_info *bi,
struct ia_css_blob_descr *bd,
unsigned int index)
{ … }
bool
sh_css_check_firmware_version(struct device *dev, const char *fw_data)
{ … }
static const char * const fw_type_name[] = …;
static const char * const fw_acc_type_name[] = …;
int
sh_css_load_firmware(struct device *dev, const char *fw_data,
unsigned int fw_size)
{ … }
void sh_css_unload_firmware(void)
{ … }
ia_css_ptr
sh_css_load_blob(const unsigned char *blob, unsigned int size)
{ … }