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