• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * drivers/amlogic/media/common/arch/chips/chips.h
3  *
4  * Copyright (C) 2016 Amlogic, Inc. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  */
17 
18 #ifndef UCODE_MANAGER_HEADER
19 #define UCODE_MANAGER_HEADER
20 #include "../media_clock/clk/clk_priv.h"
21 
22 struct chip_vdec_info_s {
23 
24 	int cpu_type;
25 
26 	struct video_firmware_s *firmware;
27 
28 	struct chip_vdec_clk_s *clk_mgr[VDEC_MAX];
29 
30 	struct clk_set_setting *clk_setting_array;
31 };
32 
33 const char *get_cpu_type_name(void);
34 const char *get_video_format_name(enum vformat_e type);
35 
36 struct chip_vdec_info_s *get_current_vdec_chip(void);
37 
38 bool check_efuse_chip(int vformat);
39 
40 #endif
41