1 /*
2 * Copyright (c) 2018 - 2020, Broadcom
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #ifndef BCM_ELOG_H
8 #define BCM_ELOG_H
9
10 #ifndef __ASSEMBLER__
11
12 #include <stdint.h>
13
14 #if defined(BCM_ELOG) && (defined(IMAGE_BL2) || defined(IMAGE_BL31))
15 int bcm_elog_init(void *base, uint32_t size, unsigned int level);
16 void bcm_elog_exit(void);
17 int bcm_elog_copy_log(void *dst, uint32_t max_size);
18 void bcm_elog(const char *fmt, ...);
19 #else
bcm_elog_init(void * base,uint32_t size,unsigned int level)20 static inline int bcm_elog_init(void *base, uint32_t size,
21 unsigned int level)
22 {
23 return 0;
24 }
bcm_elog_exit(void)25 static inline void bcm_elog_exit(void)
26 {
27 }
bcm_elog_copy_log(void * dst,uint32_t max_size)28 static inline int bcm_elog_copy_log(void *dst, uint32_t max_size)
29 {
30 return 0;
31 }
bcm_elog(const char * fmt,...)32 static inline void bcm_elog(const char *fmt, ...)
33 {
34 }
35 #endif /* BCM_ELOG */
36
37 #endif /* __ASSEMBLER__ */
38 #endif /* BCM_ELOG_H */
39