• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef __HI_EARLY_DEBUG_H__
17 #define __HI_EARLY_DEBUG_H__
18 #include <stdarg.h>
19 
20 void edb_put_str_only(const char *s);
21 void edb_put_str_p0(char *str);
22 void edb_put_str_p1(char *str, unsigned int p1);
23 void edb_put_str_p2(char *str, unsigned int p1, unsigned int p2);
24 void edb_put_str_p3(char *str, unsigned int p1, unsigned int p2, unsigned int p3);
25 void edb_put_str_p4(char *str, unsigned int p1, unsigned int p2, unsigned int p3, unsigned int p4);
26 void edb_put_buf(char *buf, unsigned int len);
27 int printf(const char *fmt, ...);
28 int vprintf(const char *fmt, va_list va);
29 int dprintf(const char *fmt, ...);
30 void edb_set_print_level(unsigned int level);
31 void hi_printf_alloc_uart_by_nv(void);
32 #endif
33 
34