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 20void edb_put_str_only(const char *s); 21void edb_put_str_p0(char *str); 22void edb_put_str_p1(char *str, unsigned int p1); 23void edb_put_str_p2(char *str, unsigned int p1, unsigned int p2); 24void edb_put_str_p3(char *str, unsigned int p1, unsigned int p2, unsigned int p3); 25void edb_put_str_p4(char *str, unsigned int p1, unsigned int p2, unsigned int p3, unsigned int p4); 26void edb_put_buf(char *buf, unsigned int len); 27int printf(const char *fmt, ...); 28int vprintf(const char *fmt, va_list va); 29int dprintf(const char *fmt, ...); 30void edb_set_print_level(unsigned int level); 31void hi_printf_alloc_uart_by_nv(void); 32#endif 33 34