summaryrefslogtreecommitdiffstats
path: root/include/plat/brcm/common/bcm_elog.h
blob: ea4b1692dc49346c0b3fb45c03e2eea2d2d491fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright (c) 2018 - 2020, Broadcom
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef BCM_ELOG_H
#define BCM_ELOG_H

#ifndef __ASSEMBLER__

#include <stdint.h>

#if defined(BCM_ELOG) && (defined(IMAGE_BL2) || defined(IMAGE_BL31))
int bcm_elog_init(void *base, uint32_t size, unsigned int level);
void bcm_elog_exit(void);
int bcm_elog_copy_log(void *dst, uint32_t max_size);
void bcm_elog(const char *fmt, ...);
#else
static inline int bcm_elog_init(void *base, uint32_t size,
				unsigned int level)
{
	return 0;
}
static inline void bcm_elog_exit(void)
{
}
static inline int bcm_elog_copy_log(void *dst, uint32_t max_size)
{
	return 0;
}
static inline void bcm_elog(const char *fmt, ...)
{
}
#endif /* BCM_ELOG */

#endif /* __ASSEMBLER__ */
#endif /* BCM_ELOG_H */