blob: ea4b1692dc49346c0b3fb45c03e2eea2d2d491fb [file] [log] [blame]
Sheetal Tigadoliad0943e2019-12-18 19:44:43 +05301/*
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))
15int bcm_elog_init(void *base, uint32_t size, unsigned int level);
16void bcm_elog_exit(void);
17int bcm_elog_copy_log(void *dst, uint32_t max_size);
18void bcm_elog(const char *fmt, ...);
19#else
20static inline int bcm_elog_init(void *base, uint32_t size,
21 unsigned int level)
22{
23 return 0;
24}
25static inline void bcm_elog_exit(void)
26{
27}
28static inline int bcm_elog_copy_log(void *dst, uint32_t max_size)
29{
30 return 0;
31}
32static inline void bcm_elog(const char *fmt, ...)
33{
34}
35#endif /* BCM_ELOG */
36
37#endif /* __ASSEMBLER__ */
38#endif /* BCM_ELOG_H */